DELTAWEB
All posts
Technical SEO

10 Architecture Mistakes That Mix Up Languages and Fixes

Wrong language codes, broken hreflang pairs and mixed-language pages hurt rankings abroad. Review 10 architecture mistakes: symptoms, causes, fixes.

10 Architecture Mistakes That Mix Up Languages and Fixes
10 minReading time
Arif KuruAuthor

A buyer in Germany opens your website and lands on a price page written for Turkey. Half of your product catalog is in English, the other half still in Turkish, and the footer says "Ürünler" while the menu says "Products". If this sounds familiar, the problem is rarely the copy itself. It usually starts in the language and country architecture of the site. This article walks through the ten most common architecture mistakes on international websites, each with its symptom, its cause and its fix. For the broader framework, read our international site architecture guide first, so the decisions below fit into the bigger picture.

Key Takeaways

  • Language codes follow ISO 639-1 and country codes follow ISO 3166-1 alpha-2. The correct code for the United Kingdom is en-GB, not en-UK.
  • Hreflang links must be reciprocal. A page pair without return tags cannot be matched reliably.
  • A language switcher should give users a choice. Forced redirects by IP address mislead both visitors and crawlers.
  • Each page's html lang attribute must match the language the visitor actually sees.
  • Mixed-language templates and unreviewed machine translation damage trust far more than most technical signals.

Before the Mistakes: Language Is Not the Same as Country

The most common mental shortcut in multilingual projects is treating language and country as one thing. English is spoken in dozens of countries, and Spanish audiences in Spain and Mexico have different expectations for units, terms and pricing. That is why a sound structure usually has two layers: a language layer (for example en, de, es) and, where needed, a regional layer (for example en-GB, en-US, es-MX).

The distinction matters because the hreflang attribute tells search engines which language and region a page targets. When codes are mixed up, the engine cannot work out which visitor should see which page. Most of the ten mistakes below come from getting these two layers wrong or from links that quietly break.

Each mistake is described in three parts: Symptom (what you notice), Cause (what is happening underneath) and Fix (what to change). None of the fixes promises a ranking outcome. The goal is to make your site's language signals consistent, which makes every other effort easier to measure.

Mistakes 1 and 2: Wrong Language and Country Codes

Mistake 1: Writing en-UK for the United Kingdom

Symptom: Search Console reports hreflang warnings for UK-targeted pages, or British visitors keep landing on the generic English version.

Cause: UK is not the ISO 3166-1 alpha-2 code for the United Kingdom. The code is GB. The engine tries to interpret en-UK and cannot match it to the intended region.

Fix: Use en-GB in every template, sitemap and module that generates hreflang output. If a language-only setup is enough for your market, en works too, but check the country code standard before adding a region.

Mistake 2: Mixed capitalization and separators

Symptom: Hreflang pairs do not connect, and the same language appears under several variants in the report, such as tr_TR, TR-tr and tr-TR living side by side.

Cause: Different templates or plugins produce the same code in different formats. Underscores, uppercase language codes and misplaced separators all lead to matching errors.

Fix: Define one rule in one place: language code in lowercase, region code in uppercase, hyphen as separator. Examples: tr-TR, de-DE, fr-FR. Then scan the full site output against this rule.

Mistake 3: Missing return tags

Symptom: The English page points to the German page, but the German page does not point back. The validation tool reports a one-way link.

Cause: Hreflang requires reciprocity. If page A references page B, page B must reference page A. This back-link is the return tag. The gap usually appears when a new language is added and existing pages are not updated.

Fix: Whenever you add a language, update the hreflang list on every existing page in the set. For a step-by-step detection method, see our guide on return tag errors and their fixes.

Mistake 4: x-default pointing to the wrong page

Symptom: A visitor whose language is not on your list lands in an unrelated market, or cannot find a relevant page at all.

Cause: The x-default value names the page for users whose language matches none of the listed versions. That page is often a language selection page or a general English version. If the wrong page is chosen, those visitors are sent to the wrong market.

Fix: Choose one clear page for x-default. For most export websites, a neutral entry page that offers language choices is the safest option. The full setup is explained in our x-default setup guide.

Mistake 5: Hreflang URLs that conflict with canonicals

Symptom: A page listed in hreflang is flagged as not being its own canonical, or the expected language version does not get indexed.

Cause: Every URL in a hreflang set should be the canonical address of its page. If the canonical points elsewhere, or the page is marked noindex, the hreflang signal contradicts the canonical signal.

Fix: Match each hreflang URL exactly with its canonical address. Remove parameterized, redirected and noindex pages from the set. URL structure decisions also shape how easy this matching is; our URL structure guide covers the trade-offs.

Mistakes 6 and 7: Switcher and Redirect Problems

Mistake 6: Forced redirects based on IP address

Symptom: A visitor from Turkey is sent automatically to the Turkish page and cannot reach the English version. A traveling buyer has no way to choose their own language.

Cause: A redirect based on IP address overrides the user's preference. Crawlers usually come from a limited set of locations, so a bot may only ever see one language and never discover the other versions. The result is an incomplete site for both the person and the search engine.

Fix: Remove the forced redirect. Detect the browser language and show a suggestion box, but leave the final choice to the visitor. Every language version should also be reachable through a direct, crawlable URL.

Mistake 7: The switcher sends users to the home page

Symptom: A visitor on a product page switches language and lands on the home page of the other language. They cannot find the product and leave.

Cause: The switcher builds a generic home-page link instead of finding the equivalent page. That also breaks hreflang reciprocity, because there is no true match between the two pages.

Fix: Make the switcher point to the equivalent page in the target language on every page. Where no equivalent exists, say so clearly rather than silently sending the visitor elsewhere. To understand which pages are truly comparable, read our guide on country folders without localized content.

Mistakes 8, 9 and 10: Page-Level Confusion

Mistake 8: Wrong or missing html lang attribute

Symptom: A screen reader pronounces English text as Turkish, or a browser translation prompt never appears, or it offers to translate a page that is already in the right language.

Cause: The lang value in the html tag is missing or fixed in a shared template. A multilingual site with one static value sends the wrong signal on every language version.

Fix: Generate the lang value dynamically from each page's real language. For example, <html lang="en-GB"> or <html lang="tr">. Keep it consistent with the language declared in hreflang.

Mistake 9: Mixed-language templates

Symptom: An English product page shows a Turkish "Teklif İste" button, a German footer or a date in the wrong format. The visitor cannot trust the half of the page they are reading.

Cause: Template elements such as navigation, form labels, footer, error messages and notifications were never part of the translation process. Product data fields are often left in the source language as well. To the visitor, the site looks unfinished.

Fix: Translate the template as a whole rather than piece by piece: menu, forms, footer, notices, date and number formats. Flag product data fields that still fall back to the source language. A per-language checklist prevents the same problem from returning with the next release.

Mistake 10: Publishing machine translation without review

Symptom: The page is in the right language, yet the wording feels artificial, technical terms vary between pages and product names do not match the catalog. Buyers hesitate at the next step.

Cause: Machine translation is a fast starting point, but it does not always carry industry terms, unit conventions or product codes correctly. Publishing it without review creates a content quality problem even when the language signal is correct.

Fix: Treat machine translation as a draft and have someone with subject knowledge review it. Keep a glossary for technical terms and protect product codes from being translated. If a page is not yet ready in a language, it is more honest to remove it from publication or mark it noindex until the work is complete.

Summary Table for All Ten Mistakes

NoMistakeTypical symptomFix
1en-UK instead of en-GBHreflang warning for UK pagesUse en-GB
2Inconsistent case and separatorsSeveral variants of one languageOne rule: tr-TR, de-DE
3Missing return tagsOne-way hreflang linkUpdate every page set
4Wrong x-defaultVisitors sent to the wrong marketChoose one clear fallback page
5Canonical conflictAlternate page not indexedMatch URLs with canonicals
6Forced IP redirectUsers cannot choose a languageUse a suggestion box
7Switcher goes to home pageVisitors lose the productLink to the equivalent page
8Wrong html lang valueTranslation tools misdetect languageGenerate lang dynamically
9Mixed-language templatesHalf-translated pageTranslate the whole template
10Unreviewed machine translationArtificial, inconsistent termsHuman review and a glossary

Audit Order: How to Scan in One Week

Rather than trying to fix all ten at once, work through them in an order that starts with high impact and low effort. The sequence below keeps each step building on the previous one.

  1. List language and region codes. Export the hreflang output of every template and the sitemap into one table.
  2. Check return tags. Confirm that every page pair is reciprocal.
  3. Test canonical matching. Make sure every URL in a hreflang set is its own canonical.
  4. Scan html lang values. Compare each page's declared language with its visible content.
  5. Click through the switcher. In each language, check at least ten pages and confirm they land on the equivalent page.
  6. Read the templates. Go through menu, forms and footer text in every language.

When these steps are done, you will know which of the ten mistakes genuinely exist on your site. In many cases the problem sits in a single shared template, which makes the fix faster than expected.

Conclusion and Next Step

Setting correct language and country codes, keeping hreflang links reciprocal, designing the switcher around the visitor's choice and translating every page fully are the basic hygiene of an international website. Fixing even a few of these ten mistakes raises the chance that a buyer reaches the right page in the right language. For how these checks scale as languages grow, see our scaling architecture guide. As a next step, run the audit above on your current site and start with the three issues that affect the most pages. Turning the summary table into a shared checklist makes the work easier to repeat with each new language.

FAQ

Frequently Asked Questions

  • What is hreflang and why does it matter?

    Hreflang tells search engines which language or regional version of a page is meant for which audience. When set up correctly, it improves the chance that a buyer sees the page in their own language. It is a signal, not a guaranteed ranking factor.

  • Should the UK code be en-GB or en-UK?

    It should be en-GB. The ISO 3166-1 alpha-2 code for the United Kingdom is GB. UK is not a standard country code and makes it harder for search engines to match the intended region.

  • Why do hreflang tags need to be reciprocal?

    If page A points to page B, page B must point back to page A. This is called a return tag. Without it, the pair cannot be matched reliably by search engines.

  • When should x-default be used?

    It is used for the generic page shown when a visitor's language is not on your list. Most export websites use a language selection page or a general English version for this. Choosing one clear page matters more than choosing a clever one.

  • Should I use forced IP-based redirects for the language switcher?

    No. A forced redirect removes the visitor's ability to choose another language. Crawlers often come from a limited set of locations and may never discover the other versions. A suggestion box based on browser language is a safer approach.

  • Should I add hreflang to a page that is not translated?

    Marking an untranslated page as if it were a version in that language is misleading. Prepare the page properly in the target language first, then add hreflang. The same logic applies to partial translations.

  • What does the html lang attribute do?

    It tells browsers, screen readers and search engines the main language of the page. The value should match the real language of the content. A wrong value causes translation tools and accessibility software to behave incorrectly.

  • How can I find language errors on a multilingual site quickly?

    Start with a hreflang validation tool to check return tags. Then use a crawler to compare html lang values with the visible language. Finally, read at least ten pages in each language by hand.

Related Articles

No comments yet

Leave a Comment