From 1bbe58123689396b9a078b31d9270a4768a2accd Mon Sep 17 00:00:00 2001 From: Aashish Panthi Date: Tue, 2 Jun 2026 00:02:21 +0545 Subject: [PATCH 1/6] 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/6] 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/6] 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`; } } From 2557caef903ac282d2bdadeff8f38629b9dddac2 Mon Sep 17 00:00:00 2001 From: Aashish Panthi Date: Thu, 25 Jun 2026 19:33:09 +0545 Subject: [PATCH 4/6] remove unnecessary code snippet --- .github/actions/translation-tracker/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/actions/translation-tracker/index.js b/.github/actions/translation-tracker/index.js index 9ca677c58f..3c6e4f2698 100644 --- a/.github/actions/translation-tracker/index.js +++ b/.github/actions/translation-tracker/index.js @@ -410,9 +410,8 @@ class GitHubCommitTracker { // 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) { - body += `- [🔍 View full compare](${englishDiff.compareUrl})\n\n`; - } + body += `- [🔍 View full compare](${englishDiff.compareUrl})\n\n`; // provides url to compare the differences + if (englishDiff.patchSnippet) { body += `
\nShow patch snippet\n\n`; body += `\`\`\`diff\n${englishDiff.patchSnippet}\n\`\`\`\n\n`; From 60f48a982be53578a42a3863416c6502dca4ad62 Mon Sep 17 00:00:00 2001 From: Aashish Panthi Date: Wed, 8 Jul 2026 00:54:51 +0545 Subject: [PATCH 5/6] test the changes --- .../examples/en/01_Shapes_And_Color/01_Color/description.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/content/examples/en/01_Shapes_And_Color/01_Color/description.mdx b/src/content/examples/en/01_Shapes_And_Color/01_Color/description.mdx index 91d0696d58..d2a2084f6e 100644 --- a/src/content/examples/en/01_Shapes_And_Color/01_Color/description.mdx +++ b/src/content/examples/en/01_Shapes_And_Color/01_Color/description.mdx @@ -30,4 +30,6 @@ sets the color for the inside of shapes. noFill() turn off line color and inner color, respectively. -Colors can be represented in many different ways. This example demonstrates several options. \ No newline at end of file +Colors can be represented in many different ways. This example demonstrates several options. + +I've added this description. \ No newline at end of file From 29461308165b9a639b3ab5055d2a2b24d919127d Mon Sep 17 00:00:00 2001 From: Aashish Panthi Date: Wed, 8 Jul 2026 21:00:24 +0545 Subject: [PATCH 6/6] back to original version --- .../examples/en/01_Shapes_And_Color/01_Color/description.mdx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/content/examples/en/01_Shapes_And_Color/01_Color/description.mdx b/src/content/examples/en/01_Shapes_And_Color/01_Color/description.mdx index d2a2084f6e..91d0696d58 100644 --- a/src/content/examples/en/01_Shapes_And_Color/01_Color/description.mdx +++ b/src/content/examples/en/01_Shapes_And_Color/01_Color/description.mdx @@ -30,6 +30,4 @@ sets the color for the inside of shapes. noFill() turn off line color and inner color, respectively. -Colors can be represented in many different ways. This example demonstrates several options. - -I've added this description. \ No newline at end of file +Colors can be represented in many different ways. This example demonstrates several options. \ No newline at end of file