From 9b5933356380d26230a94b6fa75b994e678ea781 Mon Sep 17 00:00:00 2001 From: Matt Fiddaman Date: Thu, 30 Jan 2025 09:00:59 +0000 Subject: [PATCH] keep all English translations regardless of translated % (#4232) * keep all English translations regardless of translated % * note --- packages/desktop-client/bin/remove-untranslated-languages | 5 +++++ upcoming-release-notes/4232.md | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 upcoming-release-notes/4232.md diff --git a/packages/desktop-client/bin/remove-untranslated-languages b/packages/desktop-client/bin/remove-untranslated-languages index c3dd6506101..79a093888d1 100755 --- a/packages/desktop-client/bin/remove-untranslated-languages +++ b/packages/desktop-client/bin/remove-untranslated-languages @@ -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; diff --git a/upcoming-release-notes/4232.md b/upcoming-release-notes/4232.md new file mode 100644 index 00000000000..39b91098301 --- /dev/null +++ b/upcoming-release-notes/4232.md @@ -0,0 +1,6 @@ +--- +category: Maintenance +authors: [matt-fidd] +--- + +Keep all English translations regardless of translated percentage