Page MenuHomePhabricator

hreflang: support region-neutral language codes
Open, Needs TriagePublicFeature

Description

The hreflang_* attribute currently accepts only some region-specific locale codes. However, according to Google's specifications, the following should also be supported:

  • Region-neutral language codes such as es, en, de (ISO 639-1)
  • x-default, which designates a fallback page for users whose language does not match any localized version