next-intl: different locale for formatting
Unanswered
American black bear posted this in #help-forum
American black bearOP
Hey all, is it at all possible to explicitly set the format() function to use a certain locale other than the one set in the NEXT_LOCALE cookie?
In my case, I want the user to be able to change language using NEXT_LOCALE, but use their browser's locale to display things like dates formatted with the browser's locale so that it is independent of selected language.
In my case, I want the user to be able to change language using NEXT_LOCALE, but use their browser's locale to display things like dates formatted with the browser's locale so that it is independent of selected language.