Hello,
I am using the AUI date picker for a web page of my jira plugin
There I have two input fields for dates that I am using the date picker for, however when the page is displayed in German I also want the date picker to use German month names and short day names.
However using the
'languageCode': 'de'
option on initialization of the date picker still defaults the language to English
here is how I initialize the date picker during the AJS.toInit() function
var $datePickerStart = AJS.$("#vacation-date-picker-start");
var $datePickerEnd = AJS.$("#vacation-date-picker-end");
var datePickerOptions = {
'overrideBrowserDefault': true,
'dateFormat': AJS.I18n.getText('vacation.planner.page.date.picker.date.format'),
'firstDay': 1,
'languageCode': 'de'
};
$datePickerStart.datePicker(datePickerOptions);
$datePickerEnd.datePicker(datePickerOptions);
I also tried the other option of setting the lang attribute of the <html> tag to "de" but this also does nothing.
I am currently testing this on a local Jira instance that installs with the SDK and the jira version is
v7.11.2#711002-sha1:fdc329d
and the AJS version is
7.8.0