and Open Graph tags side by side">
The hyphen‑based lang attribute contrasts with the underscore‑based og:locale, highlighting the standards clash.
*Terence Eden’s Dec 1, 2026 post exposes a hidden clash between HTML language tags and Open Graph locales. The underscore in og:locale isn’t a typo—it’s a legacy from POSIX standards. The split forces developers to juggle two incompatible conventions.*
On December 1, 2026, web developer Terence Eden posted a deep dive into a long‑standing inconsistency that haunts HTML authors. The tag’s lang attribute demands a BCP 47 tag such as “en‑GB”, yet the Open Graph meta tag og:locale routinely shows “en_GB”. The discrepancy is more than cosmetic; it reflects divergent standards, a dead‑ended protocol, and a legacy from POSIX that still shapes how social platforms render locale‑specific data.
Eden traces the origin to the Open Graph Protocol, a Facebook‑born specification that never received a formal standards process. Facebook’s recent GitHub activity merely adds a proposed tag, while its discussion forums are littered with spam. The only clue to the underscore choice lives in a pull request that points to an obsolete Facebook locales page, itself a relic of ISO/IEC 15897’s POSIX locale format. The result: developers juggle two parallel systems for language and locale without clear guidance.
Eden points out that the Open Graph Protocol adopts the locale format defined by the POSIX standard, which ISO/IEC 15897 codified. That specification uses an underscore to separate language and territory, e.g., en_GB, and predates the BCP 47 requirement for hyphens. The choice was never re‑engineered when Facebook built OGP; instead, it inherited the older convention. No official Facebook rationale appears in the repo history, only a pull request that references an obsolete locales page. The result is a systematic mismatch: HTML expects hyphens, while OGP expects underscores, creating confusion for anyone stitching together meta tags.
The lang attribute must contain a valid BCP 47 language tag, which permits only letters, numbers and hyphens. An example is en-GB, which signals British English and nothing else. A locale, by contrast, bundles language, territory and code‑set information. IBM defines a locale as the combination that determines collation, case conversion, date‑time formats, monetary symbols and numeric representation. Thus en_GB conveys not just the language but also regional conventions such as whether 10/08/12 means October 8 or August 10. The distinction matters when content is shared on social platforms that rely on og:locale to render locale‑specific data.
Eden describes OGP development as dead. Facebook, the protocol’s creator, recently reopened its GitHub repository, but only to add a proposed tag. The discussion forum is described as “full of spam,” and there is no documented history or rationale for the existing choices. The only trace of an explanation for the underscore lives in a pull request that points to a now‑removed Facebook locales page. Without a living standard or active stewardship, OGP remains a relic that developers must accommodate without official guidance.
OGP defines a payment:currency property that expects an ISO 4217 code, but it does not prescribe formatting for amounts. Eden notes that locale conventions dictate thousand separators and decimal marks, which differ across regions—e.g., 5,99 versus 5.99. While OGP’s date field already uses ISO 8601, numeric formatting could benefit from locale awareness. In practice, a page could render “5,99” for a French audience and “5.99” for an American one if it consulted the og:locale value. The potential is real, yet the specification offers no built‑in mechanism, leaving developers to implement custom logic if they wish to leverage locale‑specific formatting.
It follows the POSIX‑standardised locale format defined in ISO/IEC 15897, which uses an underscore between language and territory.
A language tag (e.g., en-GB) identifies only the language per BCP 47, while a locale (e.g., en_GB) adds territory and code‑set information that governs date, number, and currency conventions.
Development is dead; Facebook only reopened its GitHub repo to add a proposed tag, and the discussion forum is filled with spam, showing no active stewardship.
Eden’s investigation lays bare a protocol that mixes standards without reconciliation. The underscore in og:locale is a vestige of POSIX, while HTML’s lang attribute follows BCP 47. Without an active standards body, the split persists, forcing developers to write duplicate tags and risk mismatched metadata. A sensible next step would be for Facebook to deprecate og:locale in favor of the lang attribute on specific meta elements, aligning web conventions and eliminating needless confusion.
Sources: [Hacker News – HTML esoterica – en-GB vs. en_GB]