not using i18n middleware anymore
This commit is contained in:
parent
3cdb29215f
commit
ccd5c6c105
2 changed files with 0 additions and 16 deletions
|
@ -1,13 +0,0 @@
|
|||
// import acceptLanguage from 'accept-language'
|
||||
|
||||
// export default async function ({ req, app, store }) {
|
||||
// // if (process.server) {
|
||||
// // const acceptedLanguages = req.headers['accept-language']
|
||||
// // const supportedLanguages = ['en', 'it', 'es']
|
||||
// // acceptLanguage.languages(supportedLanguages)
|
||||
// // const lang = acceptLanguage.get(acceptedLanguages)
|
||||
// // store.commit('setLocale', lang || 'it')
|
||||
// // app.i18n.locale = store.state.locale
|
||||
// // console.error('INSIDE MIDDLEWARE i18n settings locale ', lang)
|
||||
// // }
|
||||
// }
|
|
@ -57,9 +57,6 @@ module.exports = {
|
|||
axios: {
|
||||
prefix: '/api'
|
||||
},
|
||||
router: {
|
||||
middleware: 'i18n'
|
||||
},
|
||||
auth: {
|
||||
strategies: {
|
||||
local: {
|
||||
|
|
Loading…
Reference in a new issue