September 2019
Beginner
512 pages
12h 52m
English
After defining these classes, we need to create our message translations. As you can see in the AppLocalizations class, there are only two string resources to be translated: title and hello. As said before, the translation process is done with .arb files. So, we must define .arb files for each of the supported languages (English, Spanish, and Italian, in our case), and those files must contain the string resources translated into the target language.
Creating each of these files can be tedious, so we can use the intl_translation tool to generate those files. First, we create a directory to store the new files—lib/l10n, in this example. Then, we generate the .arb files with the following command: ...
Read now
Unlock full access