Skip to content
Snippets Groups Projects
Commit 5b73aefa authored by Marjolaine Le Bon's avatar Marjolaine Le Bon
Browse files

Update intl.js

parent d4218397
No related branches found
No related tags found
1 merge request!338fix: Update intl.js
Pipeline #12584 failed with stages
in 27 seconds
......@@ -113,6 +113,16 @@ class JsI18n {
}
}
}
if (attr.startsWith('enum-')) {
let enum = node.querySelector('[enum="' + attr.replace("enum-", "") + '"]');
if (enum != null) {
this.translateNodeContent(enum.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);
}
}
......@@ -285,4 +295,4 @@ document.addEventListener("DOMContentLoaded", () => {
clearTimeout(timer);
timer = setTimeout(() => window.orbit.intl.processNode(document.querySelector('body')), 500);
});
});
\ No newline at end of file
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment