Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix default redirect language bug
Previously, the default language is also the automatic language detection option. So if a user attempts to manually change their language to the default language away from their browser's language, it will immediately detect the language as their browser language and redirect them. Additionally, language cookies weren't updated, so changing the language from the default language to another language wouldn't be remembered. Fix this by calling setLocale as required; see https://i18n.nuxtjs.org/docs/guide/lang-switcher
- Loading branch information