Commit 9c78b17a authored by Phil Hughes's avatar Phil Hughes

Fixed karma failure

parent 93f27958
......@@ -12,7 +12,9 @@ const locales = allLocales.reduce((d, obj) => {
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 gettext = locale.gettext.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