Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira AUI Date Picker ignores languageCode option

Eric Schneider
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 20, 2019

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

firefox_2019-02-20_10-14-36.png

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

0 answers

Suggest an answer

Log in or Sign up to answer