Build the og:locale + og:locale:alternate[] block (newline-joined <meta> tags). Open Graph requires the og:locale for the page itself and one og:locale:alternate for every other supported language โ defining the alternates lets Facebook / LinkedIn pick the best-fit locale at preview time.
Pure โ no template literal interpolation beyond the static OG-locale map, so the output is deterministic across runs.
Build the
og:locale+og:locale:alternate[]block (newline-joined<meta>tags). Open Graph requires theog:localefor the page itself and oneog:locale:alternatefor every other supported language โ defining the alternates lets Facebook / LinkedIn pick the best-fit locale at preview time.Pure โ no template literal interpolation beyond the static OG-locale map, so the output is deterministic across runs.