Pickadate Angular - Translation

2

I'm using the Angled pickadate only that it is in English, I need to leave it in Portuguese, could anyone help? Here is the code:

 $('.datepicker').pickadate({
     selectMonths: true, 
     selectYears: 15,
     language: 'pt-br'
  });

I put language, but it does not work.

<uib-datepicker ng-model="dt" class="well-sm no_right" datepicker-options="inlineOptions" style="float:left; width: 100%;"></uib-datepicker>

Only codes I use to load the calendar.

Calendar used: link

    
asked by anonymous 15.04.2016 / 19:44

2 answers

0

To translate, I used the locale pt-br of Angular itself, follow link for visualization:

link

    
23.05.2016 / 16:36
1

By default, Angular supports locale en_US. For other formatting you need to add specific .js to the country, so you just need to download the file containing the translations of Datepicker.

Here is an example I made of Plunker . In the example I added in the header of the html the script that contains the translation of the calendar and the Angular made the change of the language.

You can find the .js file containing the Datepicker translation in this repository of GitHub

    
15.04.2016 / 19:56