kwi / i18n_auto_scoping

I18nAutoScoping lets you easily add auto-scope in your I18n translations for your Rails' views

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Always applies the auto-scope instead of falling over to specified key

phene opened this issue · comments

Let's say I have a app/views/foo/bar.html.haml and a key called "test". If I defined a root key called "test" and access it from bar.html.haml, it only looks at foo.bar.test and never 'test.' It would be great to fallback to a non-scoped translation if the scoped translation doesn't exist.

Hi Phene,

Thanks for the proposal but this will partially change the way the gem works, maybe we can implement that in another branch as you have done :)

Is there a reason that the existing behavior is more desirable?

Sorry for the late answer but I'm really busy currently !

Right now, I can't find any reason; you are right.
It's just that changing the behavior right now can affect current users.

Guillaume