From 1bbe58123689396b9a078b31d9270a4768a2accd Mon Sep 17 00:00:00 2001 From: Aashish Panthi Date: Tue, 2 Jun 2026 00:02:21 +0545 Subject: [PATCH 1/3] add details feature which shows the new addition in English language in a nice expandable way --- .github/actions/translation-tracker/index.js | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/actions/translation-tracker/index.js b/.github/actions/translation-tracker/index.js index 7d9f3ff715..6feb0ccd4b 100644 --- a/.github/actions/translation-tracker/index.js +++ b/.github/actions/translation-tracker/index.js @@ -269,7 +269,7 @@ class GitHubCommitTracker { let isTruncated = false; if (patch) { const lines = patch.split('\n'); - const maxLines = 80; + const maxLines = 50; if (lines.length > maxLines) { patchSnippet = lines.slice(0, maxLines).join('\n'); isTruncated = true; @@ -407,6 +407,24 @@ class GitHubCommitTracker { }); } + // English diff (optional best-effort) + if (englishDiff && (englishDiff.compareUrl || englishDiff.patchSnippet)) { + body += `### 🧩 Recent English Diff\n\n`; + if (englishDiff.compareUrl) { + body += `- [🔍 View full compare](${englishDiff.compareUrl})\n\n`; + } + if (englishDiff.patchSnippet) { + body += `
\nShow patch snippet\n\n`; + body += `\`\`\`diff\n${englishDiff.patchSnippet}\n\`\`\`\n\n`; + if (englishDiff.isTruncated) { + body += `_(Patch snippet truncated. Use the compare link above for the full diff.)_\n\n`; + } + body += `
\n\n`; + } else { + body += `_(No preview of the differences is available for this change. Use the compare link above.)_\n\n`; + } + } + body += `### 🔗 Quick Links - [📄 Current English file](https://github.com/${this.owner}/${this.repo}/blob/${this.currentBranch}/${englishFile}) From 9cb73c3a7812ddf59b50fd8d91320619c2979c57 Mon Sep 17 00:00:00 2001 From: Aashish Panthi Date: Tue, 2 Jun 2026 00:05:18 +0545 Subject: [PATCH 2/3] Add comments and text readability --- .github/actions/translation-tracker/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/translation-tracker/index.js b/.github/actions/translation-tracker/index.js index 6feb0ccd4b..83a7e66025 100644 --- a/.github/actions/translation-tracker/index.js +++ b/.github/actions/translation-tracker/index.js @@ -407,7 +407,7 @@ class GitHubCommitTracker { }); } - // English diff (optional best-effort) + // English diff. It shows the actual content changes in the English file. if (englishDiff && (englishDiff.compareUrl || englishDiff.patchSnippet)) { body += `### 🧩 Recent English Diff\n\n`; if (englishDiff.compareUrl) { @@ -421,7 +421,7 @@ class GitHubCommitTracker { } body += `\n\n`; } else { - body += `_(No preview of the differences is available for this change. Use the compare link above.)_\n\n`; + body += `_(Could't generate preview of the differences for this change. Use the compare link above to see the full diff.)_\n\n`; } } From 70a2cd1227bee9687740fc25fd9eb92c605a7d1e Mon Sep 17 00:00:00 2001 From: Aashish Panthi Date: Thu, 4 Jun 2026 13:15:21 +0545 Subject: [PATCH 3/3] fixed the small typo --- .github/actions/translation-tracker/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/translation-tracker/index.js b/.github/actions/translation-tracker/index.js index 83a7e66025..9ca677c58f 100644 --- a/.github/actions/translation-tracker/index.js +++ b/.github/actions/translation-tracker/index.js @@ -421,7 +421,7 @@ class GitHubCommitTracker { } body += `\n\n`; } else { - body += `_(Could't generate preview of the differences for this change. Use the compare link above to see the full diff.)_\n\n`; + body += `_(Couldn't generate preview of the differences for this change. Use the compare link above to see the full diff.)_\n\n`; } }