nuxt-modules / i18n

I18n module for Nuxt
https://i18n.nuxtjs.org
MIT License
1.76k stars 484 forks source link

Routes from different domains are mixed #3226

Open cernymatej opened 1 week ago

cernymatej commented 1 week ago

Environment

Reproduction

https://github.com/cernymatej/i18n-domain-routes

Describe the bug

When a project uses different domains to separate localizations and the routes are translated using defineI18nRoute(), the routes from other locales are available in every locale as well. For example, let's say I have route /about available on foo.com and /o-nas on foo.sk. When I go to foo.sk/about, it will still work.

defineI18nRoute({
    paths: {
        en: '/about',
        sk: '/o-nas'
    }
})

Additional context

No response

Logs