-
-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
Description
Clear and concise description of the problem
I am missing documentation on how to get the locale of the current event. What I would expect:
export default defineEventHandler(async (event) => {
console.log(event.context.locale);
});From what I am guess, one needs to call a function at the moment. This however, will each time call the localeDetector:
event.context.i18n.locale()Additionally this shows up a TypeScript error Type String has no call signatures. even tho it is a function and not a string.