Skip to content

Commit

Permalink
fix: store i18n_redirected as persistent cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Mar 6, 2024
1 parent c242c14 commit 656305e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/composables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function useLocale<T>(
) {
const route = useRoute()
if (locale.value === newLocale) { return }
useCookie('i18n_redirected').value = newLocale
useCookie('i18n_redirected', { maxAge: 31536000 }).value = newLocale
locale.value = newLocale
if (reload) {
if (skipLocalization) {
Expand Down

0 comments on commit 656305e

Please sign in to comment.