locale fallback
kikito opened this issue · comments
Enrique García Cota commented
If a key does not exist, a fallback could be specified.
The ruby i18n gem fallbacks to the locale "parents" - if the locale is 'es_mx', for example, it will try to fallback to its 'parents' - 'es', on this case. I'm not sure that functionality is interesting enough, or whether we should use something a bit simpler - one fallback locale and that's it.
Enrique García Cota commented
This might come in handy: https://github.com/svenfuchs/i18n/blob/master/lib/i18n/locale/fallbacks.rb