og:locale is not in the right format
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 it looks like, and fixed #
<meta property="og:locale" content="en-GB">
A hyphen, as in the html lang attribute. Open Graph wants an underscore.
<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. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.
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/.
We find the problems, and help you fix them
- Check Run a free tool or the full audit.
- Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
- Re-check Come back, check again, and watch each fix turn green.
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 #
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.
More problems in Titles, descriptions and sharing
- No viewport tag for phones High priority
- The page has no title High priority
- The share image does not load High priority
- No share image (og:image) Medium priority
- Open Graph tags come too late in the page Medium priority
- robots.txt blocks the share preview crawlers Medium priority
- Several pages share the same title Medium priority
- The character set is not declared Medium priority