Merge pull request #1521 from matrix-org/dbkr/geni18n-addplural

Fix bug with gen-i18n/js when adding new plurals
pull/21833/head
David Baker 2017-10-24 11:15:51 +01:00 committed by GitHub
commit 93fca8439e
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ 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]) {
trObj[tr] = inputTranslationsRaw[tr]; trObj[tr] = inputTranslationsRaw[tr];
} }
} }