- heuristic
- language_primary
- family
- identity.locale
- severity
- warn
- reads
- vectors.navigator.language, vectors.navigator.languages
- reader
- readIdentity()
- since
- ruleset r5
A primary language that is not in the list
Raised when navigator.languages is non-empty and its first entry does not equal navigator.language.
If you set a browser language and only half of it took, this row says so within a second. Two accessors on one setting are reporting different values, and the plan prints both of them.
What language_primary reads
The relationship is specified: `navigator.language` returns the first element of `navigator.languages`. A browser where they differ has had one of them replaced, and the replacement did not know about the other.
This is a small rule with a large hit rate against naive spoofing, because language overrides are usually applied to whichever property the tool's author remembered.
It prints both values. `en-US` against `[de-DE, en]` is a complete argument on its own.
Who reads this signal
The `Accept-Language` request header carries this too, so a server can compare its own header against what the page reports — a comparison this site cannot perform, because it does not send your reading anywhere to be compared.
In our correspondence index this heuristic is listed alongside Imperva / Incapsula . That correspondence is our reading of which products have access to this class of signal. It is not a claim that any of them checks this, and no test against any of them has been run.
When language_primary fires on an ordinary browser
None we can construct on an unmodified browser.
What a clean reading looks like
Clean is agreement, which an unmodified browser produces without trying. This rule sits in the very small group whose failure mode we cannot construct honestly: if it raises, something wrote one of the two values, and the only open question is what.
What actually moves language_primary
Setting the language list once and deriving the primary from it.
What changing this flag does to the plan
This row is the fastest way to grade a locale change. If you set a language and only one of the two surfaces moved, the diff shows one modified value and one raised rule in the same plan, and you know within a second which half your tool touched. Fix the source, run again, and both should move together with the row folding itself away.
Questions about language_primary
What is the difference between navigator.language and navigator.languages?
The plural one is the ordered list of the user's preferred languages; the singular one is defined as its first element. They are one setting with two accessors, which is why a disagreement is a rewrite rather than a preference.
Does changing browser language change the Accept-Language header?
It should, because the header carries the same preference list: the server ends up holding one copy of your preference and the page holds another. Whether those two copies agree is a comparison only the server can run, and this page never sends anything anywhere, so it is one of the limits listed on the method page.
How should I set a browser language without tripping this?
Set the list once, at the source, and let the primary be derived from it. Anything that writes one property directly has to write the other in the same operation, and tools that do that reliably are tools that changed the setting rather than the surface.
Read next
Change what this row says
Locale is three settings in three unrelated places and the failure is always the same: one of them moved. A profile that carries language, region and time zone as one object and applies them before launch does not have a first-and-list to keep in sync. That is how Donut Browser handles it, and its launch gate checks the result against the proxy exit before the window opens.
curl -fsSL https://donutbrowser.com/install.sh | sh
To see this heuristic's reading for your own browser, run the plan. Nothing on this page has read anything about you.