Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2166 from matrix-org/dbkr/allow_non_literal_trans…
Browse files Browse the repository at this point in the history
…lations

Allow translation tags object to be a variable
  • Loading branch information
dbkr authored Sep 14, 2018
2 parents 518be24 + e1394d5 commit 77d5daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gen-i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77d5daf

Please sign in to comment.