更新开发文档:l10n中英文开发文档,以匹配上游对工作流程的更改
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
**Nezha Monitoring's Dashboard has added localization to support multiple languages, and you can follow these steps to support localization when developing new features**
|
||||
::: warning
|
||||
Nezha uses the Crowdin platform to translate text, please do not directly modify the toml files other than `zh-CN.toml`.
|
||||
:::
|
||||
|
||||
## Introduction
|
||||
1. You can replace the text in the new feature directly using the configuration in `/resource/l10n/zh-CN.toml`
|
||||
2. If there is new text in the new feature, pull the new text into `zh-CN.toml`
|
||||
::: tip
|
||||
If you don't understand Chinese at all, you can translate the text using Google or DeepL Translate, and specify in the Pull Request, we will revise the Chinese translation after you add the English translation
|
||||
:::
|
||||
3. After the Pull Request has been merged, you can go to [Crowdin Platform](https://crowdin.com/project/nezha) to contribute translations of the new text
|
||||
1. You can directly use the text configuration already available in `/resource/l10n/en-US.toml` to replace the text in the new feature.
|
||||
2. If there is new text in the new feature, please refer to the configuration text in `en-US.toml`, pull the new text into the configuration files of other languages such as `en-US.toml`, and add translations.
|
||||
|
||||
## Adding a new localized text file
|
||||
1. Add a new language text configuration in `/resource/l10n/`.
|
||||
2. Pull existing text configurations from other languages in the new language text configuration.
|
||||
3. Add translations for the new language text configuration.
|
||||
Reference in New Issue
Block a user