Skip to content

Commit 6201b86

Browse files
committed
feat: 更新 Crowdin 配置以包含韩语翻译,移除对目标语言的排除
1 parent 5da82c4 commit 6201b86

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

crowdin.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@ export_languages:
1111
files:
1212
- source: /locales/zh-CN/*.json
1313
translation: /locales/%locale%/%original_file_name%
14-
excluded_target_languages:
15-
- ko
1614

1715
- source: /prompts/zh-CN/**/*.prompt
1816
translation: /prompts/%locale%/**/%original_file_name%
19-
excluded_target_languages:
20-
- ko
2117

2218
- source: /dashboard/src/i18n/locales/zh.json
2319
translation: /dashboard/src/i18n/locales/%two_letters_code%.json

docs/i18n.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ Prompt 加载规则:
116116
- 下面这两条是本仓库的 repository-specific 校验策略,不是 Crowdin 默认行为。
117117
- 不要手工把中文 source 文案直接复制进目标语言文件后提交。
118118
- 英文 locale 文件中不应保留中文字符;这类残留会被校验脚本拦截。
119+
- Python 项目后续新增的 `ko` locale 也遵循同样规则。
119120
- `dashboard/src/i18n/locales/en.json` / `ja.json` / `ko.json` 也遵循同样规则。
120121

121122
### 什么时候可以直接改目标语言文件
@@ -171,6 +172,11 @@ python scripts/i18n_extract_candidates.py
171172
- `prompts/zh-CN/**/*.prompt`
172173
- `dashboard/src/i18n/locales/zh.json`
173174

175+
对于 Python 项目:
176+
177+
- `locales/zh-CN/*.json` 的目标语言现在也包含韩语,不再排除 `ko`
178+
- `prompts/zh-CN/**/*.prompt` 的目标语言现在也包含韩语,不再排除 `ko`
179+
174180
对于 dashboard:
175181

176182
- Crowdin 下载结果会回写到 `dashboard/src/i18n/locales/en.json``ja.json``ko.json`

0 commit comments

Comments
 (0)