mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Merge pull request #2166 from matrix-org/dbkr/allow_non_literal_translations
Allow translation tags object to be a variable
This commit is contained in:
commit
77d5daf9e3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue