Default the language to en - more useful for specs
This commit is contained in:
parent
b0df1ed488
commit
372841975f
|
@ -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]);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue