You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.2 KiB

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