• 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
..
gen_keycodes Loading commit data...
lib Loading commit data...
localization Loading commit data...
vitool Loading commit data...
dartdoc.dart Loading commit data...
java_and_objc_doc.dart Loading commit data...
mega_gallery.dart Loading commit data...
pubspec.yaml Loading commit data...
repackage_gradle_wrapper.sh Loading commit data...
update_icons.dart Loading commit data...