i18n subdomain is not working

I tried everything that on my knowledge next config i18n differentdomain: true or multidomains: true method, middleware route on route config if anyone knows how can I use subdomains I can try it please help me with your knowledge
6 Replies
kapa.ai
kapa.ai2mo ago
Hi @ひめじまあけの / Chyser. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry, but the knowledge sources provided do not contain any information about configuring i18n with subdomains (such as using different domains or subdomains for different locales) in Nuxt or @nuxtjs/i18n. The sources cover topics like locale configuration, browser language detection, dynamic routing, and integration with Nuxt Content, but there is no mention of subdomain or multidomain support for i18n. If you need official guidance, I recommend checking the @nuxtjs/i18n documentation directly, as the knowledge sources here do not address your specific question. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai2mo ago
<@237343644468772865> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
ひめじまあけの / Chyser
i18n: { strategy: "prefix_except_default", debug: true, lazy: true, langDir: "locales/", locales: [ { code: "tr", iso: "tr-TR", name: "Türkçe", domain: "mem22.com", domainDefault: true, file: "tr.json", }, { code: "en", iso: "en-US", name: "English", domain: "en.mem22.com", domainDefault: true, file: "en.json", }, ], defaultLocale: "tr", differentDomains: true, detectBrowserLanguage: { redirectOn: "root", useCookie: false, }, /* detectBrowserLanguage: { useCookie: true, cookieKey: "i18n_redirected", redirectOn: "root", }, */ vueI18n: "./i18n.config.ts", }, //i18n.config.ts import tr from "./locales/tr.json"; import en from "./locales/en.json"; export default defineI18nConfig(() => ({ legacy: false, locale: "tr", fallbackLocale: "tr", messages: { tr: tr, en: en, }, }));
ひめじまあけの / Chyser
would you watch and tell me what is the problem
ひめじまあけの / Chyser
when i change with button domain is changing but home page active locale not change i did console log it
No description
No description
ひめじまあけの / Chyser
but when i change page its turn english like on video

Did you find this page helpful?