2016-02-05 15:42:48 -05:00
|
|
|
//! moment.js locale configuration
|
2020-11-10 20:34:26 -05:00
|
|
|
//! locale : Korean [ko]
|
|
|
|
//! author : Kyungwook, Park : https://github.com/kyungw00k
|
|
|
|
//! author : Jeeeyul Lee <jeeeyul@gmail.com>
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
|
|
;(function (global, factory) {
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
2017-04-20 00:24:20 -04:00
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
2016-02-05 15:42:48 -05:00
|
|
|
factory(global.moment)
|
2017-04-20 00:24:20 -04:00
|
|
|
}(this, (function (moment) { 'use strict';
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2020-11-10 20:34:26 -05:00
|
|
|
//! moment.js locale configuration
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
var ko = moment.defineLocale('ko', {
|
2020-11-10 20:34:26 -05:00
|
|
|
months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
|
|
|
|
monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(
|
|
|
|
'_'
|
|
|
|
),
|
|
|
|
weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
|
|
|
|
weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
|
|
|
|
weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
|
|
|
|
longDateFormat: {
|
|
|
|
LT: 'A h:mm',
|
|
|
|
LTS: 'A h:mm:ss',
|
|
|
|
L: 'YYYY.MM.DD.',
|
|
|
|
LL: 'YYYY년 MMMM D일',
|
|
|
|
LLL: 'YYYY년 MMMM D일 A h:mm',
|
|
|
|
LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
|
|
|
|
l: 'YYYY.MM.DD.',
|
|
|
|
ll: 'YYYY년 MMMM D일',
|
|
|
|
lll: 'YYYY년 MMMM D일 A h:mm',
|
|
|
|
llll: 'YYYY년 MMMM D일 dddd A h:mm',
|
2018-04-26 03:15:53 -04:00
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
calendar: {
|
|
|
|
sameDay: '오늘 LT',
|
|
|
|
nextDay: '내일 LT',
|
|
|
|
nextWeek: 'dddd LT',
|
|
|
|
lastDay: '어제 LT',
|
|
|
|
lastWeek: '지난주 dddd LT',
|
|
|
|
sameElse: 'L',
|
2018-04-26 03:15:53 -04:00
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
relativeTime: {
|
|
|
|
future: '%s 후',
|
|
|
|
past: '%s 전',
|
|
|
|
s: '몇 초',
|
|
|
|
ss: '%d초',
|
|
|
|
m: '1분',
|
|
|
|
mm: '%d분',
|
|
|
|
h: '한 시간',
|
|
|
|
hh: '%d시간',
|
|
|
|
d: '하루',
|
|
|
|
dd: '%d일',
|
|
|
|
M: '한 달',
|
|
|
|
MM: '%d달',
|
|
|
|
y: '일 년',
|
|
|
|
yy: '%d년',
|
2018-04-26 03:15:53 -04:00
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
|
|
|
|
ordinal: function (number, period) {
|
2018-04-26 03:15:53 -04:00
|
|
|
switch (period) {
|
|
|
|
case 'd':
|
|
|
|
case 'D':
|
|
|
|
case 'DDD':
|
|
|
|
return number + '일';
|
|
|
|
case 'M':
|
|
|
|
return number + '월';
|
|
|
|
case 'w':
|
|
|
|
case 'W':
|
|
|
|
return number + '주';
|
|
|
|
default:
|
|
|
|
return number;
|
|
|
|
}
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
meridiemParse: /오전|오후/,
|
|
|
|
isPM: function (token) {
|
2018-04-26 03:15:53 -04:00
|
|
|
return token === '오후';
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
meridiem: function (hour, minute, isUpper) {
|
2018-04-26 03:15:53 -04:00
|
|
|
return hour < 12 ? '오전' : '오후';
|
2020-11-10 20:34:26 -05:00
|
|
|
},
|
2018-04-26 03:15:53 -04:00
|
|
|
});
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
return ko;
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
})));
|