I changed the language of my datepicker but the message that appears is still in English. I know it is inside ngx-bootstrap / chronos / locale / locale.defaults.ts where it brings the following information
export declare const defaultInvalidDate = "Invalid date";
I would also like to change this message. Is there any information I have to add to the "input [bsConfig] =" ... Anyway, where can I change this message without moving the Node Modules folder? Thank you.
I finally managed to do it :
You can import your
LocaleData
object and the functiondefineLocale
:Then, in your constructor you can access every attributes of
enGbLocale
and modify it: