I updated active_admin to version 0.3.0 to get internationalization. But I have problems with that.
I have a pl.yml file updated with the activeadmin section that looks like this:
pl: active_admin: blank_slate: content: "Nie ma jeszcze rekordów." link: "Nowy" dashboard: "Dashboard2" view: "Podgląd"
This did not work, so I tried to add this code to my .rb application:
config.before_configuration do I18n.locale = :pl I18n.load_path += Dir[Rails.root.join('config', 'locales', '*', '.{rb,yml}')] I18n.reload! end
Now internationalization seems to work in a development environment, but I still have problems in other environments. I have a problem with the panel: key. Usually, in short, when I18n does not find the key, it puts the key: with a capital letter, in this example it will be "Dashboard". But in my case, I have something like this:
Development:

Production:

Does anyone have the same problem? Am I doing something wrong or is it an activeadmin error? Any solution?
Dawid woźniak
source share