feat: 更新 Crowdin 工作流以支持 dashboard WebUI 的本地化文件,添加相关验证逻辑

This commit is contained in:
春河晴
2026-03-13 20:09:21 +09:00
parent 5f5ff4ce8e
commit 5da82c4e24
8 changed files with 283 additions and 15 deletions

View File

@@ -41,6 +41,7 @@ Only source-language assets should trigger source uploads to Crowdin.
Current source-language assets:
- `locales/zh-CN/*.json`
- `prompts/zh-CN/**/*.prompt`
- `dashboard/src/i18n/locales/zh.json`
- `crowdin.yml`
### Prompt template extension
@@ -162,6 +163,9 @@ This workflow must remain the repository-side structural validation layer for lo
#### Required validation role
It should validate localization assets and i18n-relevant code changes.
That includes both:
- backend locale JSON under `locales/`
- dashboard locale JSON under `dashboard/src/i18n/locales/`
#### Prompt trigger scope
It must cover the actual prompt template extension used in the repository.