Internalization with TLDs #1453
Answered
by
lourot
shishkin17
asked this question in
Help & Questions
-
Are there any examples of how to do internalization with "domain.fr domain TLDs" that is mentioned on https://vike.dev/i18n? |
Beta Was this translation helpful? Give feedback.
Answered by
lourot
Jan 24, 2024
Replies: 1 comment 5 replies
-
Not that I'm aware of. Contribution welcome to create one. I don't foresee any blockers, but let us know if you run into any. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You're right, this approach won't work with pre-rendering for two reasons:
req.hostname
mydomain.fr/
andmydomain.de/
both point to the exact same statically generatedindex.html
, how can thisindex.html
be possibly both French and German at the same time?Point 2. illustrates IMHO that if you want to do pre-rendering with SSR in this case, you basically need to statically generate two entire and separate websites: one in French, one in German. And you then host them on two different say GitHub Pages.
Now I'm sure that's possible to generate these two websites from the same code base but that's not what is described in https://vike.dev…