Commit 37284197 authored by Phil Hughes's avatar Phil Hughes

Default the language to en - more useful for specs

parent b0df1ed4
...@@ -9,7 +9,7 @@ const locales = { ...@@ -9,7 +9,7 @@ const locales = {
en, en,
}; };
const lang = document.querySelector('html').getAttribute('lang'); const lang = document.querySelector('html').getAttribute('lang') || 'en';
export { lang }; export { lang };
export default new Jed(locales[lang]); export default new Jed(locales[lang]);
import Vue from 'vue'; import Vue from 'vue';
import Translate from '~/vue_shared/translate';
import limitWarningComp from '~/cycle_analytics/components/limit_warning_component'; import limitWarningComp from '~/cycle_analytics/components/limit_warning_component';
Vue.use(Translate);
describe('Limit warning component', () => { describe('Limit warning component', () => {
let component; let component;
let LimitWarningComponent; let LimitWarningComponent;
......
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