i18n国际化 18个标准
In 2020, with China and the US being the largest smartphone market, supporting i18n has become essential for mobile app developers.
到2020年,中国和美国将成为最大的智能手机市场,支持i18n已成为移动应用程序开发人员的必备条件。
I found that most tutorials about Flutter i18n miss clarifications and detailed steps, making them hard to follow.
我发现大多数有关Flutter i18n的教程都缺少澄清和详细步骤,因此很难遵循。
After struggling to integrate i18n support into my Flutter app for a few days, I decided to write a step-by-step tutorial that tries to clarify all the design decisions.
在将i18n支持集成到我的Flutter应用程序中苦苦挣扎了几天之后,我决定写一个分步教程,试图阐明所有设计决策。
依存关系 (Dependencies)
flutter_localizations
is the Flutter framework to support i18n which gives us an API to feed in our i18n implementation.flutter_localizations
是支持i18n的Flutter框架,它为我们提供了一个API来实现我们的i18n实现。intl
is a framework to write i18n abstraction interfaces.intl
是编写i18n抽象接口的框架。intl_translation
is a CLI for i18n code data separation, which generates code from data files and extracts data files from code.intl_translation
是用于i18n代码数据