og:locale Example
Put it inside the <head> of the page:
<meta property="og:locale" content="en_GB" />
<meta property="og:locale:alternate" content="fr_FR" />
<meta property="og:locale:alternate" content="es_ES" />Where og:locale Shows Up
- Nowhere on the card. It's a signal for the app.
- Facebook uses it, with
og:locale:alternate, to fetch the right language version of a page for each reader.
Rules for og:locale
- Format: two-letter language, underscore, two-letter territory.
en_US,pt_BR,de_DE. - If you leave it out, apps assume
en_US. - List other languages the page is available in with one
og:locale:alternatetag each.
Common og:locale Values
| Value | Language and region |
|---|---|
en_US | English, United States |
en_GB | English, United Kingdom |
es_ES | Spanish, Spain |
es_LA | Spanish, Latin America |
fr_FR | French, France |
de_DE | German, Germany |
pt_BR | Portuguese, Brazil |
it_IT | Italian, Italy |
ja_JP | Japanese, Japan |
zh_CN | Chinese, Simplified |
Common og:locale Mistakes
- A hyphen instead of an underscore.
en-USis the HTMLlangformat, not the Open Graph one. - Language only, like
en. The territory is part of the format. - Expecting it to do what
hreflangdoes. Google doesn't useog:localefor language targeting.
See the full Open Graph tags list for the tags that go with it.
Frequently Asked Questions
What is the default og:locale?
en_US. If your page is in American English you can leave the tag out. For any other language or region, set it.
Is it en_US or en-US?
en_US with an underscore. The hyphenated form, en-US, is what the HTML lang attribute and hreflang use. Open Graph uses its own format.
Does og:locale help SEO?
No. Google uses hreflang and the page's content to work out language and region. og:locale is for social platforms, mainly Facebook.