BigW Consortium Gitlab

Commit 9c78b17a by Phil Hughes

Fixed karma failure

parent 93f27958
...@@ -12,7 +12,9 @@ const locales = allLocales.reduce((d, obj) => { ...@@ -12,7 +12,9 @@ const locales = allLocales.reduce((d, obj) => {
return data; return data;
}, {}); }, {});
const lang = document.querySelector('html').getAttribute('lang').replace(/-/g, '_') || 'en'; let lang = document.querySelector('html').getAttribute('lang') || 'en';
lang = lang.replace(/-/g, '_');
const locale = new Jed(locales[lang]); const locale = new Jed(locales[lang]);
const gettext = locale.gettext.bind(locale); const gettext = locale.gettext.bind(locale);
const ngettext = locale.ngettext.bind(locale); const ngettext = locale.ngettext.bind(locale);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment