提交 37284197 编写于 作者: P Phil Hughes

Default the language to en - more useful for specs

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册