I am developing a Rails application on the recommendation of the Rails Guides to create a tree of folders and files with translations. My folder tree looks like this:
|-defaults |---es.rb |---en.rb |-models |---book |-----es.rb |-----en.rb |-views |---defaults |-----es.rb |-----en.rb |---books |-----es.rb |-----en.rb |---users |-----es.rb |-----en.rb |---navigation |-----es.rb |-----en.rb
The content in config / locales / views / books / en.yml looks like this:
es: books: index: title: "Título"
A inside the application / views / books / template.html.erb template, like this (note the point):
<%= t '.title' %>
When I don't have a namespace, my translations in the views work fine, but with the “admin” namespace that I use in my backend, this does not work. Does anyone know what the problem is?
Jesus source share