Neova고급 SEO 플랫폼

언어 선언이 서로 충돌함

Neova에서는 크롤링 자체에서 실행됩니다. 따로 설정할 것이 없습니다.

규칙 최종 검토: 2026년 10월 17일 · 가이드 업데이트: 2026년 9월 28일

HTML 표준은 lang과 xml:lang이 일치하도록 요구합니다. URL 자신의 hreflang이나 Content-Language와 다른 것은 어떤 표준도 어기지 않으며, 확인해 보라는 신호입니다.

해 볼 수 있는 조치

html lang, xml:lang, URL 자신의 hreflang, Content-Language 헤더를 같은 언어로 설정하세요.

Neova가 플래그를 지정하는 이유

  • HTML 표준은 lang과 xml:lang이 일치해야 한다고 요구하며, 이 부분은 실제 오류입니다.
  • html lang이 URL 자체의 hreflang이나 Content-Language와 다른 것은 표준 위반은 아니지만, 대개 템플릿이나 번역 플러그인이 그중 하나를 잘못 설정한 경우입니다.
  • 선언이 뒤섞이면 각 URL이 어떤 언어용인지 진단하기 어려워집니다.

출처

전체 가이드

이 부분은 현재 영어로만 제공됩니다.

Element Code: IN-032

TL;DR: A page can declare its language in four different places: the lang attribute, the Content-Language HTTP header, hreflang annotations, and the visible text itself. When those signals disagree, search engines fall back to guessing, hreflang clusters can quietly stop working, and users get served the wrong language version. The fix is boring and absolute: one language per URL, declared identically everywhere.
Check type
Indexation
Applies to
Multilingual sites
Severity
Medium to high
Detection
Crawler + header check
Fix effort
Low, usually template level

What This Issue Is

A conflicting language declaration means the machine readable signals about a page's language do not agree with each other, or with the language a human actually reads on the page. A classic real world example: a French product page whose template still ships <html lang="en">, whose server sends Content-Language: en-US globally, and whose hreflang annotation says fr-FR. Three signals, two languages, one confused crawler.

There are four places a language claim can live, and any two of them can disagree:

  • The lang attribute on the <html> element (plus xml:lang on legacy XHTML setups).
  • The Content-Language HTTP response header, or its meta http-equiv twin in the head.
  • The hreflang annotations pointing at the page, whether in the head, the XML Sitemap, or HTTP headers, including the required self referencing entry.
  • The visible content itself, which is the signal Google actually trusts most.

Why It Matters

Google has been clear in its multilingual site documentation and via John Mueller that it determines page language primarily from the visible content and does not rely on the lang attribute. So why care about conflicts at all? Three reasons, and they bite in different places.

First, hreflang is fragile and conflicts make it worse. Hreflang only holds together when every page in the cluster confirms its own role: correct self reference, valid ISO 639-1 language codes, return links intact. When the declared hreflang language does not match what the page detectably is, engines can ignore the annotation for that pair. The symptom is the familiar one: the English page ranking in France, the German page showing for Dutch users, and everyone blaming the wrong thing.

Second, not every consumer is Google. Bing weighs explicit signals like Content-Language and meta tags more than Google does. Translation features in browsers use lang to decide when to offer translation. Screen readers use it to pick the pronunciation engine, so a wrong lang makes your site literally unintelligible to some assistive tech users. That last one is an accessibility failure independent of any ranking effect.

Third, mixed signals usually indicate a broken template pipeline. Every time I find a conflicting declaration on an audit, there is a deeper cause behind it: a translation plugin bolted onto a theme that hardcodes English, a CDN injecting a global header, or an auto translation layer that swaps body text but not attributes. The conflict is the smoke, the pipeline is the fire.

ALIGNED (good) Page: French content every signal says fr lang="fr" Content-Language: fr hreflang="fr-fr" Visible text: French CONFLICTING (bad) Page: French content signals disagree, engine guesses lang="en" Content-Language: en-US hreflang="fr-fr" Visible text: French

The Four Signals, Side by Side

Signal Where It Lives Who Reads It Typical Failure
lang attribute <html lang="fr"> Screen readers, browsers, Bing; Google mostly ignores it Theme hardcodes en for all locales
Content-Language HTTP header or meta http-equiv Bing and other consumers; optional signal Server or CDN sends one global value for every locale
hreflang Head links, XML Sitemap, or HTTP header Google and Yandex for version selection Self reference missing or declaring a different language than the page
Visible content The rendered text itself Google's primary language detection input Mixed language pages: translated body, untranslated nav and boilerplate

How to Detect Conflicts

  1. Crawl with Screaming Frog. The hreflang tab flags missing self references, non 200 hreflang URLs, and unlinked cluster members. Add a custom extraction for the html lang attribute so you can put lang, hreflang, and URL locale side by side in one export. Sitebulb's international report does a similar cross check and calls out language mismatches directly.
  2. Check headers with curl. Run curl -sI https://example.com/fr/page/ and look for Content-Language. Do this per locale folder, because CDNs love to inject one global value.
  3. Compare against detected language. Screaming Frog can run language detection on page text. Any row where detected language, lang, and hreflang do not all match is a conflict to fix.
  4. Spot check mixed content. Open the worst templates and read them. If the nav, footer, and cookie banner are English on a Japanese page, engines see a diluted language signal no attribute can fix.

How to Fix It

Pick one language per URL and make every signal repeat it. Concretely: set lang dynamically from the locale in your CMS template, never hardcoded. Make the hreflang self reference match that value, using ISO 639-1 language codes with optional ISO 3166-1 Alpha 2 regions, like fr or fr-ca. For Content-Language, either configure the server to emit the correct per locale value or remove the header entirely, since it is optional and a wrong global header is worse than none. Then translate the boilerplate: navigation, footers, forms, cookie banners. Finally, re-crawl and confirm the conflict count is zero.

DO

  • Declare one language per URL, identically in every signal
  • Generate lang and hreflang from the same locale variable
  • Keep a valid hreflang self reference on every page
  • Translate boilerplate, not just body copy
  • Drop the Content-Language header if you cannot maintain it per locale
DON'T

  • Hardcode lang="en" in a template shared by all locales
  • Let a CDN inject one global Content-Language for every market
  • Use invented codes like en-UK or gb; it is en-gb
  • Point hreflang at redirected or noindexed URLs
  • Assume Google ignoring lang means nobody reads it

What Good Looks Like

A crawl export where every URL shows the same value in the lang attribute, the hreflang self reference, the header if present, and the detected content language. Zero mixed language templates. Users landing on the version they searched in, and no more support tickets from Quebec asking why they got the English site.

FAQ

Does Google Use the Lang Attribute at All?
Google's documentation on multilingual sites says it relies on visible content to determine language, and John Mueller has repeatedly said the lang attribute is not used for ranking. Keep it correct anyway: Bing, browsers, and screen readers all read it.
Is a Conflict a Penalty Risk?
No. There is no penalty here. The cost is lost precision: hreflang pairs getting ignored, wrong versions ranking in the wrong markets, and accessibility failures. Damage without a manual action is still damage.
Should I Remove the Content-Language Header?
If you can emit the correct value per locale, keep it. If your infrastructure sends one global value for everything, remove it. The header is optional, and a wrong declaration is the only bad option of the three.
What About Pages That Genuinely Mix Languages?
Set the page level lang to the dominant language and mark inline foreign passages with their own lang attribute on the wrapping element. For SEO, avoid half translated templates entirely: one language per URL is the rule worth enforcing.
Which Codes Are Valid in Hreflang?
ISO 639-1 for language, optionally followed by ISO 3166-1 Alpha 2 for region, like de, de-at, or es-mx. Region alone is invalid, and the most common typo in the wild is en-uk instead of en-gb.
Running a multilingual site and not sure your hreflang setup holds together?

An advanced audit maps every language signal on every template, finds the conflicts, and gives your developers an exact per locale fix list.

내 사이트에서 찾아보기

Neova는 크롤링할 때마다 이 점검과 다른 모든 점검을 실행하고, 수정 방법을 팀을 위한 티켓으로 작성합니다.

  • Mac, Windows, Linux용 데스크톱 앱
  • 출처가 함께 있는 696개 점검 전체
  • Search Console과 Analytics 4를 읽기 전용으로 연결
  • Jira, Linear, Asana로 티켓 보내기

Neova 다운로드 Desktop Free 플랜 또는 Solo 14일 무료, 카드 불필요.

글로벌 SEO 점검 전체 · 가이드 · 점검 라이브러리

작성: Neova Labs · 점검 라이브러리로 돌아가기