Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not possible to localize the language #43

Open
everflux opened this issue Nov 30, 2014 · 2 comments
Open

Not possible to localize the language #43

everflux opened this issue Nov 30, 2014 · 2 comments

Comments

@everflux
Copy link

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.

@koop-bremen
Copy link

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'
}"/>

@hafeyang
Copy link

hafeyang commented Apr 2, 2015

<input type="text" pick-a-date="dpOpts" />
$scope.dpOpts = angular.extend({},/*some global options,localization options ....*/,/*custom options*/);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants