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,12 +176,10 @@ for (const path of SEARCH_PATHS) {
const trObj = {};
for (const tr of translatables) {
trObj[tr] = tr;
if (tr.includes("|")) {
if (inputTranslationsRaw[tr]) {
if (tr.includes("|") && inputTranslationsRaw[tr]) {
trObj[tr] = inputTranslationsRaw[tr];
}
}
}
fs.writeFileSync(
"src/i18n/strings/en_EN.json",