Home

Issue: 1094

Render multiple (SSR) states (locales with vue-i18n)

[issue link]

First of all, I’am super exited about this project. Thanks for all the hard work.

I have one nuxt instance which serves two domains with different languages. I set a default locale based on the domain, and a fallback locale. The SSR side only renders a single locale, say English, so pages loaded over the other domain (eg French) need to swap all translations at hydration time.

I probably need two code bases so I can set the locale for each domain served, and so make sure SSR renders the correct language. But I wonder if there is a way to pre render both locales and select the right one on page load.

This question is available on Nuxt.js community (#c958)