From 5d8f5669837138c3b52df40e37ece96e7f095d40 Mon Sep 17 00:00:00 2001 From: snomiao Date: Mon, 10 Nov 2025 10:36:33 +0000 Subject: [PATCH] debug: Add locale state debugging to i18n workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add debug step to check: - If subscription section exists in source (en) locale - If subscription section exists in target (zh) locale - Git working tree status before commit This will help diagnose why lobe-i18n isn't generating changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/i18n-update-core.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/i18n-update-core.yaml b/.github/workflows/i18n-update-core.yaml index a467634b7f..aa49a2302b 100644 --- a/.github/workflows/i18n-update-core.yaml +++ b/.github/workflows/i18n-update-core.yaml @@ -44,6 +44,14 @@ jobs: run: pnpm locale env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + - name: Debug locale state + run: | + echo "=== Checking if subscription exists in source (en) ===" + jq '.subscription | keys' src/locales/en/main.json || echo "No subscription section in en" + echo "=== Checking if subscription exists in target (zh) ===" + jq '.subscription | keys' src/locales/zh/main.json || echo "No subscription section in zh" + echo "=== Git working tree status ===" + git status --porcelain src/locales/ - name: Commit updated locales run: | git config --global user.name 'github-actions'