This directory contains scripts for generating Dart localizations. Currently it is only used by material_ui and cupertino_ui.
For full instructions on how to use these scripts to generate localizations for material_ui and cupertino_ui, see packages/material_ui/lib/src/l10n/README.md and packages/cupertino_ui/lib/src/l10n/README.md, respectively.
The Widgets library generates its localizations in a similar fashion to these scripts, located in flutter/flutter at dev/tools/localization.
The gen_missing_localizations script is used to quickly add placeholder values to all locale files when adding a new localization string. Add the new localization string to the English .arb file and run this script, and all other locale .arb files will be updated with the new string.
The gen_localizations generates the Dart localization files, such as generated_material_localizations.dart and generated_cupertino_localizations.dart in material_ui and cupertino_ui, respectively. The script must be run by hand after .arb files have been updated. The script optionally takes parameters
The encode_kn_arb_files script is used to rewrite malformed unicode characters from the Kannada translations due to a problem with that locale crashing Emacs. There is more information at https://github.com/flutter/flutter/issues/36704.