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
Post a Comment