Help / Orbit Checks / On-page

hreflang with an invalid language code

WarningOn-pageUpdated Dec 2, 2026

hreflang tags whose language code isn't in the format Google expects.

Why it matters

hreflang needs an ISO language code, optionally with a region. Codes like "english" or "en_US" are ignored.

How Orbit decides

A page is listed when any of its hreflang codes isn't one of:

  • a 2 or 3 letter language code, like en or fil
  • optionally followed by a script, like zh-Hant
  • optionally followed by a 2 letter region or 3 digit area, like en-US or es-419
  • or x-default

How to fix it

Fix the codes to the ISO format, with a hyphen, not an underscore: en-US, not en_US.