File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4949 echo "Files to translate:"
5050 echo "${{ steps.changed-files.outputs.files }}"
5151
52- for file in ${{ steps.changed-files.outputs.files }}; do
53- echo "Translating $file..."
54- python tools/translate/main.py "$file" "$DIFY_API_KEY"
52+ echo "${{ steps.changed-files.outputs.files }}" | while IFS= read -r file; do
53+ if [[ -n "$file" ]]; then
54+ echo "Translating $file..."
55+ python tools/translate/main.py "$file" "$DIFY_API_KEY"
56+ fi
5557 done
5658
5759 - name : Commit and push changes
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ ---
2+ title : 测试文档
3+ ---
4+
5+ # 测试文档
6+ 这是一个测试文档,用于验证翻译功能。
7+
8+ ---
9+
10+ 对于文档撰写者:
11+
12+ GitHub Actions 仅用作观测进展. 实际操作是:
13+
14+ 1 . 写文档
15+ 2 . push
16+ 3 . 等待大约 0.5 - 1 分钟
17+ 4 . pull request
18+ 1 . 或者在 GitHub 网页上查看提交记录
19+
20+ 没了
21+
22+ ---
23+
24+ 如果要更新术语表, 请更新 ` tools/translate/termbase_i18n.md `
25+ 如果要调整翻译用的 prompt 或者更换基座模型, 访问我们的 Dify Studio 即可.
You can’t perform that action at this time.
0 commit comments