读取 implementation.zh.json,翻译得到 implementation.en.json。保持 JSON 结构一致。每次处理一条数据。
翻译实施配置 JSON 从中文到英文。
Content/Arena/All Arenas/{arena-folder}/implementation.zh.jsonimplementation.en.json(同目录)Content/Arena/All Arenas/1-intelligent-research-system/implementation.zh.jsonphasesphases[] 每项仅允许字段:number、title、subsectionssubsections[] 每项仅允许字段:title、contentcontent 必须为字符串数组,不改成对象/富文本结构团队构成、实施内容、相关资源、结果产出、实施周期phases 中的 title 字段subsections 中的 title 字段content 数组中的文本内容number (阶段编号保持原样)[text](url) 结构)- 保持不变1. 、2. 保持不变用户调用此 skill 时,我执行以下步骤:
Content/Arena/All Arenas/ 下的 arena 目录implementation.zh.json 但没有 implementation.en.json,或者implementation.zh.json 的修改时间晚于 implementation.en.json(中文版已更新)implementation.zh.json 内容implementation.en.json 文件通过比较文件修改时间判断是否需要更新:
stat -f %m (macOS) 或 stat -c %Y (Linux) 获取文件修改时间戳implementation.zh.json 时间戳 > implementation.en.json 时间戳,则需要更新# 调用 skill 翻译下一条
$implementation-translation
# 指定 arena-folder
$implementation-translation --folder 1-intelligent-research-system