A new Flutter project created by the Very Good Ventures Team.
This project has the following flavors:
- production:
flutter run --flavor production --target=lib/main/main_production.dart
- development:
flutter run --flavor development --target=lib/main/main_development.dart
- qa:
flutter run --flavor qa --target=lib/main/main_qa.dart
The official Flutter documentation can be found here.
In order to translate your application to different languages, this project relies on two packages, registered in the pubspec.yaml
:
flutter_localizations
: it adds support for multiple languages, plus internationalization and localization facilities, including message translation, plurals and genders, date/number formatting and parsing, and bidirectional text.intl_translation
: This package provides message extraction and code generation from translated messages for theIntl
and/orflutter_localizations
package.
Run this command from your terminal:
$> flutter pub pub run intl_translation:extract_to_arb --output-dir=lib/l10n lib/l10n/localizations.dart
Run this command from your terminal:
$> flutter pub pub run intl_translation:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/l10n/localizations.dart lib/l10n/intl_*.arb
Add your new supported to locate to lib/l10n/supported_locales.dart
.
You don't have to do anything!
You will need to update the iOS App Bundle. More info here