gancio/plugins/i18n.js

8 lines
No EOL
193 B
JavaScript

export default async ({ app, $vuetify }) => {
$vuetify.lang.current = app.i18n.locale
app.i18n.onLanguageSwitched = (oldLocale, newLocale) => {
$vuetify.lang.current = newLocale
}
}