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.
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.