Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
user avatar
dleurs authored
aacec3cc
History

Internalisation

Implementing Internalisation only of the fluter-starter project

Localisation requires the Flutter Intl plugin (available on VSCode and IntelliJ marketplaces) Needs to be installed to properly add and manage new supported locales

  • Flutter Intl on Android Studio (IntelliJ)
  • Flutter Intl on VSCode

Demo App

Check this URL for information :
https://marketplace.visualstudio.com/items?itemName=localizely.flutter-intl

  • Initialise, cmd-vscode : Flutter Intl: Initialize
  • ios/Runner/Info.plist add
<key>CFBundleLocalizations</key>
<array>
    <string>en</string>
    <string>fr_FR</string>
    ...
</array>
  • Add language, cmd-vscode : Flutter Intl: Add locale

To check plural :
https://pub.dev/documentation/intl/latest/intl/Intl/plural.html

To check gender :
https://pub.dev/documentation/intl/latest/intl/Intl/gender.html

Other demo :
https://github.com/localizely/flutter-intl-plugin-sample-app

Youtube video :
https://www.youtube.com/watch?v=MQo32dQxxjg

Localizely :
https://localizely.com/flutter-localization-workflow/
Connecting with Localizely ID project and Key did not work. Import / export arb

Localise has got a good interface for translation
You can import / export .arb files
ScreenshotLocalizely

Bonus, change language in settings
Demo App