Using Android Studio as an example, open Tool->Flutter Intl -> Initalize for the project to add localization support for the project. The plugin automatically alters the file pubspec.yaml, and generates generated and l10n two file directories under lib.
Directory intl under generated generates messages_all.dart and messages_en.dart by default. The file at the beginning of messages_xxx.dart does not require manual modification and is automatically generated.
Directory I10n.dart under generated is implementation of Localizations and Delegate, does not require manual modification and is automatically generated.
intl_en.arb exists under l10n, the text is stored here。
If you want to add a language，open Tool->Flutter Intl -> Add Locale, input the language abbreviation to be supported, and the plugin will automatically generate the relevant file, as shown in the screenshot below, adding support for Chinese：
With localization, you need to add package dependencies in the file pubspec.yaml:
Swift Package Manager plugins are a great way of automating tasks, like, enforcing code conventions and style.
In this tutorial we're going to learn what are package plugins and implement 2 plugins; one that outputs code statistics and another that genera...
Hi, this is Bitcoin and from now on it will live with us!
Traditional money has long been outdated and is gradually losing its popularity.
In most cases, we already use electronic money.
But e-money is not much different from cash, except in form, but the...