Open gldkru opened 3 years ago
Hey! Thanks for your module
I have set default locale and locales, but who should switch them and where?
... locales: ['ru', 'en'], defaultLocale: 'en',
OK, i18n module changed language, what's next?
hey dude, here is it. add this to nuxt.config.js -> plugins array:
export default function ({ i18n, $dayjs }) { i18n.beforeLanguageSwitch = (oldLocale, newLocale) => { $dayjs.locale(newLocale) } }
Hey! Thanks for your module
I have set default locale and locales, but who should switch them and where?
OK, i18n module changed language, what's next?