From 154653523c2c9846242c02baebc2f8598721f1a3 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 13 Mar 2025 09:03:35 +0100 Subject: [PATCH] Only include valid translations in .json files Fuzzy translations might be incorrect, and obsolete translations aren't used anywhere. --- po/po2js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/po/po2js b/po/po2js index e74b1d4f..6347e1ea 100755 --- a/po/po2js +++ b/po/po2js @@ -32,6 +32,8 @@ let po = pofile.parse(data); const bodyPart = po.items .filter(item => item.msgid !== "") .filter(item => item.msgstr[0] !== "") + .filter(item => !item.flags.fuzzy) + .filter(item => !item.obsolete) .map(item => " " + JSON.stringify(item.msgid) + ": " + JSON.stringify(item.msgstr[0])) .join(",\n");