DELTAWEB
All posts
Technical SEO

Mixed-Language Pages: The Half-Translated Template Problem

Mixed-language pages happen when only part of a template is translated. Learn the symptoms, root causes and step-by-step fixes, then audit your site today.

Mixed-Language Pages: The Half-Translated Template Problem
9 minReading time
Arif KuruAuthor

Picture an exporter's product detail page (a hypothetical example). The headline is in English, the "Request a quote" button is in Turkish, half of the specification table is in English and the other half in Turkish, and the footer privacy text is still in the original language. This is a mixed-language page: a template where only part of the content has been translated while the rest stays in the source language.

Treating it as a simple missing-translation problem is misleading. In most cases the root cause sits in how the template selects and passes the language, not in the translation files themselves. This guide walks through the symptoms, causes and fixes in order. For the broader architecture of a multilingual site, start with what is hreflang? A complete guide from basics to advanced.

Key Takeaways

  • A mixed-language page forms when part of a template is translated and the rest stays in the source language.
  • There are three common sources: hard-coded strings in the template, missing translation keys, and inconsistent language selection on the server.
  • Start the fix at the source: find which layer decides the language before editing individual pages.
  • After each fix, check the rendered HTML and sample pages against the same language rules.
  • Hreflang and language markup only carry meaning when the content is actually in that language.

Symptoms: What Language Is the Page Speaking?

Spotting a mixed-language page usually takes only a careful look, but a look alone is not always enough. If you see more than one of the following symptoms, you are most likely dealing with a template problem:

  • The page title and body text appear in different languages.
  • Part of the navigation menu is translated while the rest stays in the source language.
  • Buttons, form labels and error messages are in one language while the content is in another.
  • Of two pages in the same language, one is fully translated and the other not at all.
  • The lang attribute of the page does not match its content.
  • Raw translation keys, such as product.cta.quote, appear on screen.

These symptoms do not all come from the same root cause, so it is important to identify the source before fixing anything. Editing one page by hand hides the problem in every other page that uses the same template, and the same symptom usually returns within weeks.

Why Does This Happen?

There are three main causes of half-translated pages. They can occur independently or together on the same site.

Hard-coded strings in the template

If text in a template file is not connected to the translation function, it stays in the language it was written in. When "Get a quote" is typed directly into a component and never passed through a call such as t() or its equivalent, the page stays in English no matter which language it is served in. This is the most common cause, because the code builds, the page does not error, and the problem only shows up to a human reader.

Missing translation keys

When a key exists in the code but has no value in the target language, many systems show either the key itself or the default-language text. This tends to appear when a new page or section is added and the same keys are not added to every language file. The result is a template that is translated in some pages and not in others.

Inconsistent language selection on the server

If the language is read from the URL path, a cookie, the browser header or a redirect rule, each source can disagree. For example, the URL may start with /en/ while a page component still reads the language from a cookie. In that case part of the page follows the request language and another part follows the cookie.

Diagnosis: Which Page Carries Which Error?

Before you start fixing, grouping pages by what you observe makes the work faster. The table below is a starting point that moves you from a symptom to a likely source:

ObservationLikely causeFirst check
Only hard-coded text is in the wrong languageNo translation call in the templateLook for the text written directly in the component source
Translation key names are visibleKey missing from the target language fileConfirm the key exists in every language file
Some pages are right, others are notDifferent language source on the serverCompare the language from URL, cookie and request header
Wrong language only on first loadCache or redirectCheck whether the language is part of the cache key

This table is not a precise diagnostic tool. Every site is structured differently, but the order matters: start with the template, then the translation files, and finally the server layer. For the general families of hreflang mistakes, the post international SEO guide 2026: hreflang errors is a useful companion.

Fix 1: Connect Every Template String to the Translation Layer

The first step is to route every visible string in the template through the translation system. To avoid leaving fixed text behind, follow this sequence:

  1. Find sentences written as plain text in the template files. Searching the source code is enough for this.
  2. Replace each string with a short key that describes its function. Name keys by purpose rather than by their current wording, for example product.cta.quote.
  3. Define the key in every target language. Instead of leaving the source-language text as a fallback, add a real translation in each language.
  4. For strings that contain variables, pass fields such as names, prices or dates as parameters to the translation call. Splitting a sentence into pieces makes translation harder and produces awkward results.

At the end of this step, the template should contain no fixed visible text. Check this with a code search as well as on screen, because some strings only appear in a specific state, such as an error or an empty-results view.

Fix 2: Do Not Leave Gaps in Translation Keys

Adding keys is not enough on its own. Every language needs the same key set. A missing key quietly falls back to the source text and the problem stays hidden until the next content change.

Compare the key sets

A simple script that compares the key lists of the language files can run automatically before publishing. Keys that exist in the target language but not in the source, or the reverse, show where translation work is incomplete. Adding this check to the build stops the problem from reaching production.

Adopt a naming convention

Consistent key names make missing entries easier to find. Separating page, component and function names keeps the same text from being repeated under different keys in different places.

Set a rule for new sections

When a new component is added, all of its strings should be added in every target language at the same time. Writing this rule into a checklist helps the team keep it when people change.

Fix 3: Keep Language Selection in One Place

Reading the language from several places on the server is the sneakiest cause of confusion. When the URL, cookie, browser preference and default setting all take part in the decision, it becomes hard to tell which source each part of a page is following.

The recommended approach is to determine the language once, at the start of the request, and pass that single value to every component on the page. If the URL contains an explicit language signal, that signal should win. Cookies or browser preferences should only be used when the URL does not specify a language.

When you fix this layer, make sure components do not read the language on their own. If a component recalculates the language, two different sources exist on the same page, and the symptoms appear random.

Common Mistakes

  • Fixing only the visible page: Translating one page by hand does not solve the problem for other pages that use the same template.
  • Keeping the source language as a fallback: Falling back to source text for a missing key saves the appearance short term but makes the problem permanent.
  • Calculating the language in several places: When the URL and a cookie both decide, the winning value changes from page to page.
  • Ignoring the cache: If an old version stays in the cache after a fix, the team concludes the problem is still there.
  • Not checking the language attribute: Even when the visible text is correct, a wrong lang attribute keeps the signal mixed.

What Matters for Search Engines and hreflang?

Google tries to determine a page's language from its content and markup. It does not publish how much weight each signal carries, so presenting the effect of a half-translated page as guaranteed would be inaccurate. Still, when a page's language markup and its content point to different languages, it becomes harder for a search engine to decide which language audience the page should be evaluated for.

If you use hreflang, every language variant should reference the others reciprocally, and the content should really be in the language it declares. For the details, read hreflang return tag errors: detection and fix 2026 and hreflang x-default explained: the correct 2026 setup. Google's official documentation on language and regional markup is the source of truth for current rules; interfaces and details change, so verify against it rather than applying fixed rules from memory.

If you want to understand how language detection works in more depth, the article how Google detects a page's language covers that topic.

Pre-Publish Checklist

After finishing the fix, run these checks for every page template:

  1. Does every visible string come from a translation key?
  2. Does the target language key set match the source key set?
  3. Does the lang attribute match the language of the content?
  4. Does the language in the URL match the language the page displays?
  5. Does the cache serve the correct version when the language changes?

You can run these checks with a simple crawler or with a manual review of sample pages. To inspect the page source, your browser's developer tools are enough. For a technical crawl and hreflang audit, you can follow the steps in auditing hreflang with Screaming Frog, step by step.

Conclusion and Next Step

Mixed-language pages usually come from an accumulation of small gaps rather than a single error. The fix is not one change but a sequence of checks, from the template down to the server layer. The most valuable thing you can do today is probably to pick the ten pages with the most traffic and scan them with the checklist above. If your site has half-translated templates, a planning session on which pages to fix first is something the DeltaWeb team can help with.

FAQ

Frequently Asked Questions

  • What is a mixed-language page?

    A mixed-language page shows part of its template in the selected language and part in the source language. Even when the headline and body are translated, a button, form label or footer may stay untranslated. This makes the page look inconsistent to the user.

  • Why does a page show both Turkish and English text?

    The most common reason is that some template strings are not connected to the translation function. A missing key in the translation file also makes some systems display the default-language text. Finding the cause means tracing the source of each visible string.

  • How do I check the language variable in a template?

    The fastest method is to search the template files for plain text and confirm that each visible string comes from a translation key. Also check that the language variable is passed correctly to each component. If a component reads the language on its own, two language sources can exist on the same page.

  • What happens when a translation key is missing?

    When a key has no value in the target language, the system usually displays either the key name or the default-language text. This leaves the page looking half-finished to the user. Comparing the key set of every language file before publishing catches these gaps.

  • How can server-side language selection cause errors?

    If the language is read from the URL, a cookie and the browser header, these sources can conflict, and different parts of the page can return different languages. The recommended approach is to determine the language once at the start of the request and pass that value to all components.

  • Do mixed-language pages affect search engines?

    Google tries to determine a page's language from its content and markup, and a half-translated page can send mixed signals. The degree of impact varies by site, and no specific effect can be guaranteed. Fixing the page is still the right step for the user experience.

  • Which pages should I fix first?

    Start with the pages that get the most traffic and generate the most quote requests, especially product detail, quote form and contact pages. Pages that share a common template can be fixed together with one change. For that reason, review the template first and then check individual pages.

  • How do I verify the fix?

    Inspect the page source for each template and confirm that no fixed text remains and that the lang attribute matches the content. Then open a few sample pages in each language in the browser and check the text by eye. A crawling tool can also run a bulk check.

Related Articles

No comments yet

Leave a Comment