Expand description
System locale discovery shared by HTTP and browser-facing JavaScript APIs.
Functions§
- accept_
language_ header - Builds a conservative
Accept-Languagevalue from the primary language. - preferred_
language - Returns the user’s primary language as a browser-compatible BCP 47 tag.