Rack middleware for switching language
Langur is a Ruby gem that's not really intended to be useful to anyone but me.
Get the code from https://github.com/50pop/langur.
Set env['lang'] by these methods, in order:
- http://somesite.com/some/page?lang=fr query string
- http://somesite.com/some/page/fr code at end of URL
- cookie['lang'] = 'fr'
- Browser setting HTTP_ACCEPT_LANGUAGE = 'fr,zh,en'