FAQ / 常见问题

🌍 l10n / 本地化

English

  1. Fork this repo and clone forked repo to your local machine.
  2. Create arb file in lib/l10n/ directory
    • File name should be intl_XX.arb, where XX is the language code. Such as intl_en.arb for English and intl_zh.arb for Chinese.
  3. Add content to the file. You can refer to intl_en.arb and intl_zh.arb for the format.
  4. Run flutter gen-l10n to generate files.
  5. Pull commit to your forked repo.
  6. Request a pull request on my repo.

简体中文

  1. Fork 本项目,并 Clone 你 Fork 的项目至你的电脑
  2. lib/l10n/ 文件夹内创建 .arb 本地化文件
    • 文件名应该类似 intl_XX.arb, XX 是语言标识码。 例如 intl_en.arb 是给英语的, intl_zh.arb 是给中文的
  3. .arb 本地化文件添加内容。 你可以查看 intl_en.arbintl_zh.arb 的内容,并理解其含义,来创建新的本地化文件
  4. 运行 flutter gen-l10n 来生成所需文件
  5. Commit 变更到你 Fork 的 Repo
  6. 在我的项目中发起 Pull Request

🔨Compile / 自行编译

English

  1. Clone the repository: git clone URL
  2. Install Flutter: Tutorial
  3. Compile:
    • Windows: flutter build windows
    • Linux: flutter build linux
    • macOS: flutter build macos

简体中文

  1. 克隆仓库: git clone URL
  2. 安装 Flutter: 教程
  3. 编译:
  • Windows: flutter build windows
  • Linux: flutter build linux
  • macOS: flutter build macos