My French homepage showed up in English on Google. A default Nuxt i18n option was the reason.
This week I searched for my own brand on Google, and my French homepage came up with an English title and a "Translate this page" link under it. My site is French first. The homepage at / serves French, the English version lives at /en , and the Spanish one at /es . So why was Google showing the English page for the French URL? The site is a static Nuxt 4 build (SSG) with @nuxtjs/i18n and the…
A French developer discovered that Google indexed his French homepage with an English title and a "Translate this page" link. The site, built with Nuxt 4 and the @nuxtjs/i18n library, had the detectBrowserLanguage option enabled by default. This option causes the site to redirect to the visitor's language version after hydration, even for crawlers like Googlebot.
The developer disabled detectBrowserLanguage in the i18n configuration, eliminating the redirect and allowing Google to correctly index the French version of the homepage. This issue highlights the importance of testing site performance with browsers in different languages and using hreflang tags to help search engines understand language variations.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.