gancio-upstream/plugins/i18n.js

8 lines
193 B
JavaScript
Raw Normal View History

export default async ({ app, $vuetify }) => {
2019-04-03 00:25:12 +02:00
2022-11-29 14:40:19 +01:00
$vuetify.lang.current = app.i18n.locale
2019-04-03 00:25:12 +02:00
2022-11-29 14:40:19 +01:00
app.i18n.onLanguageSwitched = (oldLocale, newLocale) => {
$vuetify.lang.current = newLocale
2019-09-19 16:23:46 +02:00
}
}