Skip to content
Snippets Groups Projects

bugfix: enum translation temp fix

Merged Matthieu Fesselier requested to merge bugfix-enum-translation into master
1 file
+ 1
5
Compare changes
  • Side-by-side
  • Inline
+ 1
5
@@ -114,13 +114,9 @@ class JsI18n {
}
}
if (attr.startsWith('enum-')) {
let enumAttr = node.querySelector('[enum="' + attr.replace("enum-", "") + '"]');
let enumAttr = node.querySelector('[name="' + attr.replace("enum-", "") + '"]');
if (enumAttr != null) {
this.translateNodeContent(enumAttr.attributes['enum'], k);
let input = node.querySelector('[name="' + attr.replace("enum-", "") + '"] > input');
if (input != null) {
this.translateNodeContent(input.attributes['enum'], k);
}
}
}
this.translateNodeContent(node.attributes[attr], k);
Loading