读取 overview.zh.json,翻译得到 overview.en.json。保持 JSON 结构一致。每次处理一条数据。
将中文 overview JSON 文件翻译为英文版本。
Content/Arena/All Arenas/{arena-folder}/overview.zh.jsonoverview.en.json(同目录)Content/Arena/All Arenas/1-intelligent-research-system/overview.zh.jsonhighlight、industry、category、cycle、case_no、sectionssections[] 每项仅允许字段:title、subsectionssubsections[] 每项仅允许字段:title、contentcontent 必须为字符串数组,不改成对象/富文本结构markdown 字段,则必须保留并翻译其文本内容,不得删除highlight 字段industry 字段category 字段cycle 字段sections 中的 title 字段subsections 中的 title 和 content 数组中的文本markdown 字段case_no (编号保持原样)[text](url) 结构)- 保持不变1. 、2. 保持不变用户调用此 skill 时,我执行以下步骤:
Content/Arena/All Arenas/ 下的 arena 目录overview.zh.json 文件overview.en.json 文件,或者overview.zh.json 的修改时间晚于 overview.en.json(源文件已更新)overview.zh.json 文件overview.en.json 文件通过比较文件修改时间判断是否需要更新:
stat -f %m (macOS) 或 stat -c %Y (Linux) 获取文件修改时间戳overview.zh.json 时间戳 > overview.en.json 时间戳,则需要更新# 调用 skill 处理下一条
$overview-translation
# 指定 arena-folder
$overview-translation --folder 1-intelligent-research-system