ko.js (2839B)
1//! moment.js locale configuration 2//! locale : Korean [ko] 3//! author : Kyungwook, Park : https://github.com/kyungw00k 4//! author : Jeeeyul Lee <jeeeyul@gmail.com> 5 6;(function (global, factory) { 7 typeof exports === 'object' && typeof module !== 'undefined' 8 && typeof require === 'function' ? factory(require('../moment')) : 9 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 10 factory(global.moment) 11}(this, (function (moment) { 'use strict'; 12 13 //! moment.js locale configuration 14 15 var ko = moment.defineLocale('ko', { 16 months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), 17 monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split( 18 '_' 19 ), 20 weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'), 21 weekdaysShort: '일_월_화_수_목_금_토'.split('_'), 22 weekdaysMin: '일_월_화_수_목_금_토'.split('_'), 23 longDateFormat: { 24 LT: 'A h:mm', 25 LTS: 'A h:mm:ss', 26 L: 'YYYY.MM.DD.', 27 LL: 'YYYY년 MMMM D일', 28 LLL: 'YYYY년 MMMM D일 A h:mm', 29 LLLL: 'YYYY년 MMMM D일 dddd A h:mm', 30 l: 'YYYY.MM.DD.', 31 ll: 'YYYY년 MMMM D일', 32 lll: 'YYYY년 MMMM D일 A h:mm', 33 llll: 'YYYY년 MMMM D일 dddd A h:mm', 34 }, 35 calendar: { 36 sameDay: '오늘 LT', 37 nextDay: '내일 LT', 38 nextWeek: 'dddd LT', 39 lastDay: '어제 LT', 40 lastWeek: '지난주 dddd LT', 41 sameElse: 'L', 42 }, 43 relativeTime: { 44 future: '%s 후', 45 past: '%s 전', 46 s: '몇 초', 47 ss: '%d초', 48 m: '1분', 49 mm: '%d분', 50 h: '한 시간', 51 hh: '%d시간', 52 d: '하루', 53 dd: '%d일', 54 M: '한 달', 55 MM: '%d달', 56 y: '일 년', 57 yy: '%d년', 58 }, 59 dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/, 60 ordinal: function (number, period) { 61 switch (period) { 62 case 'd': 63 case 'D': 64 case 'DDD': 65 return number + '일'; 66 case 'M': 67 return number + '월'; 68 case 'w': 69 case 'W': 70 return number + '주'; 71 default: 72 return number; 73 } 74 }, 75 meridiemParse: /오전|오후/, 76 isPM: function (token) { 77 return token === '오후'; 78 }, 79 meridiem: function (hour, minute, isUpper) { 80 return hour < 12 ? '오전' : '오후'; 81 }, 82 }); 83 84 return ko; 85 86})));