og.locale.missing
A translated page has to say which locale it is in
warningper pagevendor-spec
Why it matters
The protocol fills the gap for you: with no og:locale, the page is en_US. A translated site that omits the tag has not stayed silent about its language — it has told every consumer that all six translations are American English.
What the finding looks like
The message goflag prints, with example values substituted.
warn og.locale.missing Page declares hreflang alternates (en, es, fr) but no og:locale; the protocol default en_US applies instead.
Emit the locale in the page's own metadata
Written for the Next.js App Router. The finding is correct on any stack; only the remedy assumes one.
// app/[locale]/…/page.tsx
export const metadata = {
openGraph: { locale: "fr_FR", alternateLocale: ["en_US", "es_ES"] },
};Says who?
This rule is vendor-spec, and it cites the document below. Nothing here is goflag’s opinion of what a good page looks like — if you disagree with a finding, this is what you are disagreeing with.
- The Open Graph protocol
ogp.me · vendor-spec