# Avoid mixed-language pages with partial translations

- Check 22.15 · International architecture · Critical
- Source: https://checklist-seo-geo.com/en/international-architecture/avoid-mixed-language-pages-partial-translations
- Find pages that mix two languages (untranslated content, forgotten strings, CMS fallback) and block their publication on WordPress, Shopify or Laravel.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/international-architecture/avoid-mixed-language-pages-partial-translations.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

A mixed-language page displays two languages where the visitor expects only one: a translated template with an article left in French, forgotten paragraphs, buttons and error messages in the source language, an untranslated cookie banner. This task consists of detecting these pages, setting a publication threshold (“a language only goes live once translated”) and configuring the tools so that they flag gaps instead of silently filling them. Once it is done, every URL presents a single language for content and navigation, and the rare passages in another language are intentional and marked up.

## Why it matters

Google puts it plainly: it determines the language of a page from its visible content, and uses neither the `lang` attribute nor the URL for this. It recommends using a single language for the content and navigation of each page and avoiding side-by-side translations. A `/de/` page whose main text is in French is therefore, for Google, a French page: it competes with the original and does not answer searches in German.

Google adds a common case on sites with user-generated content: translating only the template text while keeping most of the content in a single language can degrade the experience if the same content appears several times in the results, with different language boilerplate. It also points out that localized versions are only considered duplicates if the main content remains untranslated.

The causes are almost always technical or organizational:

- the CMS displays the default language's text when the translation is missing (documented behavior in Shopify, an option in WPML and Astro);
- a string-by-string translation plugin leaves everything not yet translated in the source language;
- strings from the theme, plugins, forms or cookie banner escape the translation workflow;
- an update to the source text is carried over to only some languages.

For generative engines, a mixed-language page is an ambiguous source: a passage can be extracted and cited in a language that matches neither the URL nor the question. No practice guarantees a citation, but one language per page removes this ambiguity.

## What it improves

- **Indexing by language**: each version is recognized in its language and can appear in searches in that language.
- **Fewer duplicates** between the original and its untranslated versions.
- **Experience and conversion**: a German visitor does not stumble over an “Ajouter au panier” (Add to cart) button.
- **Accessibility**: screen readers pronounce each passage in the right language when it is marked up.
- **Citations in AI answers**: passages consistent with the page's language. A possible effect, not guaranteed.
- **Rankings**: no measurable direct effect in itself; the effect comes through indexing in the right language.

## How to check

**1. Compare a page with its translation.** Passages left identical between the source version and the translated version are almost always oversights. This Python script, with no dependencies, extracts the visible text of both URLs and lists the segments of four words or more that are present verbatim in both:

```python
# compare_translations.py
import re
import sys
import urllib.request
from html.parser import HTMLParser

SKIP = {'script', 'style', 'noscript', 'svg', 'code', 'pre'}


class VisibleText(HTMLParser):
    def __init__(self):
        super().__init__()
        self.skipped = 0
        self.chunks = []

    def handle_starttag(self, tag, attrs):
        if tag in SKIP:
            self.skipped += 1

    def handle_endtag(self, tag):
        if tag in SKIP and self.skipped:
            self.skipped -= 1

    def handle_data(self, data):
        if not self.skipped:
            self.chunks.append(data)


def segments(url):
    request = urllib.request.Request(url, headers={'User-Agent': 'mixed-language-check'})
    with urllib.request.urlopen(request) as response:
        parser = VisibleText()
        parser.feed(response.read().decode('utf-8', 'replace'))
    text = ' '.join(parser.chunks)
    parts = re.split(r'(?<=[.!?])\s+|\s{2,}', text)
    return {' '.join(part.split()) for part in parts if len(part.split()) >= 4}


source, target = segments(sys.argv[1]), segments(sys.argv[2])
shared = sorted(source & target)
ratio = len(shared) / len(target) if target else 0
print(f'{len(shared)} identical segments out of {len(target)} ({ratio:.0%})')
for segment in shared[:40]:
    print('-', segment[:140])
```

```bash
python3 compare_translations.py https://example.com/fr/tarifs/ https://example.com/de/preise/
```

Expected result: zero segments, or only proper names, product references and intentional quotations. The percentage is for sorting: beyond a few segments, open the page; a high share signals a fallback page. This threshold is a working benchmark, not a search engine rule.

**2. Look for source-language words** in a crawl of the target language. With Screaming Frog, `Configuration > Custom > Search` lets you search the `/de/` pages for strings typical of French (“Ajouter au panier”, “En savoir plus”, “Accepter”).

**3. Search Console**: filter the Performance report on `/de/` pages and go through the queries. French queries on German URLs give away untranslated content.

**4. Human review** of a sample for each template: homepage, category, product page, article, cart, contact form, 404 page, transactional emails.

## How to implement

### Before you start

Write the publication rule, per language:

| Element | Required before publication |
|---|---|
| Title, meta description, H1, main content | Translated and reviewed |
| Navigation, footer, breadcrumbs, buttons, forms | Translated |
| Alt text, captions, textual structured data | Translated |
| Cookie banner, error messages, 404 page | Translated |
| Customer reviews, comments, quotations | Original language accepted, marked up and flagged |

Three principles:

- **No partial publication**: a language, a section or a page is only published once translated. What is not ready does not exist in that language (see [plan for missing translations](https://checklist-seo-geo.com/en/international-architecture/plan-missing-translations)).
- **No silent fallback**: configure the tools to flag missing strings instead of displaying the source language.
- **Passages intentionally in another language are marked up**: a quotation, the title of a work, a customer review. The `lang` attribute changes nothing for Google, but it serves screen readers (WCAG criterion 3.1.2) and translation tools:

```html
<blockquote lang="en">
  <p>Great boots, waterproof after two days of rain.</p>
  <footer>Avis rédigé en anglais</footer>
</blockquote>
```

For pages made up mostly of user content (forums, Q&A), do not create a version per language that would only translate the template: keep a single URL in the language of the discussions.

### WordPress

Versions: WordPress 6.8 to 7.1; WPML 5.x, Polylang 3.x, TranslatePress 3.x, Weglot.

- **WPML**: the Translation Management dashboard shows the status of each piece of content per language; only publish a translation once it is complete. For indexable content types, prefer “Translatable – only show translated items” to the option that falls back to the default language. Theme and plugin strings are translated in `WPML > String Translation`.
- **Polylang**: strings registered by the theme and plugins (site title, widgets, date formats) are translated in `Languages > Translations`. Strings hard-coded in a theme not prepared for translation do not appear there: route them through WordPress's translation functions (`__()`, `esc_html_e()`).
- **TranslatePress and Weglot**: any untranslated string remains displayed in the source language. Run machine translation on the whole site if you use it, have it reviewed, and only then open the language. Remember dynamically loaded content (reviews, carts, modal windows), to be checked one by one.

Then check the cookie banner and the form plugin's emails: they often have their own language settings.

### Shopify

Versions: Shopify admin, all plans, November 2026.

Shopify displays the default language's content when a translation is missing: a language published too early produces mixed-language pages across the whole store. Before publishing a language (`Settings > Languages`), use the Translate & Adapt export limited to untranslated content to measure what is missing, including theme text, metafields and notifications. Also check the installed apps (reviews, filters, promotional pop-ups), which manage their translations separately.

### Drupal

Versions: Drupal 10 and 11.

Interface strings are translated in `Configuration > Regional and language > User interface translation`, where a filter shows untranslated strings. Content is translated through each node's “Translate” tab; an untranslated node is displayed in its original language under the other language's prefix, which creates a mixed-language page.

### Laravel

Versions: Laravel 10.33 to 13; spatie/laravel-translatable 6.

For interface strings, log missing keys instead of letting the fallback hide them. In `app/Providers/AppServiceProvider.php`:

```php
use Illuminate\Support\Facades\Lang;
use Illuminate\Support\Facades\Log;

public function boot(): void
{
    Lang::handleMissingKeysUsing(function (string $key, array $replacements, ?string $locale): string {
        Log::warning("Missing translation `{$key}` for locale `{$locale}`.");

        return $key;
    });
}
```

`handleMissingKeysUsing` has existed since Laravel 10.33: on an older version, update the framework first. For content translated in the database with spatie/laravel-translatable, disable the fallback on the model (`protected $useFallbackLocale = false;`) and return 404 when the main content is missing. Add a test that compares the keys of the `lang/*.json` files across languages:

```php
// tests/Feature/TranslationFilesTest.php
it('has the same keys in every language file', function (): void {
    $reference = array_keys(json_decode(file_get_contents(lang_path('fr.json')), true));

    foreach (['de', 'en'] as $locale) {
        $keys = array_keys(json_decode(file_get_contents(lang_path("{$locale}.json")), true));

        expect(array_diff($reference, $keys))->toBeEmpty();
    }
});
```

### Next.js

Versions: Next.js 15 and 16 (App Router), next-intl 4.

With next-intl, intercept missing messages in `i18n/request.ts`: report them and display a visible marker in staging rather than the source language.

```ts
// i18n/request.ts
import { getRequestConfig } from 'next-intl/server';
import { IntlErrorCode } from 'next-intl';

export default getRequestConfig(async ({ requestLocale }) => {
  const locale = (await requestLocale) ?? 'fr';

  return {
    locale,
    messages: (await import(`../messages/${locale}.json`)).default,
    onError(error) {
      if (error.code === IntlErrorCode.MISSING_MESSAGE) {
        console.error(error);
        return;
      }

      throw error;
    },
    getMessageFallback({ namespace, key }) {
      return [namespace, key].filter(Boolean).join('.');
    },
  };
});
```

A key displayed as is (`Checkout.submit`) is spotted immediately during acceptance testing. For CMS content, only generate the translated pages (`generateStaticParams`) and call `notFound()` for the others.

### Nuxt

Versions: Nuxt 3.x and 4, @nuxtjs/i18n module 9 and 10.

`@nuxtjs/i18n` is built on vue-i18n. In `i18n.config.ts`, the `missing` option receives each missing key, which you can log:

```ts
// i18n/i18n.config.ts
export default defineI18nConfig(() => ({
  fallbackLocale: false,
  missing: (locale: string, key: string) => {
    console.warn(`Missing translation ${key} for ${locale}`);
  },
}));
```

With `fallbackLocale: false`, a missing string is not replaced by the default language: it shows up during acceptance testing instead of going unnoticed. This path, in the `i18n/` folder, applies to versions 9 and 10 of the module; in version 8, the file was placed at the project root.

### Astro

Versions: Astro 5 to 7.

Do not use `routing.fallbackType: "rewrite"` in the `i18n` configuration: it serves the fallback language's content under the requested language's URL, which creates mixed-language pages. Without a `fallback` setting, a page missing from a language is not generated.

## Common mistakes

- **Publishing a language to test it** in production: all its untranslated pages become indexable mixed-language pages.
- **Translating the template but not the content**: the page remains in the source language for Google.
- **Forgetting strings outside the content**: cookie banner, forms, error messages, 404 page, emails.
- **Leaving the silent fallback** of internationalization libraries in production without logging.
- **Not carrying over updates** to the source text: the translation becomes partial over time. See [detect missing or outdated translations](https://checklist-seo-geo.com/en/multilingual-tracking-maintenance/detect-missing-outdated-translations).
- **Side-by-side translations** on the same page (“Bienvenue / Willkommen”), which Google recommends avoiding.
- **Not marking up intentional passages** in another language.

## Frequently asked questions

### How does Google determine the language of a page?

Google determines the language of a page from its visible content. It states that it does not use language information in the code, such as the lang attribute, or the URL for this purpose. A page placed under /de/ whose main text is in French is therefore treated as a French page. Hence its recommendation: a single language for the content and navigation of each page.

### Is a page with a translated menu but an article in the source language a problem?

Yes. Google considers localized versions to be duplicates when the main content remains untranslated, even if the template is translated. The page does not answer searches in its URL's language, competes with the original and disappoints visitors. Only publish the page in that language once the main content is translated, or keep it out of the index and the hreflang annotations in the meantime.

### Can customer reviews be displayed in a language other than the page's?

Yes, reviews or quotations in their original language are legitimate as long as they remain a minority on the page. Mark them up with the lang attribute, for screen readers and translation tools, and tell the visitor which language they are in, for example “Review written in English”. Avoid, however, pages made up mostly of untranslated content under a translated template.

### How do you detect untranslated strings on a multilingual site?

Compare the visible text of a page and its translation: identical segments are almost always oversights. Supplement this by searching for words typical of the source language in a crawl of the target language, then by logging missing keys in your internationalization library. Finally, check the elements outside the content by hand: cookie banner, forms, error messages, emails.

## Resources

- [Google Search Central: Managing multi-regional and multilingual sites](https://developers.google.com/search/docs/specialty/international/managing-multi-regional-sites?hl=en)
- [Google Search Central: Tell Google about localized versions of your page](https://developers.google.com/search/docs/specialty/international/localized-versions?hl=en)
- [W3C WAI: Understanding Success Criterion 3.1.2, Language of Parts](https://www.w3.org/WAI/WCAG22/Understanding/language-of-parts.html)
- [WPML: Displaying untranslated content on pages in secondary languages](https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/)
- [Shopify: Languages and store SEO](https://help.shopify.com/en/manual/markets/languages/seo)
- [next-intl: Configuration, onError and getMessageFallback](https://next-intl.dev/docs/usage/configuration)
- [Astro: Internationalization and fallback](https://docs.astro.build/en/guides/internationalization/)

Next steps: [detect untranslated strings](https://checklist-seo-geo.com/en/translating-seo-elements/detect-untranslated-strings), [mark passages in another language](https://checklist-seo-geo.com/en/development-accessibility-language/mark-passages-another-language) and [detect the actual language and untranslated strings](https://checklist-seo-geo.com/en/multilingual-tracking-maintenance/detect-actual-language-untranslated-strings).
