Skip to content

Instantly share code, notes, and snippets.

Created May 1, 2020 14:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Flutter: intl_translation: extract_to_arb & generate_from_arb
.PHONY: help l10n-extract-to-arb l10n-generate-from-arb
@ echo 'Available commands:'
@ echo
@ echo ' l10n-extract-to-arb : Extract app_localizations.dart into intl_messages.arb'
@ echo ' Duplicate content of intl_messages.arb into intl_xx.arb'
@ echo ' l10n-generate-from-arb : Generate messages_*.dart files from intl_*.arb'
@ echo
@ echo
flutter pub run intl_translation:extract_to_arb --output-dir=lib/l10n lib/l10n/app_localizations.dart
flutter pub run intl_translation:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/l10n/app_localizations.dart lib/l10n/intl_*.arb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment