Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

no language fallback if :default is a hash #137

Closed
bughit opened this Issue Jan 18, 2012 · 4 comments

Comments

Projects
None yet
5 participants

bughit commented Jan 18, 2012

require "i18n"
require "i18n/backend/fallbacks"
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
I18n.default_locale = "en-au"
I18n.backend.store_translations :en, foo: {a: "a"}
p I18n.t("foo", default: {})

Since translate can retrieve whole sub-trees not just strings, would it not make sense for fallback to work as with strings?
The code comments says that only symbol defaults take precedence over fallback locales

This is actually affecting rails/rails#2802

Collaborator

tigrish commented Jul 6, 2012

Related to #144 and #120

@atzorvas atzorvas pushed a commit to e-travel/i18n that referenced this issue Jan 12, 2016

@kuroda kuroda Merge pull request #137 from rahmat-budiharso/master
fix locale for Indonesian
69df4ac
Collaborator

radar commented Nov 3, 2016

I am unable to reproduce this issue on i18n 0.7.0. Thanks for the reproduction steps!

@radar radar closed this Nov 3, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment