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

I18n.backend translations not working #593

Closed
wuboy0307 opened this issue Apr 6, 2017 · 0 comments
Closed

I18n.backend translations not working #593

wuboy0307 opened this issue Apr 6, 2017 · 0 comments

Comments

@wuboy0307
Copy link
Contributor

I don't know why, but in my application, I18n.backend doesn't have translations methods.
I18n.backend is a "I18n::Backend::Chain" module which contains other I18n backends

#<I18n::Backend::Chain:0x007fa2631dc920
 @backends=
  [#<I18n::Backend::I18nDataBackend:0x007fa2631dc970>,
   #<I18n::Backend::Chain:0x007fa265a48300
    @backends=
     [#<I18n::Backend::I18nDataBackend:0x007fa265a48328>,
      #<I18n::Backend::Simple:0x007fa26333d418
       @initialized=true,
       @translations=.......

In my app, I can only read translations with "I18n.backend.backends[1].backends[1].send(:translations)"

Is that a bug or I forgot something?

wuboy0307 added a commit to wuboy0307/camaleon-cms that referenced this issue Jun 6, 2017
owen2345#593

Please help to fix, otherwise I18n_data will always be empty hash.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants