Use the 'and' feature!

This commit is contained in:
David Baker 2017-10-24 10:21:41 +01:00
parent 2340c1308e
commit 46e9d4197a

View file

@ -176,11 +176,9 @@ for (const path of SEARCH_PATHS) {
const trObj = {}; const trObj = {};
for (const tr of translatables) { for (const tr of translatables) {
trObj[tr] = tr; trObj[tr] = tr;
if (tr.includes("|")) { if (tr.includes("|") && inputTranslationsRaw[tr]) {
if (inputTranslationsRaw[tr]) {
trObj[tr] = inputTranslationsRaw[tr]; trObj[tr] = inputTranslationsRaw[tr];
} }
}
} }
fs.writeFileSync( fs.writeFileSync(