• Shi-Hao Hong's avatar
    l10n Localizations and LocalizationsDelegate Generation Tool (#43934) · ede637a7
    Shi-Hao Hong authored
    *Starting with arb files in lib/l10n, the tool creates the following by default:
    1. An AppLocalizations class containing:
    - an `AppLocalizationsDelegate`
    - a `supportedLocales` property that returns a list of all supported locales.
    - a `localizationsDelegate` property that returns a list containing this delegate along with `GlobalMaterialLocalizations.delegate`, `GlobalCupertinoLocalizations.delegate`, and `GlobalWidgetsLocalizations.delegate`.
    2. One Dart `message_<locale>.dart` file for each arb file, as well as a `messages_all.dart` file that performs the locale message lookup. The tool infers the locale of each arb file from the @@Locale property or the arb file's name.
    ede637a7
Name
Last commit
Last update
..
automated_tests Loading commit data...
benchmarks Loading commit data...
bots Loading commit data...
ci Loading commit data...
customer_testing Loading commit data...
devicelab Loading commit data...
docs Loading commit data...
integration_tests Loading commit data...
manual_tests Loading commit data...
missing_dependency_tests Loading commit data...
snippets Loading commit data...
tools Loading commit data...
README.md Loading commit data...