diff --git a/.github/actions/translation-tracker/index.js b/.github/actions/translation-tracker/index.js
index 7d9f3ff715..3c6e4f2698 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,23 @@ 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`;
+ 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`;
+ if (englishDiff.isTruncated) {
+ body += `_(Patch snippet truncated. Use the compare link above for the full diff.)_\n\n`;
+ }
+ body += ` \n\n`;
+ } else {
+ body += `_(Couldn't generate preview of the differences for this change. Use the compare link above to see the full diff.)_\n\n`;
+ }
+ }
+
body += `### 🔗 Quick Links
- [📄 Current English file](https://github.com/${this.owner}/${this.repo}/blob/${this.currentBranch}/${englishFile})
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