DELAPARRA
Index
Color
NL
Category: HTTP headers

Accept-Language

Explained by Updated

What is Accept-Language?

Accept-Language: What human languages the client prefers, with weights. Used for content negotiation. Accept-Language lists the languages a browser user prefers, in order, with weights. nl-NL,nl;q=0.9,en;q=0.8 means Dutch first, then English. Browsers fill it in from the operating system or browser settings. It is a useful hint for a multilingual site, for example to suggest the Dutch version to a first-time visitor. It is a weak signal, though. Many people browse with an English system language while preferring content in their own language, or the other way round.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Accept-Language

What should you keep in mind with Accept-Language?

For that reason, avoid automatic redirects based only on this header. Search engines usually crawl without it, so they may never see your other language versions. A better pattern is a separate URL per language, such as /nl/, linked with hreflang tags, and a visible language switch. Let the header suggest, and let the visitor decide.

What does an example of Accept-Language look like?

Accept-Language: en-US,en;q=0.9,uk;q=0.8

At a glance

CategoryHTTP headers
Explained by
Updated

More HTTP headers terms

All terms starting with A

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.