Merge pull request #2166 from matrix-org/dbkr/allow_non_literal_translations

Allow translation tags object to be a variable
pull/21833/head
David Baker 2018-09-14 15:42:54 +01:00 committed by GitHub
commit 77d5daf9e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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