Using getLocaleFromRoute
from within defineNuxtRouteMiddleware
#3074
Unanswered
rudolfbyker
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to get a
getLocaleFromRoute
function within my custom Nuxt route middleware?This import will not work:
I don't just want the "current locale". Rather, I want a function that will reliably give me the locale, given an arbitrary route.
My current workaround is to re-implement
getLocaleFromRoute
myself.Beta Was this translation helpful? Give feedback.
All reactions