Ohm-Management - Projektarbeit B-ME
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.

km.js 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. //! moment.js locale configuration
  2. ;(function (global, factory) {
  3. typeof exports === 'object' && typeof module !== 'undefined'
  4. && typeof require === 'function' ? factory(require('../moment')) :
  5. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  6. factory(global.moment)
  7. }(this, (function (moment) { 'use strict';
  8. var symbolMap = {
  9. '1': '១',
  10. '2': '២',
  11. '3': '៣',
  12. '4': '៤',
  13. '5': '៥',
  14. '6': '៦',
  15. '7': '៧',
  16. '8': '៨',
  17. '9': '៩',
  18. '0': '០'
  19. }, numberMap = {
  20. '១': '1',
  21. '២': '2',
  22. '៣': '3',
  23. '៤': '4',
  24. '៥': '5',
  25. '៦': '6',
  26. '៧': '7',
  27. '៨': '8',
  28. '៩': '9',
  29. '០': '0'
  30. };
  31. var km = moment.defineLocale('km', {
  32. months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
  33. '_'
  34. ),
  35. monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
  36. '_'
  37. ),
  38. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  39. weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  40. weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  41. weekdaysParseExact: true,
  42. longDateFormat: {
  43. LT: 'HH:mm',
  44. LTS: 'HH:mm:ss',
  45. L: 'DD/MM/YYYY',
  46. LL: 'D MMMM YYYY',
  47. LLL: 'D MMMM YYYY HH:mm',
  48. LLLL: 'dddd, D MMMM YYYY HH:mm'
  49. },
  50. meridiemParse: /ព្រឹក|ល្ងាច/,
  51. isPM: function (input) {
  52. return input === 'ល្ងាច';
  53. },
  54. meridiem: function (hour, minute, isLower) {
  55. if (hour < 12) {
  56. return 'ព្រឹក';
  57. } else {
  58. return 'ល្ងាច';
  59. }
  60. },
  61. calendar: {
  62. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  63. nextDay: '[ស្អែក ម៉ោង] LT',
  64. nextWeek: 'dddd [ម៉ោង] LT',
  65. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  66. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  67. sameElse: 'L'
  68. },
  69. relativeTime: {
  70. future: '%sទៀត',
  71. past: '%sមុន',
  72. s: 'ប៉ុន្មានវិនាទី',
  73. ss: '%d វិនាទី',
  74. m: 'មួយនាទី',
  75. mm: '%d នាទី',
  76. h: 'មួយម៉ោង',
  77. hh: '%d ម៉ោង',
  78. d: 'មួយថ្ងៃ',
  79. dd: '%d ថ្ងៃ',
  80. M: 'មួយខែ',
  81. MM: '%d ខែ',
  82. y: 'មួយឆ្នាំ',
  83. yy: '%d ឆ្នាំ'
  84. },
  85. dayOfMonthOrdinalParse : /ទី\d{1,2}/,
  86. ordinal : 'ទី%d',
  87. preparse: function (string) {
  88. return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
  89. return numberMap[match];
  90. });
  91. },
  92. postformat: function (string) {
  93. return string.replace(/\d/g, function (match) {
  94. return symbolMap[match];
  95. });
  96. },
  97. week: {
  98. dow: 1, // Monday is the first day of the week.
  99. doy: 4 // The week that contains Jan 4th is the first week of the year.
  100. }
  101. });
  102. return km;
  103. })));