Currently ngx-bootstrap has its own locales for formatting dates, while angular already provides them.
With the current implementation, to configure locales for both ngx-bootstrap and Angular, these are the required steps:
Load Angular locales with registerLocaleData
Load ngx-bootstrap locales with defineLocale
Configure LOCALE_ID for Angular
Configre BsLocaleService for setting the ngx-bootstrap locale
You have also to mantain a lot of custom locales in the repository. I think that this is an not useful duplication, there is a reason to use custom locales?
Bug description or feature request:
Currently ngx-bootstrap has its own locales for formatting dates, while angular already provides them.
With the current implementation, to configure locales for both ngx-bootstrap and Angular, these are the required steps:
registerLocaleData
defineLocale
LOCALE_ID
for AngularBsLocaleService
for setting the ngx-bootstrap localeYou have also to mantain a lot of custom locales in the repository. I think that this is an not useful duplication, there is a reason to use custom locales?