251  字
  1  分钟 
  FAQ / 常见问题 
 🌍 l10n / 本地化
English
- Fork this repo and clone forked repo to your local machine.
- Create arbfile inlib/l10n/directory- File name should be intl_XX.arb, whereXXis the language code. Such asintl_en.arbfor English andintl_zh.arbfor Chinese.
 
- File name should be 
- Add content to the file. You can refer to intl_en.arbandintl_zh.arbfor the format.
- Run flutter gen-l10nto generate files.
- Pull commit to your forked repo.
- Request a pull request on my repo.
简体中文
- Fork 本项目,并 Clone 你 Fork 的项目至你的电脑
- 在 lib/l10n/文件夹内创建.arb本地化文件- 文件名应该类似 intl_XX.arb,XX是语言标识码。 例如intl_en.arb是给英语的,intl_zh.arb是给中文的
 
- 文件名应该类似 
- 向 .arb本地化文件添加内容。 你可以查看intl_en.arb和intl_zh.arb的内容,并理解其含义,来创建新的本地化文件
- 运行 flutter gen-l10n来生成所需文件
- Commit 变更到你 Fork 的 Repo
- 在我的项目中发起 Pull Request
🔨Compile / 自行编译
English
- Clone the repository: git clone URL
- Install Flutter: Tutorial
- Compile:
- Windows: flutter build windows
- Linux: flutter build linux
- macOS: flutter build macos
 
- Windows: 
简体中文
- 克隆仓库: git clone URL
- 安装 Flutter: 教程
- 编译:
- Windows: flutter build windows
- Linux: flutter build linux
- macOS: flutter build macos
 
  