accepted languages
This block is part of the http connection group and was last modified in core v13.0.2.
accepted languages v13.0.2 Returns the current HTTP accepted languages.
In pins 1
- connection required
httpconnection
Out pins 1
- languages
array
Splits the Accept-Language header on commas and outputs the raw parts as an array : quality weights are kept verbatim, e.g. "nl-NL,nl;q=0.9,en;q=0.8" -> ["nl-NL", "nl;q=0.9", "en;q=0.8"]. Defaults to ["en"] when the header is missing; outputs nothing when there is no request.
A typical wiring for accepted languages: the languages out pin feeds length.
Version history
Introduced in v13.0.2.
Back to
http connection Return to the main group to view all sub-groups Back to http Return to the group to view all blocks within this group 