Skip to content

A local-first personal finance app

keep all English translations regardless of translated % (#4232)

Matt Fiddaman9b5933356380
diff --git a/packages/desktop-client/bin/remove-untranslated-languages b/packages/desktop-client/bin/remove-untranslated-languages
index c3dd650610..79a093888d 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 0000000000..39b9109830
--- /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