Created
April 28, 2018 00:17
-
-
Save tensor-programming/d53e7da4a609cef640881ca30dbf3982 to your computer and use it in GitHub Desktop.
Commands to run for intl code generation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Command to generate ARB file | |
flutter pub pub run intl_translation:extract_to_arb --output-dir=<output directory> <localization file path> | |
Sample: | |
flutter pub pub run intl_translation:extract_to_arb --output-dir=lib/l10n lib\locale\locales.dart | |
Command to Generate the Dart Files | |
flutter pub pub run intl_translation:generate_from_arb --output-dir=<output directory> --no-use-deferred-loading <.arb files> <localization file path> | |
Sample: | |
flutter pub pub run intl_translation:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/l10n/intl_es.arb lib/l10n/intl_en.arb lib/l10n/intl_messages.arb lib/l10n/intl_ja.arb lib/locale/locales.dart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment