ghiscoding / Aurelia-Bootstrap-Plugins

Aurelia-Bootstrap-Plugins are Custom Elements to bridge with a set of 3rd party Bootstrap addons
https://ghiscoding.github.io/Aurelia-Bootstrap-Plugins
MIT License
45 stars 23 forks source link

abp-select I18N support? #80

Open kyttike opened 5 years ago

kyttike commented 5 years ago

Hi,

I was wondering if someone has already worked on this, but is there a good way to localize the select options?

Right now I am considering tracking locale changes from aurelia-i18n and generating the collection again. Or go the cheaper route and force refresh page when language is changed.

ghiscoding commented 5 years ago

I haven't used that yet but I'm certainly open to PR. I implemented I18n in another repo with another 3rd party lib and I was rebuilding the entire select. However bootstrap-select has ways to refresh the UI, so that might be better performance wise and if that works, it could potentially keep the user's selection.