Commit Graph

6 Commits

Author SHA1 Message Date
春河晴
5da82c4e24 feat: 更新 Crowdin 工作流以支持 dashboard WebUI 的本地化文件,添加相关验证逻辑 2026-03-13 20:09:22 +09:00
春河晴
d418a8451b feat: 增强国际化验证功能,添加对共享翻译字符串的支持,优化提示模板加载逻辑 2026-03-13 01:59:20 +09:00
春河晴
55eb911dd3 fix(i18n): 修复 PROMPT_EXTENSIONS 元组声明、消除重复代码、优化锁策略
- fix: PROMPT_EXTENSIONS = (".prompt") 是字符串非元组,改为 (".prompt",)
- refactor: 将 extract_placeholders/format_template 统一到 loaders.py,
  消除 formatting.py、prompt_i18n.py、i18n_validate.py 三处重复
- perf: _get_catalog 和 load_prompt 改为双重检查锁定,I/O 不再阻塞其他线程
- perf: _log_once 使用独立 _warning_lock,不再与 _cache_lock 竞争
- fix: _scan_legacy_prompt_directory 添加 prompts_root 参数,修正 relative_to 语义
- refactor: 合并 _supported_prompt_files 两个变体为单函数 + recursive 参数
- docs: i18n.md 强化 repository-specific 校验策略标注,修正时间表述冗余
- fix: 验证脚本错误消息移除 Crowdin 暗示,标注为仓库级校验策略

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 01:59:20 +09:00
春河晴
4b7ee3923c ci: tighten crowdin and i18n PR checks 2026-03-13 00:35:30 +09:00
春河晴
c9bfedddd2 i18n: localize prompt templates with crowdin 2026-03-13 00:09:08 +09:00
春河晴
c470fdfd1e i18n: crowdin integration 2026-03-12 17:23:17 +09:00