Checks · hreflang
Invalid hreflang Value
Error hreflang.invalid_lang
What it means
The hreflang value is not a valid language code with an optional script or region. Invalid values are ignored entirely.
How to fix it
Use an ISO 639-1 language code, optionally with an ISO 3166-1 region: en, en-GB, zh-Hant-TW. Note the separator is a hyphen, and the region is a country, so it is en-GB rather than en_UK.
Where to find it in Truelint
Open the Issues pane on the right of the workspace and select Invalid hreflang Value. The grid filters to every affected URL and the detail pane shows the specific finding for each. Export the list with Export → Current view, or from the API:
GET /api/v1/crawls/{handle}/issues/hreflang.invalid_lang