The following is written on the Rails Guides:
For example, your config / locales directory could look 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 It can be used for example. I couldn’t find out what I’m doing.
But nothing is said here about how to store flash message translation files (they are in controllers, and there is not even a folder like this).
Hence the question: how to organize the storage of the translation of flash messages? There is no sense to store in translations for presentations, because the same flash can appear on different pages. Maybe you should keep them in the defaults folder? But I do not think this is the most rational decision, because flash'y themselves are not something "default". Maybe it is worth making a separate controllers folder and storing in it? But then what should be the structure of the file itself?
Something like this?
en: activecontroller: users: ... And anyway, will the rails then find these files, if you contact the controller as t('.myflash) ?