ko.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. ;(function (global, factory) {
  6. typeof exports === 'object' && typeof module !== 'undefined'
  7. && typeof require === 'function' ? factory(require('../moment')) :
  8. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  9. factory(global.moment)
  10. }(this, function (moment) { 'use strict';
  11. var ko = moment.defineLocale('ko', {
  12. months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  13. monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  14. weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  15. weekdaysShort : '일_월_화_수_목_금_토'.split('_'),
  16. weekdaysMin : '일_월_화_수_목_금_토'.split('_'),
  17. longDateFormat : {
  18. LT : 'A h시 m분',
  19. LTS : 'A h시 m분 s초',
  20. L : 'YYYY.MM.DD',
  21. LL : 'YYYY년 MMMM D일',
  22. LLL : 'YYYY년 MMMM D일 A h시 m분',
  23. LLLL : 'YYYY년 MMMM D일 dddd A h시 m분'
  24. },
  25. calendar : {
  26. sameDay : '오늘 LT',
  27. nextDay : '내일 LT',
  28. nextWeek : 'dddd LT',
  29. lastDay : '어제 LT',
  30. lastWeek : '지난주 dddd LT',
  31. sameElse : 'L'
  32. },
  33. relativeTime : {
  34. future : '%s 후',
  35. past : '%s 전',
  36. s : '몇 초',
  37. ss : '%d초',
  38. m : '일분',
  39. mm : '%d분',
  40. h : '한 시간',
  41. hh : '%d시간',
  42. d : '하루',
  43. dd : '%d일',
  44. M : '한 달',
  45. MM : '%d달',
  46. y : '일 년',
  47. yy : '%d년'
  48. },
  49. ordinalParse : /\d{1,2}일/,
  50. ordinal : '%d일',
  51. meridiemParse : /오전|오후/,
  52. isPM : function (token) {
  53. return token === '오후';
  54. },
  55. meridiem : function (hour, minute, isUpper) {
  56. return hour < 12 ? '오전' : '오후';
  57. }
  58. });
  59. return ko;
  60. }));