fnando/i18n-js — pull request #85 by tomhughes (2012-02-25 13:16:12+00:00)
Title: Some improvements to language fallback

These changes improve support for fallbacks as follows:

* Fallback properly when the request locale does exist at all
* Try more generic locale before the default locale (eg. de-DE -> de -> en)
* Allow custom fallback rules for special cases (eg. no -> nb)

This is all patterned on how I18n::Backend::Fallbacks class works in rails i18n.