Use the 'and' feature!
This commit is contained in:
parent
2340c1308e
commit
46e9d4197a
1 changed files with 2 additions and 4 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue