diff --git a/scripts/gen-i18n.js b/scripts/gen-i18n.js index cbef54ba9c..670089ba63 100755 --- a/scripts/gen-i18n.js +++ b/scripts/gen-i18n.js @@ -176,10 +176,8 @@ for (const path of SEARCH_PATHS) { const trObj = {}; for (const tr of translatables) { trObj[tr] = tr; - if (tr.includes("|")) { - if (inputTranslationsRaw[tr]) { - trObj[tr] = inputTranslationsRaw[tr]; - } + if (tr.includes("|") && inputTranslationsRaw[tr]) { + trObj[tr] = inputTranslationsRaw[tr]; } }