Default the language to en - more useful for specs

This commit is contained in:
Phil Hughes 2017-04-18 16:29:22 +01:00
parent b0df1ed488
commit 372841975f
2 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,7 @@ const locales = {
en,
};
const lang = document.querySelector('html').getAttribute('lang');
const lang = document.querySelector('html').getAttribute('lang') || 'en';
export { lang };
export default new Jed(locales[lang]);

View File

@ -1,6 +1,9 @@
import Vue from 'vue';
import Translate from '~/vue_shared/translate';
import limitWarningComp from '~/cycle_analytics/components/limit_warning_component';
Vue.use(Translate);
describe('Limit warning component', () => {
let component;
let LimitWarningComponent;