platanus / activeadmin_addons

Extends ActiveAdmin to enable a set of great optional UX improving add-ons
MIT License
752 stars 282 forks source link

V2 slim-select I18n #482

Open andreacasarin opened 10 months ago

andreacasarin commented 10 months ago

Hello and thanks for the great work!

I am trying to use the new slim-select for a project, which is working just fine feature wise, however being a non-english project, I'd need to be able translate the placeholders.

AFAIK they the empty option placeholder seems to be hardcoded here: https://github.com/platanus/activeadmin_addons/blob/cf71013d7423d4ba7a5f721acf35731fbcd37f37/app/javascript/activeadmin_addons/inputs/slim-select.js#L27

The search placeholders seems to be using the default instead, as pointed out here:

Is there any simple way to change these values? Would it be possibile to add come configuration just like we have for the date picker?

Thank you again, Andrea.