{
    "title": "og:locale is not in the right format",
    "description": "og:locale should be written as language_TERRITORY with an underscore, such as en_GB, or apps may ignore it.",
    "url": "https://ursy.com/issues/og-locale-format/",
    "canonical": "https://ursy.com/issues/og-locale-format/",
    "markdown": "https://ursy.com/issues/og-locale-format/index.md",
    "json": "https://ursy.com/issues/og-locale-format/index.json",
    "published": "2026-11-29T21:57:24+00:00",
    "updated": "2026-11-30T12:53:04+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY.com",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY.com and link https://ursy.com/issues/og-locale-format/",
    "start_here": {
        "page": "https://ursy.com/issues/og-locale-format/",
        "markdown": "https://ursy.com/issues/og-locale-format/index.md",
        "json": "https://ursy.com/issues/og-locale-format/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"
        }
    },
    "issue": {
        "slug": "og-locale-format",
        "problem": "og:locale is not in the right format",
        "summary": "og:locale should be written as language_TERRITORY with an underscore, such as en_GB, or apps may ignore it.",
        "status": "Live",
        "priority": "low",
        "category": "titles-meta",
        "category_title": "Titles, descriptions and sharing",
        "why_it_matters": [
            "The Open Graph protocol writes the locale as a language code, an underscore and a country code, for example en_GB or fr_FR. Values such as \"en-GB\", \"english\" or \"uk\" do not follow the format, so apps that read the tag may ignore it or fall back to a default.",
            "The locale helps apps such as Facebook pick the right version when you offer several languages. It is a small problem, but it is easy to fix."
        ],
        "how_to_fix": [
            "Change the tag to <meta property=\"og:locale\" content=\"en_GB\"> or the code for your language and country. Note that the html lang attribute uses a hyphen (en-GB) while og:locale uses an underscore (en_GB).",
            "On WordPress, SEO plugins usually build og:locale from the site language in Settings, General. Check that setting is right."
        ],
        "steps": [],
        "check_it_is_fixed": "Run the URSY.com Open Graph Checker again: og:locale should be accepted, in a form such as en_GB.",
        "found_by": [
            {
                "tool": "open-graph-checker",
                "name": "Open Graph Checker",
                "status": "Live",
                "page": "https://ursy.com/open-graph-checker/",
                "card": "https://ursy.com/open-graph-checker.json"
            }
        ],
        "full_record": "https://ursy.com/wp-json/ursy/v1/issues/og-locale-format",
        "source": {
            "url": "https://ogp.me/",
            "title": "Open Graph protocol"
        },
        "cite": "og:locale is not in the right format. URSY.com. https://ursy.com/issues/og-locale-format/"
    },
    "headings": [
        {
            "level": 2,
            "text": "Why it matters",
            "id": "why-it-matters",
            "url": "https://ursy.com/issues/og-locale-format/#why-it-matters"
        },
        {
            "level": 2,
            "text": "How to fix it",
            "id": "how-to-fix-it",
            "url": "https://ursy.com/issues/og-locale-format/#how-to-fix-it"
        },
        {
            "level": 3,
            "text": "What the problem looks like",
            "id": "what-the-problem-looks-like",
            "url": "https://ursy.com/issues/og-locale-format/#what-the-problem-looks-like"
        },
        {
            "level": 3,
            "text": "What it looks like fixed",
            "id": "what-it-looks-like-fixed",
            "url": "https://ursy.com/issues/og-locale-format/#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/og-locale-format/#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/og-locale-format/#fix-it-on-your-platform"
        },
        {
            "level": 3,
            "text": "WordPress",
            "id": "wordpress",
            "url": "https://ursy.com/issues/og-locale-format/#wordpress"
        },
        {
            "level": 3,
            "text": "A hand-made site",
            "id": "a-hand-made-site",
            "url": "https://ursy.com/issues/og-locale-format/#a-hand-made-site"
        },
        {
            "level": 2,
            "text": "Check it is fixed",
            "id": "check-it-is-fixed",
            "url": "https://ursy.com/issues/og-locale-format/#check-it-is-fixed"
        },
        {
            "level": 2,
            "text": "Official source",
            "id": "official-source",
            "url": "https://ursy.com/issues/og-locale-format/#official-source"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/issues/og-locale-format/#questions"
        },
        {
            "level": 3,
            "text": "Why is it en-GB in one place and en_GB in another?",
            "id": "why-is-it-en-gb-in-one-place-and-en_gb-in-another",
            "url": "https://ursy.com/issues/og-locale-format/#why-is-it-en-gb-in-one-place-and-en_gb-in-another"
        },
        {
            "level": 3,
            "text": "Is this urgent?",
            "id": "is-this-urgent",
            "url": "https://ursy.com/issues/og-locale-format/#is-this-urgent"
        }
    ],
    "links": [
        {
            "text": "Open Graph",
            "url": "https://ursy.com/wiki/open-graph/",
            "internal": true
        },
        {
            "text": "html lang attribute",
            "url": "https://ursy.com/wiki/html-lang-attribute/",
            "internal": true
        },
        {
            "text": "SEO",
            "url": "https://ursy.com/wiki/seo-search-engine-optimisation/",
            "internal": true
        },
        {
            "text": "ChatGPT",
            "url": "https://ursy.com/wiki/chatgpt/",
            "internal": true
        },
        {
            "text": "Open Graph protocol",
            "url": "https://ogp.me/",
            "internal": false
        },
        {
            "text": "HTML",
            "url": "https://ursy.com/wiki/html/",
            "internal": true
        }
    ],
    "words": 565,
    "text": "og:locale should be written as language_TERRITORY with an underscore, such as en_GB, or apps may ignore it. Why it matters The Open Graph protocol writes the locale as a language code, an underscore and a country code, for example en_GB or fr_FR. Values such as \"en-GB\", \"english\" or \"uk\" do not follow the format, so apps that read the tag may ignore it or fall back to a default. The locale helps apps such as Facebook pick the right version when you offer several languages. It is a small problem, but it is easy to fix. How to fix it Change the tag to <meta property=\"og:locale\" content=\"en_GB\"> or the code for your language and country. Note that the html lang attribute uses a hyphen (en-GB) while og:locale uses an underscore (en_GB). On WordPress, SEO plugins usually build og:locale from the site language in Settings, General. Check that setting is right. What the problem looks like <meta property=\"og:locale\" content=\"en-GB\"> A hyphen, as in the html lang attribute. Open Graph wants an underscore. What it looks like fixed <html lang=\"en-GB\"> <meta property=\"og:locale\" content=\"en_GB\"> lang uses a hyphen; og:locale uses language_TERRITORY with an underscore. Fix it with your AI assistant Paste this into ChatGPT, Claude, Gemini or your coding agent, and fill in the words in square brackets: The og:locale tag on [the page address] of my website [your website address], built with [your platform, e.g. WordPress with Yoast], is not in the Open Graph format. First read the page source, or ask me to paste the <html> tag and the og: tags, and tell me the current og:locale value, the html lang value, and what software writes the og:locale tag. Then give me the correct value in the form language_TERRITORY with an underscore, such as en_GB for English in the United Kingdom, matching the real language of the page. If the page also has og:locale:alternate tags for other languages, check those use the same format. Rules: back up first, change only the og:locale value, do not change the html lang attribute (it rightly uses a hyphen), do not add a second og:locale, and keep page addresses the same. If a site language setting fixes every page, name it instead of code. Then tell me to re-check with the URSY.com Open Graph Checker at ursy.com/open-graph-checker/. Fix it on your platform WordPress SEO plugins build og:locale from the Site Language in Settings, General. Choose English (UK) there; a wrong value usually means a plugin or theme writes the tag by hand. A hand-made site Change the content of the og:locale tag to the form en_GB, or the code for your language and country. Check it is fixed Run the URSY.com Open Graph Checker again: og:locale should be accepted, in a form such as en_GB. Official source Open Graph protocol Questions Why is it en-GB in one place and en_GB in another? The two standards differ. The HTML lang attribute uses a hyphen, while the Open Graph protocol writes the locale with an underscore. Is this urgent? No. It is a small problem, but it takes a minute to fix and helps apps pick the right language version.",
    "source": "https://ursy.com/issues/og-locale-format/"
}