auto-web.http-request.lang
Parse a request to determine the language to display.
A default-be-strategy is provided, but you can also build your own by assembling cookies-lang, accepted-lang-request, tld-lang
accept-lang-str
(accept-lang-str http-request)
The accepted languageās string in a request: e.g: "en-US,en;q=0.9"
accepted-lang-request
(accepted-lang-request http-request possible-langs)
The language matching one possible-lang among query-langs
cookies-lang
(cookies-lang http-request)
Language defined in the cookies under the lang
key
default-be-strategy
(default-be-strategy http-request possible-langs)
For the backend, the language is coming from the cookie, or the language in the accepted languages
tld-lang
(tld-lang http-request)
The tld in the host of the http-request