diff --git a/scripts/gen-i18n.js b/scripts/gen-i18n.js index fa9ccc8ed7..c35cd3466a 100755 --- a/scripts/gen-i18n.js +++ b/scripts/gen-i18n.js @@ -143,7 +143,7 @@ function getTranslationsJs(file) { // Validate tag replacements if (node.arguments.length > 2) { const tagMap = node.arguments[2]; - for (const prop of tagMap.properties) { + for (const prop of tagMap.properties || []) { if (prop.key.type === 'Literal') { const tag = prop.key.value; // RegExp same as in src/languageHandler.js