activeadmin_addons
activeadmin_addons copied to clipboard
V2 slim-select I18n
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:
- searchText - is a string value that will show in the event there are no results. Default is 'No Results'.
- searchingText - is a string value that will show during an fetch search request. Default is 'Searching...'.
- searchPlaceholder - is a string value that will set the value of the input search placeholder text. Default is 'Search'.
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.