feat: 更新 Crowdin 配置以包含韩语翻译,移除对目标语言的排除
This commit is contained in:
@@ -11,13 +11,9 @@ export_languages:
|
||||
files:
|
||||
- source: /locales/zh-CN/*.json
|
||||
translation: /locales/%locale%/%original_file_name%
|
||||
excluded_target_languages:
|
||||
- ko
|
||||
|
||||
- source: /prompts/zh-CN/**/*.prompt
|
||||
translation: /prompts/%locale%/**/%original_file_name%
|
||||
excluded_target_languages:
|
||||
- ko
|
||||
|
||||
- source: /dashboard/src/i18n/locales/zh.json
|
||||
translation: /dashboard/src/i18n/locales/%two_letters_code%.json
|
||||
|
||||
@@ -116,6 +116,7 @@ Prompt 加载规则:
|
||||
- 下面这两条是本仓库的 repository-specific 校验策略,不是 Crowdin 默认行为。
|
||||
- 不要手工把中文 source 文案直接复制进目标语言文件后提交。
|
||||
- 英文 locale 文件中不应保留中文字符;这类残留会被校验脚本拦截。
|
||||
- Python 项目后续新增的 `ko` locale 也遵循同样规则。
|
||||
- `dashboard/src/i18n/locales/en.json` / `ja.json` / `ko.json` 也遵循同样规则。
|
||||
|
||||
### 什么时候可以直接改目标语言文件
|
||||
@@ -171,6 +172,11 @@ python scripts/i18n_extract_candidates.py
|
||||
- `prompts/zh-CN/**/*.prompt`
|
||||
- `dashboard/src/i18n/locales/zh.json`
|
||||
|
||||
对于 Python 项目:
|
||||
|
||||
- `locales/zh-CN/*.json` 的目标语言现在也包含韩语,不再排除 `ko`
|
||||
- `prompts/zh-CN/**/*.prompt` 的目标语言现在也包含韩语,不再排除 `ko`
|
||||
|
||||
对于 dashboard:
|
||||
|
||||
- Crowdin 下载结果会回写到 `dashboard/src/i18n/locales/en.json`、`ja.json`、`ko.json`
|
||||
|
||||
Reference in New Issue
Block a user