更新开发文档:l10n中英文开发文档,以匹配上游对工作流程的更改

This commit is contained in:
Kris 2023-03-17 18:28:45 +01:00
parent 8a53bedf45
commit df33cd3aad
No known key found for this signature in database
GPG Key ID: 36AFAA97D2910652
2 changed files with 17 additions and 16 deletions

View File

@ -1,8 +1,10 @@
**哪吒监控的Dashboard已经添加本地化支持多个语言你可以在开发新功能时遵循以下步骤来支持本地化**
::: warning
哪吒监控使用 Crowdin 平台翻译文本,请不要直接修改除 `zh-CN.toml` 以外的toml文件
:::
**哪吒监控的 Dashboard 已经添加本地化,支持多个语言,你可以在开发新功能时遵循以下步骤来支持本地化**
## 介绍
1. 你可以直接使用 `/resource/l10n/zh-CN.toml` 中的配置来替换新功能中的文本
2. 如果新功能中有新的文本,请将新文本拉取到 `zh-CN.toml`
3. 在Pull Request被合并后你可以前往 [Crowdin 平台](https://crowdin.com/project/nezha)贡献新文本的翻译
1. 你可以直接使用 `/resource/l10n/zh-CN.toml` 中已有的文本配置来替换新功能中的文本
2. 如果新功能中有新增文本,请参考 `zh-CN.toml` 的配置文本,将新文本拉取到 `zh-CN.toml` 等其他语言的配置文件中,并添加翻译
## 新本地化文本的添加
1. 在 `/resource/l10n/` 中添加新的语言文本配置
2. 在新的语言文本配置中拉取其他语言已有的文本配置
3. 为新的语言文本配置添加翻译

View File

@ -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.