I'm using Active Admin addons gem to create pretty tags for my enums. https://github.com/platanus/activeadmin_addons
In the Order model I have:
enum status: %i[pending not_started in_progress completed]
And in the ActiveAdmin model I have:
tag_column(:status, class: :colored_status)
However, I can't find anyway to translate the status to other language. I'm so over this that the solution doesn't even have to involve locales. I just want to change the tag label to something else.
I figured out I could do the following to change the text of the tag, but now the style is gone:
tag_column(:status, class: :status) do |delivery|
I18n.t("activerecord.enums.delivery.statuses.#{delivery.status}")
end
This approach is also not the best because I have to translate it everywhere in the app.