mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 04:06:44 +02:00
Allow translation tags object to be a variable
Don't try to validate the translation tags if it's not an object literal.
This commit is contained in:
parent
518be24a5b
commit
e1394d592a
@ -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…
x
Reference in New Issue
Block a user