Open Graph locale checker
Is your page's sharing language the same as its language: ar_SA, not en_US?
- Checks your page
- Reads:HTML
- 1 rule
- Last updated
What we keep
The result appears here
Enter your page’s address and press “Check the page”. This is what the tool runs on it:
- Sharing language does not match the page's languagenot started
What it checks
- That the language of
og:localeis the language of<html lang>: an Arabic page withog:localeen_US, the default of many themes and plugins, is flagged. - That the locale is written with an underscore (
ar_SA), not a hyphen (ar-SA). - A page without a
langor without anog:localehas nothing to compare and is not judged: the sharing-tags and language checks cover those.
Example
<!doctype html> <html lang="ar" dir="rtl"> <head> <meta charset="utf-8"> <meta property="og:locale" content="en_US"> </head> <body> <h1>قهوة عربية بالهيل</h1> </body> </html>
<!doctype html> <html lang="ar" dir="rtl"> <head> <meta charset="utf-8"> <meta property="og:locale" content="ar_SA"> </head> <body> <h1>قهوة عربية بالهيل</h1> </body> </html>
How to fix
Set the locale to the page's language:
- Choose the territory your readers are in (
ar_SA,ar_AE,ar_EG…) orar_AR, the general Arabic locale. - In WordPress, set the site's language to Arabic: the SEO plugin writes the tag from it. On a platform, set the store's language.
- List a translation with
og:locale:alternate. - Check the sharing preview after the change: apps may keep an older copy.
<html lang="ar" dir="rtl">
<meta property="og:locale" content="ar_SA">FAQ
No. It is for the apps that show a shared link: Facebook, WhatsApp and others. It affects how they label and offer the page, not how Google ranks it.
It is the general Arabic locale that Facebook documents. A territory (ar_SA) is also accepted. Choose either and keep it the same across the site.
No: the hreflang checkers do. This one compares only og:locale with lang.
What this tool runs
- Sharing language does not match the page's languageminor
og-locale-mismatch
How we measure
The check reads <html lang> and the page's og:locale, takes the language part of each (before a hyphen or an underscore, lower case) and compares them, and looks for a hyphen in the locale. Open Graph's locale format is the one its documentation gives.