Skip to content

Commit

Permalink
keep all English translations regardless of translated % (#4232)
Browse files Browse the repository at this point in the history
* keep all English translations regardless of translated %

* note
  • Loading branch information
matt-fidd authored Jan 30, 2025
1 parent b09d800 commit 9b59333
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/desktop-client/bin/remove-untranslated-languages
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ const processTranslations = () => {
files.forEach((file) => {
if (file === 'en.json' || path.extname(file) !== '.json') return;

if (file.startsWith('en-')) {
console.log(`Keeping ${file} as it's an English language.`);
return;
}

const filePath = path.join(localRepoPath, file);
const jsonData = JSON.parse(fs.readFileSync(filePath, 'utf8'));
const fileKeysCount = Object.keys(jsonData).length;
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/4232.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Maintenance
authors: [matt-fidd]
---

Keep all English translations regardless of translated percentage

0 comments on commit 9b59333

Please sign in to comment.