XiaomaiTX / zeppos-auto-i18n-translator

An auto i18n translation tool for ZeppOS. 一个简单自动的i18n翻译工具,您只用写一份.po文件即可,自动生成其他语言的.po文件,帮助开发者快速完成i18n翻译工作。
MIT License
3 stars 0 forks source link

Contributors Forks Stargazers Issues MIT License


ZeppOS Auto I18N Translator

An auto i18n translation tool for ZeppOS
中文文档

Report Bug · Request Feature

About The Project

A simple automatic i18n translation tool. You only need to write one .po file, and it will automatically generate .po files for other languages, helping developers quickly complete i18n translation tasks.

Getting Started

Prerequisites

You need to install Node.js and the required dependencies. For more details, please refer to Installation.

Installation

npm install @x1a0ma17x/zeppos-auto-i18n-translator -g

Usage

After installation, run the following command to generate the configuration file:

z18n

Configuration file parameters:

Parameter Description Type Example
originLang Original language string zh-CN
targetLangs Target languages array ["en-US", "zh-TW", "ru-RU", "fr-FR"]
workingPath i18n folder path string ./example/page/i18n
adapter Translation channel string Translated

Both originLang and targetLangs should be standard language codes. Refer to the language codes supported by ZeppOS for more details.

Currently supported adapters:

Adapter Description
Translated Translation channel

Once the configuration file is set, simply run z18n to complete the translation.

Roadmap

See the open issues for a full list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

XiaomaiTX - i@lenrome.cn

Project Link: https://github.com/XiaomaiTX/zeppos-auto-i18n-translator