Skip to content

Instantly share code, notes, and snippets.

@tensor-programming
Created April 28, 2018 00:17
Show Gist options
  • Save tensor-programming/d53e7da4a609cef640881ca30dbf3982 to your computer and use it in GitHub Desktop.
Save tensor-programming/d53e7da4a609cef640881ca30dbf3982 to your computer and use it in GitHub Desktop.
Commands to run for intl code generation.
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