ruby on rails - Load en.yml before config.yml -


i work on ruby on rails application. reason need translate values config.yml file. here (simplified make short , readable):

foo:  bar: <%= i18n.t 'config.foo.bar' %> 

in en.yml:

--- en:   config:     foo:       bar: "translated bar" 

but when i'm trying start server, shows error message:

translation missing: en.config.foo.bar 

i guess happens because config.yml loads before of files translations (including en.yml). have alot of translations in on places , work fine. ideas how can force en.yml load before config.yml? thanks.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -