Access current locale in server directory #2010
gnidustotalus
started this conversation in
General
Replies: 2 comments
-
Link to discussion about extending useFetch: There is an example how to use current locale in each request. What do you think about this approach? |
Beta Was this translation helpful? Give feedback.
0 replies
-
With the new experimental I have my own middleware where I need the locale to do something. The follow code works (although Typescript has issue, see below).
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to access current locale in
server/api
directory?Beta Was this translation helpful? Give feedback.
All reactions