1 // moment.js locale configuration
2 // locale : korean (ko)
6 // - Kyungwook, Park : https://github.com/kyungw00k
7 // - Jeeeyul Lee <jeeeyul@gmail.com>
9 if (typeof define === 'function' && define.amd) {
10 define(['moment'], factory); // AMD
11 } else if (typeof exports === 'object') {
12 module.exports = factory(require('../moment')); // Node
14 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
17 return moment.defineLocale('ko', {
18 months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
19 monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
20 weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
21 weekdaysShort : '일_월_화_수_목_금_토'.split('_'),
22 weekdaysMin : '일_월_화_수_목_금_토'.split('_'),
28 LLL : 'YYYY년 MMMM D일 LT',
29 LLLL : 'YYYY년 MMMM D일 dddd LT'
31 meridiem : function (hour, minute, isUpper) {
32 return hour < 12 ? '오전' : '오후';
39 lastWeek : '지난주 dddd LT',
58 ordinalParse : /\d{1,2}일/,
60 meridiemParse : /(오전|오후)/,
61 isPM : function (token) {
62 return token === '오후';