mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
13 lines
560 B
JavaScript
13 lines
560 B
JavaScript
// 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)
|
|
// // }
|
|
// }
|