Reputation: 953
I wan't to add language selection to choose between original (English) and my native language (latvian). I followed this hint
There are written that I have to copy lib/active_admin/locales/en.yml to config/locales, but I can't find that en.yml file. I searched over all my project. I have used this command rails generate active_admin:assets
. Also tried to download it from Github, but without success, there is no such folder locales. So I am stuck. Any suggestions ?
Thanks
Upvotes: 1
Views: 5799
Reputation: 14943
Execute:
$ bundle show activeadmin
Once you know where the Gem is installed, you'll find all the locales in a path like this one:
...gems/active_admin-e7ef9a8f3e0e/config/locales/
Upvotes: 1
Reputation: 10592
The file you're looking for is here
https://github.com/gregbell/active_admin/tree/master/config/locales
I think this how to is outdated.
Upvotes: 4