mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
8 lines
215 B
JavaScript
8 lines
215 B
JavaScript
|
export default function ({ req, app, store }) {
|
||
|
if (process.server) {
|
||
|
const lang = req.acceptsLanguages('en', 'it')
|
||
|
store.commit('setLocale', lang || 'it')
|
||
|
app.i18n.locale = store.state.locale
|
||
|
}
|
||
|
}
|