Skip to content
Cnone-Tech Documentation

Localization

Cnone-Tech DocsVeldriq Field

Veldriq Field

The app ships UI strings for: en, fr, es, ar, de, it, pt-BR, tr, hi, zh-CN. Flutter also requires language-only fallbacks app_pt.arb and app_zh.arb — those are tooling files, not extra product languages.

Arabic (ar) is RTL via Flutter Directionality. Missing strings fall back toward English.

This documentation site is English only. Adding a language to the app is a source/ARB task, not a /fr/ docs tree.

The technician picker is compiled ARB ∩ tenant-enabled. Adding backend/lang/nl.json on the Veldriq web server does not add Dutch to this APK/IPA. There is no OTA language download.

Profile → Preferences → Language. Saving shows Language updated. Login before a session uses compiled locales ∩ the device locale.

Add a language after unzip (example: Dutch)

Section titled “Add a language after unzip (example: Dutch)”

Work in mobile/ (the folder with pubspec.yaml). Do not edit files from documentation/.

  1. Copy mobile/lib/l10n/app_en.arb to app_nl.arb. Keep every key, including languageSelfName.
  2. Translate. Same placeholders as English. Do not edit lib/l10n/app_localizations*.dart by hand.
  3. Generate and test:
Terminal window
cd mobile
flutter pub get
flutter gen-l10n
flutter analyze
flutter test
  1. Produce a new APK / IPA. Until technicians install that build, nl is not selectable. Enable the locale on the web tenant as well, or it will not appear even after you rebuild Field.

API, session, and users.locale use hyphens (pt-BR, zh-CN). Flutter ARB files use underscores (app_pt_BR.arb). Do not send Locale.toString() to the API.

Related: Profile · Web localization.