ActiveAdmin does not transfer model translations to the main menu

I have a strange error with ActiveAdmin 0.4.3 regarding menu translation. I have models.es.yml where I have all the ActiveRecord translations. It works great in actions, for example, “Announcement” is displayed as “Anuncio” in the “show” or “edit” view.

But the main menu still displays "Ad".

A stranger thing occurs when I edit the models.es.yml file (adding, for example, one space), and I reload the page in which the menu accepts translations, of course, I can not do this in the production process.

Any help on this?

+3
source share
1 answer

You can force a shortcut in the menu with the following procedure:

ActiveAdmin.register Ad do
    menu :label => "Anuncios"
end
0
source

All Articles