We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
This template supports multiple languages and in-app language change.
Official internationalization documentation: https://flutter.dev/docs/development/accessibility-and-localization/internationalization
flutter_localizations
intl
See the l10n.yaml file in the root directory of the Flutter project that configures the localization tool.
l10n.yaml
Current l10n.yaml configuration:
Add .arb file in assets/l10n for every locale you want to add in the app and translate all strings in that file.
assets/l10n
Current locales:
To generate all the localizations just run your app or run flutter pub get.
flutter pub get
All generated localizations are in: output-localization-file: app_localizations.dart
output-localization-file: app_localizations.dart
The localizationsDelegates and supportedLocales are set in the App widget (app.dart)
import 'package:flutter_gen/gen_l10n/app_localizations.dart'; AppLocalizations.of(context)!.helloWorld