GeezerVison is showing github.com — chore: update docs sync workflow · zwying/opencode@6b30e0b
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/docs-locale-sync.yml +7-4Lines changed: 7 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -64,10 +64,13 @@ jobs: |
64 | 64 |
|
65 | 65 | Requirements: |
66 | 66 | 1. Update all relevant locale docs under packages/web/src/content/docs/<locale>/ so they reflect these English page changes. |
67 | | - 2. Preserve frontmatter keys, internal links, code blocks, and existing locale-specific metadata unless the English change requires an update. |
68 | | - 3. Keep locale docs structure aligned with their corresponding English pages. |
69 | | - 4. Do not modify English source docs in packages/web/src/content/docs/*.mdx. |
70 | | - 5. If no locale updates are needed, make no changes. |
| 67 | + 2. You MUST use the Task tool for translation work and launch subagents with subagent_type `translator` (defined in .opencode/agent/translator.md). |
| 68 | + 3. Do not translate directly in the primary agent. Use translator subagent output as the source for locale text updates. |
| 69 | + 4. Run translator subagent Task calls in parallel whenever file/locale translation work is independent. |
| 70 | + 5. Preserve frontmatter keys, internal links, code blocks, and existing locale-specific metadata unless the English change requires an update. |
| 71 | + 6. Keep locale docs structure aligned with their corresponding English pages. |
| 72 | + 7. Do not modify English source docs in packages/web/src/content/docs/*.mdx. |
| 73 | + 8. If no locale updates are needed, make no changes. |
71 | 74 |
|
72 | 75 | - name: Commit and push locale docs updates |
73 | 76 | if: steps.changes.outputs.has_changes == 'true' |
|