diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-08-08 19:50:49 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-08-08 19:50:49 -0700 |
commit | b080e30b14c70ab450ea77e93bce45f93662b7ed (patch) | |
tree | 756f84e33bd0cecd0c4e23fa1ec6a7643155e766 /ext | |
parent | afef392491bded046299b7812f665dbe5193a25f (diff) |
Metadata
Diffstat (limited to 'ext')
-rw-r--r-- | ext/bg/js/translator.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js index 29edd81a..7b776383 100644 --- a/ext/bg/js/translator.js +++ b/ext/bg/js/translator.js @@ -207,8 +207,9 @@ class Translator { } applyTagMeta(tag) { - for (const prop in this.tagMeta[tag.name] || {}) { - tag[prop] = this.tagMeta[tag.name][prop] || tag[prop]; + const symbol = tag.name.split(':')[0]; + for (const prop in this.tagMeta[symbol] || {}) { + tag[prop] = this.tagMeta[symbol][prop]; } } |