setup i18n
This commit is contained in:
12
store/store.js
Normal file
12
store/store.js
Normal file
@@ -0,0 +1,12 @@
|
||||
export const state = () => ({
|
||||
locales: ['en', 'fr', 'de'],
|
||||
locale: 'en'
|
||||
})
|
||||
|
||||
export const mutations = {
|
||||
SET_LANG(state, locale) {
|
||||
if (state.locales.indexOf(locale) !== -1) {
|
||||
state.locale = locale
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user