chore: Upgrade vue-i18n to 8.x (#1383)

Co-authored-by: Pranav Raj S <pranav@thoughtwoot.com>
This commit is contained in:
Muhsin Keloth 2020-12-11 22:38:36 -08:00 committed by GitHub
parent 7f2f984bea
commit f9bd447912
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 75 additions and 38 deletions

View file

@ -8,7 +8,11 @@ import i18n from 'dashboard/i18n';
const localVue = createLocalVue();
localVue.use(Vuex);
localVue.use(VueI18n);
localVue.locale('en', i18n.en);
const i18nConfig = new VueI18n({
locale: 'en',
messages: i18n,
});
describe('AvailabilityStatus', () => {
const currentUser = { availability_status: 'online' };
@ -40,6 +44,7 @@ describe('AvailabilityStatus', () => {
availabilityStatus = mount(AvailabilityStatus, {
store,
localVue,
i18n: i18nConfig,
});
});

View file

@ -10,9 +10,14 @@ import MoreActions from '../MoreActions';
const localVue = createLocalVue();
localVue.use(Vuex);
localVue.use(VueI18n);
localVue.locale('en', i18n.en);
localVue.component('woot-button', Button);
const i18nConfig = new VueI18n({
locale: 'en',
messages: i18n,
});
describe('MoveActions', () => {
let currentChat = { id: 8, muted: false };
let state = null;
@ -55,7 +60,7 @@ describe('MoveActions', () => {
getters,
});
moreActions = mount(MoreActions, { store, localVue });
moreActions = mount(MoreActions, { store, localVue, i18n: i18nConfig });
});
it('opens the menu when user clicks "more"', async () => {