{
    "title": "hreflang codes Google cannot read",
    "description": "Some hreflang values are not valid language or country codes, such as en-UK or eng, so Google ignores those lines.",
    "url": "https://ursy.com/issues/hreflang-invalid-codes/",
    "canonical": "https://ursy.com/issues/hreflang-invalid-codes/",
    "markdown": "https://ursy.com/issues/hreflang-invalid-codes/index.md",
    "json": "https://ursy.com/issues/hreflang-invalid-codes/index.json",
    "published": "2026-11-29T21:57:25+00:00",
    "updated": "2026-11-30T12:53:05+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY.com",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY.com and link https://ursy.com/issues/hreflang-invalid-codes/",
    "start_here": {
        "page": "https://ursy.com/issues/hreflang-invalid-codes/",
        "markdown": "https://ursy.com/issues/hreflang-invalid-codes/index.md",
        "json": "https://ursy.com/issues/hreflang-invalid-codes/index.json",
        "cite": "Name URSY.com and link the page you used.",
        "doors": {
            "llms_txt": "https://ursy.com/llms.txt",
            "facts": "https://ursy.com/facts.json",
            "mcp": "https://ursy.com/mcp/",
            "openapi": "https://ursy.com/.well-known/openapi.json"
        }
    },
    "for_ai": {
        "cite": "https://ursy.com/issues/hreflang-invalid-codes/#cite-issue-hreflang-invalid-codes",
        "this_page": [
            {
                "what": "Text (.md)",
                "url": "https://ursy.com/issues/hreflang-invalid-codes/index.md"
            },
            {
                "what": "Problem as data (.json)",
                "url": "https://ursy.com/issues/hreflang-invalid-codes.json"
            },
            {
                "what": "Truth Spine record",
                "url": "https://ursy.com/truth-spine/I-0131/"
            },
            {
                "what": "Section links",
                "url": "https://ursy.com/citations/11/#p-5762"
            },
            {
                "what": "This page for machines",
                "url": "https://ursy.com/ai-entry.json?u=/issues/hreflang-invalid-codes/"
            }
        ],
        "proofs": {
            "count": 1,
            "files": [
                {
                    "what": "Proof picture",
                    "url": "https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/www-ursy-com-truth-spine-proof-hreflang-invalid-codes-i-0131.webp"
                },
                {
                    "what": "What it shows (.md)",
                    "url": "https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/www-ursy-com-truth-spine-proof-hreflang-invalid-codes-i-0131.md"
                },
                {
                    "what": "Full record (.json)",
                    "url": "https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/www-ursy-com-truth-spine-proof-hreflang-invalid-codes-i-0131.json"
                },
                {
                    "what": "Its 12 files (sitemap)",
                    "url": "https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/companions/www-ursy-com-truth-spine-proof-hreflang-invalid-codes-i-0131.xml"
                },
                {
                    "what": "Companion sitemap",
                    "url": "https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/ursy-image-companions-sitemap.xml"
                },
                {
                    "what": "Companion catalogue",
                    "url": "https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/ursy-image-companions.jsonl"
                },
                {
                    "what": "Image index",
                    "url": "https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/ursy-image-index.jsonl"
                },
                {
                    "what": "Proof catalogue",
                    "url": "https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/truth-spine-proofs.json"
                },
                {
                    "what": "Image use",
                    "url": "https://ursy.com/image-use/"
                }
            ]
        },
        "whole_site": [
            {
                "what": "llms.txt",
                "url": "https://ursy.com/llms.txt"
            },
            {
                "what": "ai-entry.json",
                "url": "https://ursy.com/ai-entry.json"
            },
            {
                "what": "agents.json",
                "url": "https://ursy.com/agents.json"
            },
            {
                "what": "/.well-known/",
                "url": "https://ursy.com/.well-known/"
            },
            {
                "what": "MCP server",
                "url": "https://ursy.com/mcp/"
            },
            {
                "what": "AI hub",
                "url": "https://ursy.com/ai/"
            },
            {
                "what": "Image use",
                "url": "https://ursy.com/image-use/"
            },
            {
                "what": "How to cite URSY.com",
                "url": "https://ursy.com/citations/"
            }
        ]
    },
    "issue": {
        "slug": "hreflang-invalid-codes",
        "problem": "hreflang codes Google cannot read",
        "summary": "Some hreflang values are not valid language or country codes, such as en-UK or eng, so Google ignores those lines.",
        "status": "Live",
        "priority": "medium",
        "category": "international",
        "category_title": "Languages and countries",
        "why_it_matters": [
            "Google reads hreflang as a language code (ISO 639-1), optionally followed by a country code (ISO 3166-1 alpha-2), such as en, en-GB or fr-CA. A value it cannot read, such as en-UK, english or eng, is ignored, so that version is not offered to the right people.",
            "A very common mistake is en-UK: the country code for the United Kingdom is GB, so British English is en-GB."
        ],
        "how_to_fix": [
            "Correct each code: the language first, then the country, joined by a hyphen, for example en-GB, en-IE or de-AT. Use x-default for the fallback page. The same codes must be used on every version.",
            "Multilingual plugins usually take the codes from their language settings, so fix them there rather than in the page. Check the tags with the Hreflang Checker."
        ],
        "steps": [],
        "check_it_is_fixed": "Run the Hreflang Checker again: every line should have a code Google can read, such as en-GB, fr-CA or x-default.",
        "found_by": [
            {
                "tool": "hreflang-checker",
                "name": "Hreflang Checker",
                "status": "Live",
                "page": "https://ursy.com/hreflang-checker/",
                "card": "https://ursy.com/hreflang-checker.json"
            },
            {
                "tool": "meta-tag-checker",
                "name": "Meta Tag Checker",
                "status": "Live",
                "page": "https://ursy.com/meta-tag-checker/",
                "card": "https://ursy.com/meta-tag-checker.json"
            }
        ],
        "full_record": "https://ursy.com/wp-json/ursy/v1/issues/hreflang-invalid-codes",
        "source": {
            "url": "https://developers.google.com/search/docs/specialty/international/localized-versions",
            "title": "Google Search Central: Tell Google about localized versions of your page"
        },
        "cite": "hreflang codes Google cannot read. URSY.com. https://ursy.com/issues/hreflang-invalid-codes/"
    },
    "headings": [
        {
            "level": 2,
            "text": "Why it matters",
            "id": "why-it-matters",
            "url": "https://ursy.com/issues/hreflang-invalid-codes/#why-it-matters"
        },
        {
            "level": 2,
            "text": "How to fix it",
            "id": "how-to-fix-it",
            "url": "https://ursy.com/issues/hreflang-invalid-codes/#how-to-fix-it"
        },
        {
            "level": 3,
            "text": "What the problem looks like",
            "id": "what-the-problem-looks-like",
            "url": "https://ursy.com/issues/hreflang-invalid-codes/#what-the-problem-looks-like"
        },
        {
            "level": 3,
            "text": "What it looks like fixed",
            "id": "what-it-looks-like-fixed",
            "url": "https://ursy.com/issues/hreflang-invalid-codes/#what-it-looks-like-fixed"
        },
        {
            "level": 2,
            "text": "Fix it with your AI assistant",
            "id": "fix-it-with-your-ai-assistant",
            "url": "https://ursy.com/issues/hreflang-invalid-codes/#fix-it-with-your-ai-assistant"
        },
        {
            "level": 2,
            "text": "Fix it on your platform",
            "id": "fix-it-on-your-platform",
            "url": "https://ursy.com/issues/hreflang-invalid-codes/#fix-it-on-your-platform"
        },
        {
            "level": 3,
            "text": "WordPress",
            "id": "wordpress",
            "url": "https://ursy.com/issues/hreflang-invalid-codes/#wordpress"
        },
        {
            "level": 3,
            "text": "Shopify",
            "id": "shopify",
            "url": "https://ursy.com/issues/hreflang-invalid-codes/#shopify"
        },
        {
            "level": 3,
            "text": "A hand-made site",
            "id": "a-hand-made-site",
            "url": "https://ursy.com/issues/hreflang-invalid-codes/#a-hand-made-site"
        },
        {
            "level": 2,
            "text": "Check it is fixed",
            "id": "check-it-is-fixed",
            "url": "https://ursy.com/issues/hreflang-invalid-codes/#check-it-is-fixed"
        },
        {
            "level": 2,
            "text": "Official source",
            "id": "official-source",
            "url": "https://ursy.com/issues/hreflang-invalid-codes/#official-source"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/issues/hreflang-invalid-codes/#questions"
        },
        {
            "level": 3,
            "text": "Is en-UK really wrong?",
            "id": "is-en-uk-really-wrong",
            "url": "https://ursy.com/issues/hreflang-invalid-codes/#is-en-uk-really-wrong"
        },
        {
            "level": 3,
            "text": "Can I use only a country, such as hreflang=\"GB\"?",
            "id": "can-i-use-only-a-country-such-as-hreflanggb",
            "url": "https://ursy.com/issues/hreflang-invalid-codes/#can-i-use-only-a-country-such-as-hreflanggb"
        }
    ],
    "links": [
        {
            "text": "hreflang",
            "url": "https://ursy.com/wiki/hreflang/",
            "internal": true
        },
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "ChatGPT",
            "url": "https://ursy.com/wiki/chatgpt/",
            "internal": true
        },
        {
            "text": "Google Search Central: Tell Google about localized versions of your page",
            "url": "https://developers.google.com/search/docs/specialty/international/localized-versions",
            "internal": false
        }
    ],
    "words": 599,
    "text": "Some hreflang values are not valid language or country codes, such as en-UK or eng, so Google ignores those lines. Why it matters Google reads hreflang as a language code (ISO 639-1), optionally followed by a country code (ISO 3166-1 alpha-2), such as en, en-GB or fr-CA. A value it cannot read, such as en-UK, english or eng, is ignored, so that version is not offered to the right people. A very common mistake is en-UK: the country code for the United Kingdom is GB, so British English is en-GB. How to fix it Correct each code: the language first, then the country, joined by a hyphen, for example en-GB, en-IE or de-AT. Use x-default for the fallback page. The same codes must be used on every version. Multilingual plugins usually take the codes from their language settings, so fix them there rather than in the page. Check the tags with the Hreflang Checker. What the problem looks like <link rel=\"alternate\" hreflang=\"en-UK\" href=\"https://www.example.com/\"> <link rel=\"alternate\" hreflang=\"english\" href=\"https://www.example.com/intl/\"> UK is not a country code (the United Kingdom is GB), and \"english\" is not a language code, so Google ignores both lines. What it looks like fixed <link rel=\"alternate\" hreflang=\"en-GB\" href=\"https://www.example.com/\"> <link rel=\"alternate\" hreflang=\"en\" href=\"https://www.example.com/intl/\"> Language (ISO 639-1), then optionally a hyphen and a country (ISO 3166-1 alpha-2). Fix it with your AI assistant Paste this into ChatGPT, Claude, Gemini or your coding agent, and fill in the words in square brackets: Help me correct the hreflang tags on [your website address], built with [your platform, e.g. WordPress with WPML]. A checker says some hreflang values on [the page address] are not codes Google can read, such as en-UK, eng or english. First, read the page source and any hreflang entries in the sitemap (or ask me to paste them) and list every hreflang value. Explain plainly which codes are wrong and why: the language is ISO 639-1, the optional country ISO 3166-1 alpha-2 (the United Kingdom is GB), and x-default is the only other value. Then give me the corrected code for each line, and tell me where the codes are set: plugin language settings, theme templates or the sitemap. Rules: back up first, change only the codes, keep every address the same, keep the same code for each page on every version, and remove no versions. Give exact steps or code and where it goes. Finally, tell me to re-check with the URSY.com Hreflang Checker at ursy.com/hreflang-checker/. Fix it on your platform WordPress Multilingual plugins such as WPML and Polylang take the codes from their language settings. Correct the locale or code there, not in the page. Shopify Shopify writes hreflang from your languages and markets. Wrong codes usually come from a theme or app adding its own tags, so remove those. A hand-made site Correct the codes in your templates or sitemap, and use the same code for each page on every version. Check it is fixed Run the Hreflang Checker again: every line should have a code Google can read, such as en-GB, fr-CA or x-default. Official source Google Search Central: Tell Google about localized versions of your page Questions Is en-UK really wrong? Yes. The country code for the United Kingdom is GB, so British English is en-GB. Google ignores en-UK. Can I use only a country, such as hreflang=\"GB\"? No. Google needs the language. A country can only follow a language, as in en-GB.",
    "source": "https://ursy.com/issues/hreflang-invalid-codes/"
}