3 ms·
WRT language selection and availability, I developed a small Rack gem `i18n_best_langs` that could be useful to web devs. https://github.com/gioele/rack-i18n_b
by gioele 13y ago
WRT language selection and availability, I developed a small Rack gem `i18n_best_langs` that could be useful to web devs.
https://github.com/gioele/rack-i18n_best_langs https://github.com/gioele/rack-i18n_best_langs
It picks up clues from various HTTP pieces (headers, URI) and generates a list of locales in order of possible user preference. It is then up to the web application to make good use of this list of preferences.
It is alpha quality but I would love some criticism about it from HN readers.