Files
flutter/lib/l10n
2026-11-04 21:36:51 +01:00
..
2026-03-28 16:04:03 +01:00
2026-08-26 13:29:27 +02:00
2026-07-31 20:23:18 +02:00
2026-05-20 21:37:26 +02:00
2026-10-24 17:15:18 +02:00
2025-10-29 11:34:29 +01:00
2026-05-07 19:57:35 +02:00

Translations for the app

These files are usually edited on weblate, and not directly in the repo:

https://hosted.weblate.org/engage/wger/

Maintenance

Use the numeric placeholder in grammatical plural branches, including one: {count, plural, one{{count} week} other{{count} weeks}}. In some languages, one also applies to numbers such as 21; it is not an exact match for 1. Use exact selectors such as =1 for wording that really is specific to that number, for example yesterday. Keep existing exact selectors when editing plural messages, and have translators review the changed source strings in Weblate.

Find keys that are not used in the code anymore:

flutter pub add --dev translations_cleaner
flutter pub run translations_cleaner list-unused-terms

Remove unused keys from the arb files (this removes both key as well as @key):

cd lib/l10n
dart remove_keys.dart arbKey1 anotherArbKey

Adding a new language

When a new app_<locale>.arb file is added (usually by a Weblate PR), register the locale in:

  • android/app/src/main/res/xml/locales_config.xml, so the language appears in the Android 13+ per-app language settings (uses pt-BR, not pt_BR)
  • ios/Runner/Info.plist under CFBundleLocalizations, so iOS offers the language for the app
  • lib/l10n/language_native_names.dart, so the language picker in the settings shows its native name