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.

my.js 3.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 my = moment.defineLocale('my', {
  32. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
  33. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  34. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
  35. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  36. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  37. longDateFormat: {
  38. LT: 'HH:mm',
  39. LTS: 'HH:mm:ss',
  40. L: 'DD/MM/YYYY',
  41. LL: 'D MMMM YYYY',
  42. LLL: 'D MMMM YYYY HH:mm',
  43. LLLL: 'dddd D MMMM YYYY HH:mm'
  44. },
  45. calendar: {
  46. sameDay: '[ယနေ.] LT [မှာ]',
  47. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  48. nextWeek: 'dddd LT [မှာ]',
  49. lastDay: '[မနေ.က] LT [မှာ]',
  50. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  51. sameElse: 'L'
  52. },
  53. relativeTime: {
  54. future: 'လာမည့် %s မှာ',
  55. past: 'လွန်ခဲ့သော %s က',
  56. s: 'စက္ကန်.အနည်းငယ်',
  57. ss : '%d စက္ကန့်',
  58. m: 'တစ်မိနစ်',
  59. mm: '%d မိနစ်',
  60. h: 'တစ်နာရီ',
  61. hh: '%d နာရီ',
  62. d: 'တစ်ရက်',
  63. dd: '%d ရက်',
  64. M: 'တစ်လ',
  65. MM: '%d လ',
  66. y: 'တစ်နှစ်',
  67. yy: '%d နှစ်'
  68. },
  69. preparse: function (string) {
  70. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  71. return numberMap[match];
  72. });
  73. },
  74. postformat: function (string) {
  75. return string.replace(/\d/g, function (match) {
  76. return symbolMap[match];
  77. });
  78. },
  79. week: {
  80. dow: 1, // Monday is the first day of the week.
  81. doy: 4 // The week that contains Jan 4th is the first week of the year.
  82. }
  83. });
  84. return my;
  85. })));