🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Refactor translation workflows to streamline commit and PR creation steps. Updated instructions for editing translation files and removed redundant automation steps, enhancing clarity and efficiency in managing translation updates.
Bill Yange57b052ce66f
diff --git a/.github/workflows/translate-docs.yml b/.github/workflows/translate-docs.ymlindex a219bd8bc..8157fccd2 100644--- a/.github/workflows/translate-docs.yml+++ b/.github/workflows/translate-docs.yml@@ -112,35 +112,17 @@ jobs:- Keep translations natural and idiomatic, not literal- Maintain consistent terminology within each language file- Do NOT modify en.json- - Only edit the translation JSON files. Do not run any git commands or create PRs.- If there are no missing translations, do nothing++ After translating, commit and open a PR using these exact steps (run each command separately, use only single-line messages with no newlines):+ 1. git checkout -b update-docs-translations+ 2. git add docs/messages/+ 3. git commit -m "Update docs translations"+ 4. git push origin update-docs-translations+ 5. gh pr create --title "Update docs translations" --body "Automated translation update: filled missing/empty translation keys across all locale files."claude_args: >---model claude-sonnet-4-6--max-turns 50--allowedTools "Edit" "Read" "Write" "Glob" "Grep"- "Bash(python3 *)"-- - name: Commit and open PR- run: |- git config user.name "github-actions[bot]"- git config user.email "github-actions[bot]@users.noreply.github.com"- git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"-- if git diff --quiet docs/messages/; then- echo "No translation changes to commit."- exit 0- fi-- BRANCH="update-docs-translations-$(date +%Y%m%d%H%M%S)"- git checkout -b "$BRANCH"- git add docs/messages/- git commit -m "Update docs translations"- git push origin "$BRANCH"-- gh pr create \- --title "Update docs translations" \- --body "Automated translation update: filled missing/empty translation keys across all locale files." \- --base master \- --head "$BRANCH"- env:- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ "Bash(python3 *)" "Bash(git checkout *)" "Bash(git add *)"+ "Bash(git commit *)" "Bash(git push *)" "Bash(gh pr create *)"diff --git a/.github/workflows/translate.yml b/.github/workflows/translate.ymlindex 39e267be4..c24817b1d 100644--- a/.github/workflows/translate.yml+++ b/.github/workflows/translate.yml@@ -111,35 +111,17 @@ jobs:- Keep translations natural and idiomatic, not literal- Maintain consistent terminology within each language file- Do NOT modify en.json- - Only edit the translation JSON files. Do not run any git commands or create PRs.- If there are no missing translations, do nothing++ After translating, commit and open a PR using these exact steps (run each command separately, use only single-line messages with no newlines):+ 1. git checkout -b update-translations+ 2. git add client/messages/+ 3. git commit -m "Update translations"+ 4. git push origin update-translations+ 5. gh pr create --title "Update translations" --body "Automated translation update: filled missing/empty translation keys across all locale files."claude_args: >---model claude-sonnet-4-6--max-turns 50--allowedTools "Edit" "Read" "Write" "Glob" "Grep"- "Bash(python3 *)"-- - name: Commit and open PR- run: |- git config user.name "github-actions[bot]"- git config user.email "github-actions[bot]@users.noreply.github.com"- git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"-- if git diff --quiet client/messages/; then- echo "No translation changes to commit."- exit 0- fi-- BRANCH="update-translations-$(date +%Y%m%d%H%M%S)"- git checkout -b "$BRANCH"- git add client/messages/- git commit -m "Update translations"- git push origin "$BRANCH"-- gh pr create \- --title "Update translations" \- --body "Automated translation update: filled missing/empty translation keys across all locale files." \- --base master \- --head "$BRANCH"- env:- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ "Bash(python3 *)" "Bash(git checkout *)" "Bash(git add *)"+ "Bash(git commit *)" "Bash(git push *)" "Bash(gh pr create *)"