In short
Semrush flags "Issues with hreflang values" when a hreflang attribute doesn't use a valid code: an ISO 639-1 language code, optionally followed by an ISO 3166-1 alpha-2 region code. Invalid annotations are ignored. Fix the codes in your templates or plugin settings.
Hreflang only works if search engines recognize the codes, and a few common codes are wrong.
Format
language or language-REGION, for example en, en-US, fr-CA. Use x-default for the fallback page. The language always comes first; a region alone isn't allowed.
Common mistakes
| Wrong | Right | Why |
|---|---|---|
en-UK |
en-GB |
The ISO country code for the UK is GB |
uk (meaning English for the UK) |
en-GB |
uk is the language code for Ukrainian |
US |
en-US |
Region-only codes are invalid |
en_US |
en-US |
Use a hyphen |
jp |
ja |
Japanese is ja; JP is the country |
cn |
zh-CN |
Chinese is zh |
How to fix it
WordPress: check the language settings in WPML, Polylang or TranslatePress. Shopify: Markets and languages generate codes automatically; check custom hreflang in the theme. Webflow: Localization settings. Wix: Multilingual settings. Custom builds: keep codes in one config list and validate them.
This guide isn't affiliated with or endorsed by Semrush.
Related issues
Sources and references
Semrush Knowledge Base, What Issues Can Site Audit Identify?
Google Search Central, Tell Google about localized versions of your page

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.



