Easiest Way To Internationalize

Fred Grott
3 min readAug 21, 2021

One of the problems of DevOps is how do we automate the boring stuff to get to fast app prototyping. We can semi-automate app text internalization to bring down the time costs to fast prototype a flutter app. Let me show how you can automate the text internalization of the flutter app to even work with a CI server.

The Dependencies

We will use some dependencies to internationalize our flutter app:

in our pubspec:

flutter_localizations:  sdk: flutterintl: ^0.17.0intl_utils: ^2.4.0

in the middle of the pubspec:

# The following section is specific to Flutter.flutter:  generate: true # Add this line

Then at the bottom of the pubspec:

flutter_intl:enabled: true # Required. Must be set to true to activate the plugin. Default: falseclass_name: S # Optional. Sets the name for the generated localization class. Default: Smain_locale: en # Optional. Sets the main locale used for generating localization files. Provided value should comply with ISO-639-1 and ISO-3166-1 (e.g. "en", "en_GB"). Default: en

--

--

Fred Grott
Fred Grott

No responses yet