chore: Refactors widget to use i18n locale for articles (#7958)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
committed by
GitHub
parent
48bf8d08e5
commit
018c468303
@@ -31,11 +31,4 @@ describe('#actions', () => {
|
||||
expect(commit.mock.calls).toEqual([['SET_COLOR_SCHEME', 'dark']]);
|
||||
});
|
||||
});
|
||||
|
||||
describe('#setLocale', () => {
|
||||
it('creates actions for setting the locale properly', () => {
|
||||
actions.setLocale({ commit }, 'es_ES');
|
||||
expect(commit.mock.calls).toEqual([['SET_WIDGET_LOCALE', 'es_ES']]);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -32,12 +32,4 @@ describe('#mutations', () => {
|
||||
expect(state.darkMode).toEqual('dark');
|
||||
});
|
||||
});
|
||||
|
||||
describe('#SET_WIDGET_LOCALE', () => {
|
||||
it('sets widget locale properly', () => {
|
||||
const state = { locale: 'en' };
|
||||
mutations.SET_WIDGET_LOCALE(state, 'es_ES');
|
||||
expect(state.locale).toEqual('es_ES');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user