-
-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Labels
bugSomething isn't workingSomething isn't workinghelp neededissue that need helpsissue that need helps
Description
next-intlayer version 8.1.6
I use code like this to set locale in locale switcher (client component):
const { setLocale } = useLocaleStorage();
setLocale(localeItem);
- when I set
routing: {
storage: ['localStorage', 'header']
}
all good
I see x-intlayer-locale: en header in response and INTLAYER_LOCALE key with value en in localStorage
- when I set
routing: {
storage: ['sessionStorage', 'header']
}
all good
I see x-intlayer-locale: en header in response and INTLAYER_LOCALE key with value en in sessionStorage
- when I set
routing: {
storage: ['cookie', 'header']
}
not good
I see x-intlayer-locale: en header in response, but no cookie.
I try use const { setLocale } = useLocaleStorage(true); but result is same, no cookie.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp neededissue that need helpsissue that need helps