mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-28 17:08:29 +01: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
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 (usespt-BR, notpt_BR)ios/Runner/Info.plistunderCFBundleLocalizations, so iOS offers the language for the applib/l10n/language_native_names.dart, so the language picker in the settings shows its native name