Skip to content

Localization

Keldos edited this page Aug 21, 2023 · 9 revisions

Chuanhu Chat is translated to:

To translate Chuanhu Chat to another language:

  • Fork the main branch
  • Make a branch for the new translation as follows: translation-xx_YY where xx_YY is the language code (ex: en_US, ja_JP, ...)
  • Add a new localization .json file in the local folder (You can make a copy of en_US.json and rename it to your language code)
  • Oh, in fact, there are some strings in the localization.js that also need to be translated:
    https://github.com/GaiZhenbiao/ChuanhuChatGPT/blob/main/web_assets/javascript/localization.js

    Note:
    The language in .json locale is determined by terminal environment language and config.json language setting, while the language in localization.js locale file is determined by browser language setting.

  • Happy translating
  • Add your language option notes in config_example.json
  • Write a pull request on GitHub

Clone this wiki locally