setup i18n

This commit is contained in:
lostdesign
2019-06-20 12:11:32 +02:00
parent 02904dcf8c
commit d20423c210
5 changed files with 45 additions and 1 deletions

12
store/store.js Normal file
View 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
}
}
}