Nuxt: Using i18n with different subdomains/apps? #3882
Unanswered
torbentschechne
asked this question in
Q&A
Replies: 1 comment
-
|
I figured out it seems to work with this config: So I needed to remove the |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys,
I have a Nuxt application that uses multiple layers. The structure is like this:
The user logs into the firstApp, I set the language of the user profile with
setLocale- to spanish for example. The language code is stored in thei18n_redirectedcookie. Then he can navigate to the secondApp.Now the second App is in English again. Surely it is because the first cookie is stored for
first.domain.comandsecond.domain.comcan not access it.I want to avoid using a middleware now and fetch the language all the time, causing an api call. Is there any option that when I set the language for the first app, the second app will also use that language?
My four Nuxt configs look like this:
It would be great if anyone has experience and can help out here.
Beta Was this translation helpful? Give feedback.
All reactions