Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/i18n/datepicker-ko.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ datepicker.regional.ko = {
dayNamesShort: [ "일","월","화","수","목","금","토" ],
dayNamesMin: [ "일","월","화","수","목","금","토" ],
weekHeader: "주",
dateFormat: "yy-mm-dd",
dateFormat: "yy. mm. dd.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The month and day should be single digit when possible. I'm not sure which form of the year we would use here. @rxaviers, do we display the medium or short date from CLDR?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @scottgonzalez,

Datepicker rewrite using Globalize 1.x uses {date: 'short'} https://github.com/jquery/jquery-ui/blob/datepicker-globalize-1.x/ui/calendar.js#L42.

For comparison:

Globalize('en').formatDate(new Date(), {date: 'short'})
// > '9/21/15'

Globalize('en').formatDate(new Date(), {date: 'medium'})
// > 'Sep 21, 2015'

Globalize('en').formatDate(new Date(), {date: 'long'})
// > 'September 21, 2015'

Globalize('en').formatDate(new Date(), {date: 'full'})
// > 'Monday, September 21, 2015'

Globalize('en').formatDate(new Date(), {skeleton: 'yMd'})
// > '9/21/2015'

Globalize('en').formatDate(new Date(2015,0,1), {skeleton: 'yMd'})
// > '1/1/2015'

Globalize('en').formatDate(new Date(2015,0,1), {skeleton: 'yMMdd'})
// > Should give you the above using padded months and days when the PR below is complete:
// https://github.com/jquery/globalize/pull/462

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please note (from the wiki): "Compared to master, the default date format is different, is that intended? Master has 4 digit years, rewrite only 2"

firstDay: 0,
isRTL: false,
showMonthAfterYear: true,
Expand Down