In short
On a multilingual site, not every page is ever translated into every language: a local blog post, a product sold in a single country, a legal page specific to one market. This task consists of setting a written rule for this case, then having the CMS enforce it: what the language switcher shows, what the hreflang annotations and the sitemap say, and what the translated URL returns if someone requests it. Once this task is done, no page displays the source text under a URL in another language, and no link leads to an empty page or to the homepage without warning.
Why it matters
Without a rule, each tool applies its own, and they are often bad for SEO:
- Silent fallback: many CMSs display the default language's content when the translation is missing. Shopify says so in its help center: when a translation does not exist, the store displays the content in the default language. WPML offers the same behavior per content type, and Astro allows it through configuration. The result is a
/de/…URL whose main text is in French. - The hollow page: the template, menu and footer are translated, the content is not, or a “coming soon” page returns 200.
- The link to the homepage: the switcher sends the missing language to the homepage, and so do the
hreflangannotations.
Google determines the language of a page from its visible content, not from the lang attribute or the URL. It also states that localized versions are only considered duplicates if the main content remains untranslated. A fallback page is therefore a duplicate of the original, in the wrong language for its URL: it dilutes the original version, can be chosen in its place in the results, and disappoints the German-speaking visitor who clicks on it.
Generative engines read pages the same way as traditional search engines: a German URL with French content may be summarized or cited in the wrong language. No practice guarantees a citation, but a consistent page avoids that one.
What it improves
- Index quality No fallback duplicates competing with the original pages.
- hreflang Annotations limited to pages that are actually translated, and therefore valid.
- Visitor experience They know before clicking that a page does not exist in their language.
- Crawl budget Fewer useless URLs on large catalogs. A noticeable effect only at scale.
- Editorial management The list of untranslated pages becomes visible and can be prioritized.
How to check
1. Count the pages per language. Compare the number of URLs in each sitemap:
for lang in fr de en; do
printf '%s ' "$lang"
curl -s "https://example.com/sitemap-${lang}.xml" | grep -c '<loc>'
done
A gap is normal; it tells you how many pages fall under this guide.
2. Find fallback pages. Take a page known not to be translated and request its URL in the other language:
curl -s -o /dev/null -w '%{http_code} %{redirect_url}\n' https://example.com/de/blog/guide-des-tailles/
Expected result: 404, or a deliberate temporary redirect. A 200 signals a fallback page or an empty page: open it and check the language of the main text.
3. Check the switcher and the hreflang annotations of an untranslated page: the missing language must be absent from the annotations, and the switcher must hide it or say clearly that it is unavailable.
curl -s https://example.com/fr/blog/guide-des-tailles/ | grep -o -E 'hreflang="[^"]*" href="[^"]*"'
4. Search Console: in the Performance report, filter on pages containing /de/ and look for queries in French; they often give away indexed fallback pages.
How to implement
Before you start
Write the rule, get the editorial team to approve it, then apply it everywhere:
| Situation | Recommended behavior | hreflang | Sitemap |
|---|---|---|---|
| Untranslated page, no translation planned | No URL in that language; language hidden in the switcher, or a link to the translated parent section, labeled as such | Language omitted | Absent |
| Translation planned | Same treatment until publication; no indexable “coming soon” page | Omitted | Absent |
| Translated URL requested but nonexistent | 404 in the URL's language, with a link to the existing version | Not applicable | Not applicable |
| CMS that serves the source text under the translated URL | Disable the fallback; failing that, noindex on these pages |
Omitted | Absent |
| Translation deleted | 301 to the closest equivalent in the same language if there is one, otherwise 404 or 410 | Removed | Removed |
Two principles complete this table:
- Only real translations receive
hreflangannotations. Never replace the missing equivalent with the homepage: omit the language. See link to the equivalent page rather than the homepage (opens in a new tab). - A redirect to the source version is acceptable for a visitor following an old link, provided it is temporary (302) and no internal link or
hreflangannotation points to the redirected URL. A helpful 404 remains clearer.
In the switcher, if you keep the language visible, say so in the label and do not suggest a translation exists:
<li>
<span lang="de" aria-disabled="true">Deutsch</span>
<a href="https://example.com/de/blog/" hreflang="de" lang="de">Zum Blog auf Deutsch</a>
</li>
WordPress
Versions WordPress 6.8 and later; Polylang 3, WPML 5, TranslatePress 3 and Weglot, November 2026.
- Polylang: untranslated content simply does not exist in the other language; there is no fallback. In the switcher, check the option that hides languages with no translation (
hide_if_no_translationin code). Thehreflangannotations generated by Polylang only list existing translations. - WPML:
WPML > Settings, “Post Types Translation” section. For indexable types (pages, posts, products), choose “Translatable – only show translated items”. The “Translatable – use translation if available or fallback to default language” option displays the default language's content in the other languages: keep it for secondary content. InWPML > Settings > Language Switchers, under the “How to handle languages without translation” setting, keep “Skip language” (the default). - TranslatePress and Weglot: the page exists in every language, translated string by string. An untranslated string stays in the source language: complete the translation, machine-translated then reviewed, before opening the language. See avoid mixed-language pages with partial translations (opens in a new tab).
Purge the page cache after each settings change.
Shopify
Versions Shopify, all plans, Translate & Adapt app, November 2026.
When a language is published, every page of the store exists under its prefix, and untranslated content is displayed in the default language. There is no setting to return 404 on an untranslated product page. The rule therefore becomes: only publish a language (Settings > Languages) once the indexable products, collections and pages are translated. Translate & Adapt lets you export only the untranslated content, to measure and close the gap. Do not publish an incomplete translation intending to fix it later: the hreflang annotations generated by Shopify announce every published language.
Drupal
Versions Drupal 10 and 11, Language Switcher Extended module 1.x.
Drupal displays untranslated content in its original language under the other language's prefix. With the Language Switcher Extended module, hide the language in the “Language switcher” block or display it without a link for untranslated content. Then check, with the test from the previous section, what the prefixed URL of an untranslated piece of content returns, and add a noindex if it returns 200 with the source text.
Laravel
Versions Laravel 11 to 13, spatie/laravel-translatable 6.
Disable the silent fallback on content and return 404 when the translation is missing. With spatie/laravel-translatable:
// app/Models/Page.php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Spatie\Translatable\HasTranslations;
class Page extends Model
{
use HasTranslations;
/** @var array<int, string> */
public array $translatable = ['title', 'slug', 'body'];
protected $useFallbackLocale = false;
public function isTranslatedIn(string $locale): bool
{
return filled($this->getTranslation('body', $locale, false));
}
}
// app/Http/Controllers/PagesController.php
namespace App\Http\Controllers;
use App\Models\Page;
use Illuminate\View\View;
class PagesController
{
public function show(string $locale, string $slug): View
{
$page = Page::query()->where("slug->{$locale}", $slug)->firstOrFail();
abort_unless($page->isTranslatedIn($locale), 404);
return view('pages.show', ['page' => $page]);
}
}
The fallback_locale in config/app.php remains useful for interface strings; it is the main content that must not fall back. Customize resources/views/errors/404.blade.php so that it is displayed in the URL's language and offers the existing version.
Next.js
Versions Next.js 15 and 16 (App Router).
With the App Router, only generate the language and slug combinations that exist, and reject the others:
// app/[lang]/blog/[slug]/page.tsx
import { notFound } from 'next/navigation';
import { getAllTranslations, getPost } from '@/lib/cms';
export const dynamicParams = false;
export async function generateStaticParams() {
const translations = await getAllTranslations('post');
return translations.map(({ lang, slug }) => ({ lang, slug }));
}
type Props = { params: Promise<{ lang: string; slug: string }> };
export default async function Post({ params }: Props) {
const { lang, slug } = await params;
const post = await getPost(lang, slug);
if (!post) {
notFound();
}
return <article lang={lang}>{post.title}</article>;
}
dynamicParams = false makes any combination missing from generateStaticParams return 404. With dynamic rendering, or if you have enabled Cache Components (cacheComponents: true in next.config.ts, a Next.js 16 option that does not accept dynamicParams), remove this line and keep only the call to notFound(). Add a translated app/[lang]/not-found.tsx file.
Nuxt
Versions Nuxt 3 and 4, @nuxtjs/i18n module 10.
The fallbackLocale of @nuxtjs/i18n applies to interface messages. For content, throw a 404 error when the translation is missing:
<!-- pages/blog/[slug].vue -->
<script setup lang="ts">
const route = useRoute();
const { locale } = useI18n();
const { data: post } = await useFetch(`/api/posts/${route.params.slug}`, { query: { lang: locale } });
if (!post.value) {
throw createError({ statusCode: 404, statusMessage: 'Page not found' });
}
</script>
With server rendering, the response does carry the 404 status code.
Astro
Versions Astro 5 to 7.
Astro's i18n.fallback setting creates, for one language, the pages that only exist in another. With routing.fallbackType: "redirect" (the default), Astro redirects to the page in the fallback language; with "rewrite", it serves the fallback content under the requested language's URL, which produces precisely a fallback page. For an indexable site, do not use fallback, or keep the redirect:
// astro.config.mjs
import { defineConfig } from 'astro/config';
export default defineConfig({
i18n: {
locales: ['fr', 'de', 'en'],
defaultLocale: 'fr',
},
});
Without fallback, a page missing from a language is not generated and returns 404. Translate src/pages/404.astro or provide a 404 page per language, depending on your host.
Common mistakes
- Leaving the CMS's default fallback in place: thousands of translated URLs with untranslated content, all indexable.
- Announcing the homepage as the equivalent in the
hreflangannotations for lack of a translation. - A “coming soon” page returning 200: a hollow page, flagged as a soft 404 or indexed for nothing.
- Including untranslated or unpublished URLs in the sitemap.
- 301-redirecting to the source language a URL that will be translated the following month.
- Deleting a translation without updating the
hreflangannotations of the other versions. See update annotations when a translation is removed (opens in a new tab). - A 404 page in the default language for a German URL.
Frequently asked questions
What should you do when a page is not translated into a language?
Do not create a URL in that language until the translation exists. Omit the language from the hreflang annotations and the sitemap, and hide it in the switcher or offer the translated parent section with an explicit label. If someone requests the translated URL anyway, return a 404 in the URL's language, with a link to the existing version.
Can you display the original content when the translation is missing?
For the visitor it is sometimes convenient, but for SEO it should be avoided. Google determines the language of a page from its visible content, and a localized version whose main content is not translated is considered a duplicate. If your CMS forces this fallback, exclude these pages from hreflang and the sitemap and add a noindex, or only publish the language once the translation is complete.
Should an untranslated page be redirected to its original version?
A temporary 302 redirect to the original version is acceptable for a visitor following an old link, provided no internal link or hreflang annotation points to the redirected URL. Avoid a permanent 301 redirect if a translation is planned. A helpful 404 page, in the URL's language and with a link to the existing version, remains the clearest response.
Shopify displays content in the default language when it is not translated: what can you do?
Shopify displays the default language's content when a translation is missing, with no setting to return 404 on an untranslated product page, and its hreflang annotations announce every published language. The workaround is to publish a language only once the indexable products, collections and pages are translated. Translate & Adapt lets you export only the untranslated content to measure the gap.
Resources
- Google Search Central: Managing multi-regional and multilingual sitesdevelopers.google.com
- Google Search Central: Tell Google about localized versions of your pagedevelopers.google.com
- WPML: Displaying untranslated content on pages in secondary languageswpml.org
- Shopify: Languages and store SEOhelp.shopify.com
- spatie/laravel-translatable: Handling missing translationsspatie.be
- Next.js: notFoundnextjs.org
- Astro: Internationalization and fallbackdocs.astro.build
Updated on
Topic checklist (PDF)