How do I translate the datepicker?
up vote
0
down vote
favorite
I am using angular2-datepicker.I am trying to translate the year and days which shown in the popup.Can anyone help me to sort this out?

.html
<div>
<my-date-picker name="startdate" [options]="startDateOptions" placeholder="
{{'SELECT_START_DATE'|translate}}" (dateChanged)="onStartDateChanged($event)" required></my-date-picker>
</div>
.ts
public startDateOptions: IMyDpOptions = {
dateFormat: 'dd/mm/yyyy',
editableDateField: false,
openSelectorOnInputClick: true,
firstDayOfWeek: 'su',
satHighlight: true,
selectionTxtFontSize: '13px',
height: '26px',
disableSince: this.getCurrentDate()
};
public endDateOptions: IMyDpOptions = this.startDateOptions;
angular datepicker angular-translate angular4-forms
|
show 7 more comments
up vote
0
down vote
favorite
I am using angular2-datepicker.I am trying to translate the year and days which shown in the popup.Can anyone help me to sort this out?

.html
<div>
<my-date-picker name="startdate" [options]="startDateOptions" placeholder="
{{'SELECT_START_DATE'|translate}}" (dateChanged)="onStartDateChanged($event)" required></my-date-picker>
</div>
.ts
public startDateOptions: IMyDpOptions = {
dateFormat: 'dd/mm/yyyy',
editableDateField: false,
openSelectorOnInputClick: true,
firstDayOfWeek: 'su',
satHighlight: true,
selectionTxtFontSize: '13px',
height: '26px',
disableSince: this.getCurrentDate()
};
public endDateOptions: IMyDpOptions = this.startDateOptions;
angular datepicker angular-translate angular4-forms
translate the year and dates? what do you mean ?
– AIqbalRaj
Nov 8 at 10:25
The above image shows the date picker.I want to translate the month (for eg nov into other language), day and the text today.
– ancy
Nov 8 at 10:31
Did you usemonthLabels?
– Omurbek Kadyrbekov
Nov 8 at 10:33
No.By default the monthlabel is shown
– ancy
Nov 8 at 10:34
1
ex: monthLabels: { 1: 'First month', 2: 'second month', ... , 12: 'Last month' }
– Omurbek Kadyrbekov
Nov 8 at 10:36
|
show 7 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am using angular2-datepicker.I am trying to translate the year and days which shown in the popup.Can anyone help me to sort this out?

.html
<div>
<my-date-picker name="startdate" [options]="startDateOptions" placeholder="
{{'SELECT_START_DATE'|translate}}" (dateChanged)="onStartDateChanged($event)" required></my-date-picker>
</div>
.ts
public startDateOptions: IMyDpOptions = {
dateFormat: 'dd/mm/yyyy',
editableDateField: false,
openSelectorOnInputClick: true,
firstDayOfWeek: 'su',
satHighlight: true,
selectionTxtFontSize: '13px',
height: '26px',
disableSince: this.getCurrentDate()
};
public endDateOptions: IMyDpOptions = this.startDateOptions;
angular datepicker angular-translate angular4-forms
I am using angular2-datepicker.I am trying to translate the year and days which shown in the popup.Can anyone help me to sort this out?

.html
<div>
<my-date-picker name="startdate" [options]="startDateOptions" placeholder="
{{'SELECT_START_DATE'|translate}}" (dateChanged)="onStartDateChanged($event)" required></my-date-picker>
</div>
.ts
public startDateOptions: IMyDpOptions = {
dateFormat: 'dd/mm/yyyy',
editableDateField: false,
openSelectorOnInputClick: true,
firstDayOfWeek: 'su',
satHighlight: true,
selectionTxtFontSize: '13px',
height: '26px',
disableSince: this.getCurrentDate()
};
public endDateOptions: IMyDpOptions = this.startDateOptions;
angular datepicker angular-translate angular4-forms
angular datepicker angular-translate angular4-forms
edited Nov 8 at 10:29
asked Nov 8 at 10:13
ancy
406
406
translate the year and dates? what do you mean ?
– AIqbalRaj
Nov 8 at 10:25
The above image shows the date picker.I want to translate the month (for eg nov into other language), day and the text today.
– ancy
Nov 8 at 10:31
Did you usemonthLabels?
– Omurbek Kadyrbekov
Nov 8 at 10:33
No.By default the monthlabel is shown
– ancy
Nov 8 at 10:34
1
ex: monthLabels: { 1: 'First month', 2: 'second month', ... , 12: 'Last month' }
– Omurbek Kadyrbekov
Nov 8 at 10:36
|
show 7 more comments
translate the year and dates? what do you mean ?
– AIqbalRaj
Nov 8 at 10:25
The above image shows the date picker.I want to translate the month (for eg nov into other language), day and the text today.
– ancy
Nov 8 at 10:31
Did you usemonthLabels?
– Omurbek Kadyrbekov
Nov 8 at 10:33
No.By default the monthlabel is shown
– ancy
Nov 8 at 10:34
1
ex: monthLabels: { 1: 'First month', 2: 'second month', ... , 12: 'Last month' }
– Omurbek Kadyrbekov
Nov 8 at 10:36
translate the year and dates? what do you mean ?
– AIqbalRaj
Nov 8 at 10:25
translate the year and dates? what do you mean ?
– AIqbalRaj
Nov 8 at 10:25
The above image shows the date picker.I want to translate the month (for eg nov into other language), day and the text today.
– ancy
Nov 8 at 10:31
The above image shows the date picker.I want to translate the month (for eg nov into other language), day and the text today.
– ancy
Nov 8 at 10:31
Did you use
monthLabels ?– Omurbek Kadyrbekov
Nov 8 at 10:33
Did you use
monthLabels ?– Omurbek Kadyrbekov
Nov 8 at 10:33
No.By default the monthlabel is shown
– ancy
Nov 8 at 10:34
No.By default the monthlabel is shown
– ancy
Nov 8 at 10:34
1
1
ex: monthLabels: { 1: 'First month', 2: 'second month', ... , 12: 'Last month' }
– Omurbek Kadyrbekov
Nov 8 at 10:36
ex: monthLabels: { 1: 'First month', 2: 'second month', ... , 12: 'Last month' }
– Omurbek Kadyrbekov
Nov 8 at 10:36
|
show 7 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
draft saved
draft discarded
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53205560%2fhow-do-i-translate-the-datepicker%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
translate the year and dates? what do you mean ?
– AIqbalRaj
Nov 8 at 10:25
The above image shows the date picker.I want to translate the month (for eg nov into other language), day and the text today.
– ancy
Nov 8 at 10:31
Did you use
monthLabels?– Omurbek Kadyrbekov
Nov 8 at 10:33
No.By default the monthlabel is shown
– ancy
Nov 8 at 10:34
1
ex: monthLabels: { 1: 'First month', 2: 'second month', ... , 12: 'Last month' }
– Omurbek Kadyrbekov
Nov 8 at 10:36