A simple and powerful Flutter i18n plugin.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
flytreeleft 6af767cfd8 Docs: update getting-started.md 1 year ago
.github Config .github 1 year ago
assets Update the default i18n message resources 1 year ago
docs Docs: update getting-started.md 1 year ago
example Example: update cases 1 year ago
lib Improve I18nResourceLoader 1 year ago
test Init 1 year ago
.gitignore Init 1 year ago
.metadata Init 1 year ago
CHANGELOG.md Init 1 year ago
LICENSE Init 1 year ago
README.md Update docs 1 year ago
pubspec.lock New dependencies - http 1 year ago
pubspec.yaml Add default i18n assets 1 year ago


Flutter I18n Plugin

A simple and powerful Flutter i18n plugin.

Let’s say Bye Bye to the Property Key.

让我们和Property Key说再见!

讓我們和Property Key說再見!


  • Simple, cleaning and powerful API calls.
  • No property keys are needed, just only use the literal text as usual, it will be translated to the locale language, e.g. i18n.lang('This is a text').
  • Be compatible with the way to use property key actually.
  • Use YAML as the i18n message resource file instead of JSON or properties file.
  • Use namespace and module to distinguish the i18n messages which are in the different modules.
  • The same content of a i18n message can be converted to a different translation with a annotation.
  • Use reflected_mustache as the i18n message template engine, so the i18n message can be controlled freely.
  • Support to load the remote i18n message resources.
  • Support to be used in the Flutter libraries.
  • Dynamic change language when needed, e.g. i18n.lang('This an english text, but it will be translated to Chinese', locale: 'zh_Hans').
  • Support to custom the way to load or parse the i18n message resources.
  • Enable debug mode which means disabling caches and showing errors.


Messages + Code Demo


  • Getting Started: Quick import the Flutter I18n Plugin to your app.
  • Usage Cases: Check the cases to show how to use the Flutter I18n Plugin.
  • API Document: Guide to use the API of the Flutter I18n Plugin.


Apache License 2.0