creativetimofficial / ct-light-bootstrap-dashboard-pro-angular

7 stars 2 forks source link

How to add Brazilian language ('pt-br') ? #20

Closed IomarSantos closed 6 years ago

IomarSantos commented 6 years ago

$('.datepicker').datetimepicker({ format: 'MM/DD/YYYY', //use this format if you want the 12hours timpiecker with AM/PM toggle locale: 'pt-br', icons: { time: "fa fa-clock-o", date: "fa fa-calendar", up: "fa fa-chevron-up", down: "fa fa-chevron-down", previous: 'fa fa-chevron-left', next: 'fa fa-chevron-right', today: 'fa fa-screenshot', clear: 'fa fa-trash', close: 'fa fa-remove' } });

chelaruc commented 6 years ago

Hi @IomarSantos,

Thank you for using our product. You need to add this locale: 'br', and in the scripts from angular-cli.json file add this: "../node_modules/moment/locale/br.js",

All the best, Ciprian

IomarSantos commented 6 years ago

@chelaruc Thank