Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rich overriding i18n default_locale #156

Open
rwillrich opened this issue Jun 3, 2014 · 9 comments
Open

Rich overriding i18n default_locale #156

rwillrich opened this issue Jun 3, 2014 · 9 comments

Comments

@rwillrich
Copy link

I installed Rich alongside ActiveAdmin. My default locale is set to pt-BR in config/application.rb file:

# config/application.rb
config.i18n.default_locale = :'pt-BR'

Before I try to install Rich, the translations were working as usual, but after the installation the default_locale seems to be overridden to en. Is there any chance that Rich or some of its dependencies doing this? How can I resolve this?

@rwillrich
Copy link
Author

It works if I set config.i18n.locale = :'pt-BR' in config/application.rb right after config.i18n.default_locale = :'pt-BR' line. Still I'm not sure why is I18n.locale being overridden at application initialization...

@leofrozenyogurt
Copy link

Same here my Rich is in russian right now

@renews
Copy link
Contributor

renews commented Jun 22, 2014

Strange since we dont set locale anywhere on the gem. We only use the one set on the config/application.rb of each app. @leofrozenyogurt i just made a small correction on the russian translation, check it out.

@rwillrich
Copy link
Author

Couldn't it be a problem on a Rich dependency?

@leofrozenyogurt
Copy link

Ok just updated the gem and still the same issue

see attached
screen shot 2014-06-23 at 2 19 38 pm

screen shot 2014-06-23 at 2 19 30 pm

@renews
Copy link
Contributor

renews commented Jun 23, 2014

@leofrozenyogurt That's odd, the files are correct did you restart the server?
Can you provide me anymore info?

@renews
Copy link
Contributor

renews commented Jun 23, 2014

@rwillrich try using config.i18n.default_locale = 'pt-BR' notice that is different from the one you using.

@leofrozenyogurt
Copy link

did this
config.i18n.default_locale = :en

and it fixed it ; but clearly there is still something wrong

@renews
Copy link
Contributor

renews commented Jun 24, 2014

@leofrozenyogurt If you can, pls debug it a little more and check what can it be? thx mate!

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

No branches or pull requests

3 participants