Repository navigation
Replies: 1 comment
|
For the default export default defineNuxtConfig({
i18n: {
experimental: {
localeDetector: 'localeDetector.ts',
},
},
})Then test with a hard reload / direct SSR request. Client-side route changes after hydration are handled by the normal route locale detection path, not by re-running the server detector in the browser. |
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.
I have created a simple nuxt app to test defineI18nLocaleDetector.
But it does not work. I am not sure if I have used it in a wrong way. Pls give me a hand. Thanks.
The simple project is in nuxtjs-i18n-defineI18nLocaleDetector-test.
Here is my project structure:

And I just log something to see if defineI18nLocaleDetector is working:

However, when I run the project and visit page, it log nothing. It means it does not work
All reactions