ruby on rails - I18n error in one file, but not another in same directory -


i have 2 lib classes in rails project. both print out error using same syntax

i18n.t('.config_error') 

one file succeeds, other file fails error:

i18n::invalidlocaledata: can not load translations  /home/hellebusch/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/locale/en.yml:  #<errno::enoent: no such file or directory> 

i cannot find answer issue. insight great.

i believe "." in i18n.t('.config_error') means i18n looking config_error key in namespace of resource being rendered. if rendering posts#show view, i18n looking in posts namespace - aka looking key nested under posts key.

does help?

posting classes/views call i18n.t('.config_error') helpful.


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -