Commit ccd5c6c1 authored by les's avatar les
Browse files

not using i18n middleware anymore

parent 3cdb2921
// 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: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment