Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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.

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