非常简单的本地化

一键生成包含 100 多种语言的自定义本地化 JSON 文件?

Build Status

Very Easy Localization 是一个 CLI 工具,可帮助您从 Flutter 应用中提取字符串,并使用 Google 翻译创建 100 多种语言的本地化文件。

安装

dart pub global activate very_easy_localization

基本用法

dart pub global run very_easy_localization --help

基本选项

 -------------------------------------------------------------------
|                                                                   |
| -h, --help       Shows the help                                   |
| -v, --version    Prints the Very Easy Localization CLI Version    |
| run              Run the localization process                     |
|                                                                   |
 -------------------------------------------------------------------

生成

dart pub global run very_easy_localization run

运行选项

 --------------------------------------------------------------------------------
|                                                                                |
| -h, --help                    Shows the help                                   |
| -v, --version                 Prints the Very Easy Localization CLI Version    |
| -l, --languages               Pass the languages eg: en,ja,... [defaut: en,hi] |
| -i, --include-external-files  External Lib Files eg: ./assets/file.txt         |
| -o, --output-directory        Output Directory [default: ./ve_localization]    |
|                                                                                |
 --------------------------------------------------------------------------------

许可证

MIT

GitHub

查看 Github