# Check untranslated URLs and fallbacks

- Check 24.07 · Multilingual indexing and sitemaps · Critical
- Source: https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/check-untranslated-urls-fallbacks
- Find language URLs that display untranslated content, choose the right fallback (404, noindex, redirect) and configure WPML, Polylang, Shopify or Next.js.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/check-untranslated-urls-fallbacks.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

An untranslated URL is a language address, for example `/de/preise/`, that displays the source language's content because the translation does not exist yet. The mechanism that produces this result is called a fallback: the CMS or framework fills the gap with the default language. The task is to list these URLs, then give each one an explicit treatment: no URL at all, a fallback page excluded from the index, or a temporary redirect. Once this is done, no indexable language URL serves main content in another language.

## Why it matters

Google determines a page's language from its visible content, not from the `lang` attribute or the URL prefix. A `/de/preise/` page whose body is in French is therefore, as far as Google is concerned, a French page. Its documentation on localized versions says so clearly: language versions are only considered duplicates if their main content is left untranslated.

Consequences of an uncontrolled fallback:

- **Duplicates across languages**: `/preise/` and `/de/preise/` carry the same text. Google selects one as canonical and ignores the other, sometimes the wrong one.
- **Inconsistent hreflang**: the annotation announces a German version that is not one. The cluster of alternates becomes less reliable.
- **Poor experience**: a German-speaking visitor arrives from the results on a text they cannot read. Google flags this risk for pages where only the menu and footer are translated.
- **Skewed statistics**: the German version's indexing rate drops for no apparent reason, since these pages are set aside as duplicates.
- **Answers from generative engines**: an assistant that cites the German page sends users to content in French. The effect is not measured, but it does the user a disservice.

A fallback is not a fault in itself. Showing the source language while waiting for the translation can be the best service to the visitor. The problem is leaving these pages indexable and announced as translations.

## What it improves

- **Indexing of each language**: only real translations are offered to the index, which makes the indexing rate per language readable.
- **Canonicalization**: fewer duplicate groups across languages, and therefore fewer canonicals chosen against your wishes.
- **hreflang reliability**: each annotation points to a page that is actually in the announced language.
- **Experience and conversion**: visitors know when content does not exist in their language and choose what to do next.
- **Rankings**: no direct effect. The gain comes from removing contradictory signals.

## How to check

**1. Compare the content of two languages.** For a pair of URLs, extract the text and compare the hashes:

```bash
for u in https://example.com/tarifs/ https://example.com/de/preise/; do
  curl -s "$u" | sed -e 's/<[^>]*>//g' | tr -s ' \n' | md5
done
```

Two identical hashes indicate a fallback. On Linux, replace `md5` with `md5sum`. Different hashes prove nothing: the translated menu is enough to tell them apart.

**2. Detect the actual language of the content, in bulk.** This dependency-free Python script counts the most frequent function words of each language and compares the detected language with the URL prefix:

```python
import re, sys, urllib.request
from html import unescape

STOP = {
    "fr": {"le", "la", "les", "des", "est", "une", "pour", "dans", "vous", "avec"},
    "en": {"the", "and", "is", "for", "with", "you", "your", "this", "that", "are"},
    "de": {"der", "die", "das", "und", "ist", "mit", "für", "sie", "nicht", "ein"},
    "es": {"el", "los", "las", "y", "es", "para", "con", "una", "por", "que"},
    "it": {"il", "gli", "e", "è", "per", "con", "una", "che", "non", "sono"},
}

for url in (line.strip() for line in sys.stdin if line.strip()):
    html = urllib.request.urlopen(url).read().decode("utf-8", "ignore")
    html = re.sub(r"(?is)<(script|style|nav|header|footer).*?</\1>", " ", html)
    words = re.findall(r"\w+", unescape(re.sub(r"<[^>]+>", " ", html)).lower())
    scores = {lang: sum(w in s for w in words) for lang, s in STOP.items()}
    detected = max(scores, key=scores.get)
    expected = re.match(r"https?://[^/]+/([a-z]{2})/", url)
    expected = expected.group(1) if expected else "fr"
    flag = "OK" if detected == expected else "MISMATCH"
    print(f"{flag}\t{expected}\t{detected}\t{url}")
```

Run it with the list of URLs for one language: `python3 detect.py < urls-de.txt`. Adapt the unprefixed language (`"fr"` here) to your site. This is a heuristic: check every “MISMATCH” line by hand.

**3. See what Google makes of it.** In the [URL Inspection tool](https://search.google.com/search-console?action=inspect), an indexable fallback page often shows a “Google-selected canonical” in the source language. The “Duplicate, Google chose different canonical than user” reason in the [Page indexing report](https://search.google.com/search-console/index), filtered on one language's sitemap, groups many of them. See [compare Google-selected canonicals](https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/compare-google-selected-canonicals).

**4. Crawl.** Screaming Frog, with near-duplicate detection enabled (`Configuration > Content > Duplicates`), brings out pairs of URLs in different languages with identical content.

Expected result: no indexable URL whose detected language differs from the announced language, and every fallback URL has a deliberate treatment.

## How to implement

### Before you start

Choose a treatment per content type, then configure the tool to apply it everywhere:

| Situation | Treatment | Hreflang and sitemap |
|---|---|---|
| No translation planned | No URL: `404`, or language switcher link to the language's home page | Absent from both |
| Translation planned, useful content in the source language | Fallback page with `noindex` | Absent from both |
| Fallback page you want to keep without `noindex` | `rel="canonical"` to the source page | Absent from both |
| Close language available (`fr-CA` missing, `fr` present) | `302` redirect to the close language | Absent from both |
| Translation published | Normal page, self-referencing canonical | Present in both |

Three common rules:

- **Do not redirect a missing page to the home page**: the visitor loses the context. See [plan for missing translations](https://checklist-seo-geo.com/en/international-architecture/plan-missing-translations).
- **No `301`** for a temporary fallback: the translation will eventually take over the URL.
- **Tell the visitor about the fallback**: a banner saying “This page is not yet available in German”, in the URL's language.

After each change, update the hreflang annotations (see [update annotations when a translation is removed](https://checklist-seo-geo.com/en/hreflang-regional-variants/update-annotations-when-translation-is-removed)) and the sitemaps (see [exclude unpublished or non-indexable translations](https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/exclude-unpublished-non-indexable-translations)).

### WordPress

Versions: WordPress 6.8 and later; WPML 4 and 5, Polylang 3, TranslatePress 3, Weglot 6.

**WPML**: the fallback is set per content type in `WPML > Settings > Post Types Translation` (and `Taxonomies Translation` for taxonomies). The “Translatable – use translation if available or fallback to default language” option displays the source language at the other languages' URLs; the option that only displays translated items creates no fallback URL. If you keep the fallback, check in the source code that the canonical of untranslated pages points to the default language and that they appear neither in hreflang nor in the sitemap: WPML has documented cases where an SEO plugin did not do this.

**Polylang**: untranslated content has no URL in the other languages. The point to check is the language switcher: in the widget or block, the option that hides languages with no translation avoids a link to the home page.

**TranslatePress and Weglot**: these plugins translate the page's strings on the fly. An untranslated string stays in the source language on the translated page. Find these pages with the script from the “How to check” section. In Weglot, pages not to be translated are declared in `Settings > Translation Exclusions`; then test what the excluded translated URL returns (redirect, 404 or original content), because the behavior depends on the configuration.

To set a `noindex` on fallback pages when the plugin does not, add this to the child theme's `functions.php` (WPML example):

```php
add_filter('wp_robots', function (array $robots): array {
    if (! is_singular()) {
        return $robots;
    }

    $current = apply_filters('wpml_current_language', null);
    $postLanguage = apply_filters('wpml_post_language_details', null, get_the_ID());

    if (! is_array($postLanguage)) {
        return $robots;
    }

    if ($postLanguage['language_code'] === $current) {
        return $robots;
    }

    $robots['noindex'] = true;

    return $robots;
});
```

The `wpml_post_language_details` filter returns the actual language of the content: when it differs from the URL's language, the page is a fallback.

### Shopify

Versions: Shopify admin and the Translate & Adapt app, all plans, November 2026.

Untranslated content is displayed in the store's default language, at the published language's URL (`/de/products/...`). Shopify offers no setting to put only the untranslated resources in `noindex`. The lever is therefore to translate before publishing a language: in the Translate & Adapt app, filter the untranslated resources and complete at least the strategic products, collections and pages. URL handles are not translated automatically: enter them by hand. For a market that is still incomplete, keep the language unpublished.

### Laravel

Versions: Laravel 10 to 13.

The fallback for interface strings comes from `fallback_locale` in `config/app.php`, which reads the `APP_FALLBACK_LOCALE` variable from the `.env` file since Laravel 11 (value hard-coded in `config/app.php` in Laravel 10). For database content, do not serve the source language under a language URL without deciding to. Example of a controller that returns a `404` when the translation is missing:

```php
public function show(string $locale, string $slug): View
{
    $page = Page::query()
        ->whereHas('translations', fn ($query) => $query
            ->where('locale', $locale)
            ->where('slug', $slug)
            ->where('status', 'published'))
        ->first();

    if (! $page) {
        abort(404);
    }

    return view('pages.show', ['page' => $page->translation($locale)]);
}
```

If you prefer a fallback page, return the view with the source translation and an `$isFallback` variable that adds `<meta name="robots" content="noindex">` and removes the page from hreflang and the sitemap.

### Next.js

Versions: Next.js 15 and 16 (App Router).

With the App Router, the `app/[lang]/...` route renders for any language code unless something prevents it. Restrict the languages with `generateStaticParams` and `dynamicParams = false`, then call `notFound()` when the content does not exist in the requested language:

```ts
// app/[lang]/blog/[slug]/page.tsx
import { notFound } from 'next/navigation'
import { getPost } from '@/lib/posts'

export default async function Page({
  params,
}: {
  params: Promise<{ lang: string; slug: string }>
}) {
  const { lang, slug } = await params
  const post = await getPost(slug, lang)

  if (!post) {
    notFound()
  }

  return <article lang={lang}>{post.body}</article>
}
```

Translation libraries (next-intl, i18next) fill in missing messages with the default language if you allow them to: check that this fallback only concerns interface labels, not the main content.

### Astro

Versions: Astro 5 to 7.

Astro's i18n routing offers `i18n.fallback`. The default behavior redirects the missing page to the fallback language; `routing.fallbackType: "rewrite"` (Astro 4.15 and later) instead displays the fallback content at the requested URL, which creates a duplicate to handle with `noindex` or a canonical:

```js
// astro.config.mjs
import { defineConfig } from 'astro/config';

export default defineConfig({
  i18n: {
    defaultLocale: 'fr',
    locales: ['fr', 'de', 'en'],
    fallback: { de: 'fr' },
    routing: {
      prefixDefaultLocale: false,
      fallbackType: 'redirect',
    },
  },
});
```

Check the response produced with `curl -sI`: with server rendering, the status code of a temporary fallback must not be permanent. With static output, Astro writes its redirects, like those from the `redirects` option, as HTML pages with a `meta refresh` tag unless an adapter translates them into the host's configuration: check what your hosting actually returns.

## Common mistakes

- **Leaving the fallback indexable and in hreflang**: this is the most common case, and it produces duplicates across languages.
- **Pointing a real translation's canonical to the source language**: reserve that canonical for pages that are actually untranslated. See [do not canonicalize all translations to the main language](https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/do-not-canonicalize-all-translations-main-language).
- **Redirecting every missing URL to the language's home page**: Google may treat them as soft 404s and the visitor loses their page.
- **Forgetting taxonomies and archives**: categories, tags and author pages have their fallbacks too.
- **Relying on the URL prefix** to infer a page's language: only the visible content counts.
- **Checking only once**: every new source page creates new fallbacks until it is translated. See [detect missing or outdated translations](https://checklist-seo-geo.com/en/multilingual-tracking-maintenance/detect-missing-outdated-translations).

## Frequently asked questions

### Is an untranslated page duplicate content for Google?

Yes, a language page whose main content stays in the source language is treated as a duplicate of the source page. Google determines the language from the visible content, not from the URL or the lang attribute, and its documentation states that language versions are only duplicates if the main content is not translated. Exclude these pages from the index or point their canonical to the source page.

### Is a 404 better than displaying the source language?

Both are acceptable if the choice is deliberate. A 404 is appropriate when no translation is planned: the URL does not exist, and the language switcher does not offer it. Displaying the source language helps the visitor when the translation is coming, provided you add a noindex, flag the fallback with a banner and remove the page from hreflang and the sitemap.

### Should an untranslated page redirect to the original version?

A temporary redirect, with a 302 or 307, to the equivalent page in the source language or a close language is a sound solution, and it is what Astro does by default, for example. Avoid a 301 if the translation is planned, and never redirect to the home page. Also remember to remove the redirected URL from the hreflang annotations and the language's sitemap.

### Do automatic translation plugins create untranslated pages?

On-the-fly translation plugins such as Weglot or TranslatePress leave every string they have not translated in the source language: dynamic content, text injected by another plugin, custom fields. The translated page then becomes mixed, or even almost entirely in the source language. Check the actual language of each version's main content, not just the menus.

## 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: Localized versions of your pages](https://developers.google.com/search/docs/specialty/international/localized-versions?hl=en)
- [Google Search Central: Canonical URLs and hreflang](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls?hl=en)
- [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: Translate & Adapt app](https://help.shopify.com/en/manual/markets/languages/translate-adapt-app)
- [Next.js: notFound](https://nextjs.org/docs/app/api-reference/functions/not-found)
- [Astro: Internationalization and fallback](https://docs.astro.build/en/guides/internationalization/)

Next steps: [Check noindex by language](https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/check-noindex-language) and [Check localized 404 errors](https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/check-localized-404-errors).
