Extract codegrid to seperate module, heatup the codegrid caches

This commit is contained in:
Pieter Vander Vennet 2020-10-11 18:41:45 +02:00
parent 7c52ace770
commit 4db1997ed6
3 changed files with 28 additions and 6 deletions

View file

@ -56,9 +56,14 @@ export default class Translation extends UIElement {
const argument = matched[2];
const partAfter = matched[3];
const element = knownSpecial.constr(argument).Render();
try {
template = partBefore + element + partAfter;
const element = knownSpecial.constr(argument).Render();
template = partBefore + element + partAfter;
} catch (e) {
console.error(e);
template = partBefore + partAfter;
}
}
newTranslations[lang] = template;
}