-
Is there a way to use the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You could do it in your loaders, but note that unless you're 100% sure every request will create a new instance of your server app, your server may be shared between users with different locales, so setting something like this globally will most likely cause issues. I recommend you to set it on every place you need it or use something like |
Beta Was this translation helpful? Give feedback.
You could do it in your loaders, but note that unless you're 100% sure every request will create a new instance of your server app, your server may be shared between users with different locales, so setting something like this globally will most likely cause issues.
I recommend you to set it on every place you need it or use something like
AsyncLocalStorage
to make it available to nested code.