Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Better support of Active Language via Browser

Started by Muut Archive 10 years ago · 1 replies · 353 views
10 years ago

The Active Language via Browser section of Learn GRAV https://learn.getgrav.org/content/multi-language#active-language-via-browser explains that a language of a web page could be selected by the Accept-Language header of http. But this requires to support any variant of this header by corresponding pages. Example: one must create page variants for English in UK: en-GB, in the US: en-US, in Australia en-AU. This comes from installing browsers on devices with local settings.
A great GRAV feature would be to trim this down: if en-US is in Accept-Language then check first if there is an en-US page, if not test if there is an en page, if not show the default language.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1357 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2955 9 years ago
Archive · by Muut Archive, 9 years ago
3 1121 9 years ago