Open everflux opened 9 years ago
I got it to work like this (replace the german localization with anything you like):
<input type="text"
pick-a-date="date"
placeholder="Bitte ein Datum auswählen"
pick-a-date-options="{
monthsFull: [ 'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember' ],
monthsShort: [ 'Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez' ],
weekdaysFull: [ 'Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag' ],
weekdaysShort: [ 'So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa' ],
today: 'Heute',
clear: 'Löschen',
firstDay: 1,
format: 'dddd, dd. mmmm yyyy',
formatSubmit: 'yyyy/mm/dd'
}"/>
<input type="text" pick-a-date="dpOpts" />
$scope.dpOpts = angular.extend({},/*some global options,localization options ....*/,/*custom options*/);
It seems it is not possible to configure the locale for displaying the month and other labels. I checked the guide http://amsul.ca/pickadate.js/date.htm#translations but it did not work with the angular version.