mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-29 07:34:13 +01:00
flutter gen-l10n wrote a class for each of the 21 ARB files, and every class repeated the English text of each message its language has not translated. The app only offers the 13 languages of supported_locales.dart. scripts/gen_l10n.dart writes those 13 only. Each language class extends the English one and overrides just the messages whose text differs, and the bare es, pt and zh classes are left out where only a country variant ships. For the 13 languages every message resolves to the same text as before (compared across all 2989 messages). Flutter no longer generates the files: l10n.yaml is gone and pubspec sets generate: false, because a root l10n.yaml makes every build run Flutter's own generator. Run `dart scripts/gen_l10n.dart` after ARB changes and once in a new checkout; build_android.sh does it too. The script also drops the records of earlier Flutter-generated outputs from .dart_tool, which made the next build delete the files as stale. locale_config.xml lists the same 13 languages for Android's per-app language setting. The Arabic layout test brings its own delegate, as the app ships no right-to-left language. build_android.sh also passes MORNYE_MOBILE, which a later commit reads.