nginx_accept_language_module
nginx_accept_language_module copied to clipboard
Parse the Accept-Language header and sets a variable to a language you support that your user can understand
- [x] Compiles - [x] Tested - [x] Squashed
For some major languages, 2-letter code is inadequate/insufficient. Consider the Chinese language, which has 2 scripts, simplified and traditional. Those would be described as 5-character locale code zh-cn, zh-sg (simplified)...
Does this module also have a way to add ", Accept-Language" to the Vary header -- or is there some good way to do this on nginx generally?
A handy option, besides checking the accept language header, would be also to check an optional cookie value for a language code as well. Maybe the following optional config statement:...