feat: Add automated translation sync workflow with DeepSeek API#876
Open
comfyui-wiki wants to merge 3 commits intomainfrom
Open
feat: Add automated translation sync workflow with DeepSeek API#876comfyui-wiki wants to merge 3 commits intomainfrom
comfyui-wiki wants to merge 3 commits intomainfrom
Conversation
- .github/workflows/translation-sync.yml: triggers on push to main, detects which language files are out of sync, runs translation script, creates a PR for review - .github/scripts/translate-sync.py: diff-based translation — only translates changed sections (split by headings), skips files already updated in the same commit - .github/scripts/translation-config.json: language config, easily extensible to add new languages Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
…fixes - Use section index position instead of heading text to match sections between English and translated files (language-agnostic) - Fix language dir: zh-CN → zh, snippets/zh - Fix workflow: use step output for branch name instead of env var - Fix workflow: use gh pr create body inline to avoid heredoc issues - Add .env to .gitignore Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mainwhen English.mdxfiles changemainHow it works
main, detect changed English.mdxfilesi18n/sync-<sha>) with all translated filesAdding a new language
Edit
.github/scripts/translation-config.jsonand add an entry:{ "code": "fr", "name": "French", "dir": "fr", "snippets_dir": "snippets/fr" }Setup required
Add
DEEPSEEK_API_KEYas a repository secret in GitHub Settings → Secrets.Test plan
DEEPSEEK_API_KEYsecret to the repo.mdxchange tomainand verify a translation PR is createdtranslationlabel is applied to the generated PR🤖 Generated with Claude Code