25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

2 yıl önce
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. //! moment.js locale configuration
  2. //! locale : Burmese [my]
  3. //! author : Squar team, mysquar.com
  4. //! author : David Rossellat : https://github.com/gholadr
  5. //! author : Tin Aung Lin : https://github.com/thanyawzinmin
  6. ;(function (global, factory) {
  7. typeof exports === 'object' && typeof module !== 'undefined'
  8. && typeof require === 'function' ? factory(require('../moment')) :
  9. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  10. factory(global.moment)
  11. }(this, (function (moment) { 'use strict';
  12. //! moment.js locale configuration
  13. var symbolMap = {
  14. 1: '၁',
  15. 2: '၂',
  16. 3: '၃',
  17. 4: '၄',
  18. 5: '၅',
  19. 6: '၆',
  20. 7: '၇',
  21. 8: '၈',
  22. 9: '၉',
  23. 0: '၀',
  24. },
  25. numberMap = {
  26. '၁': '1',
  27. '၂': '2',
  28. '၃': '3',
  29. '၄': '4',
  30. '၅': '5',
  31. '၆': '6',
  32. '၇': '7',
  33. '၈': '8',
  34. '၉': '9',
  35. '၀': '0',
  36. };
  37. var my = moment.defineLocale('my', {
  38. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(
  39. '_'
  40. ),
  41. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  42. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(
  43. '_'
  44. ),
  45. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  46. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  47. longDateFormat: {
  48. LT: 'HH:mm',
  49. LTS: 'HH:mm:ss',
  50. L: 'DD/MM/YYYY',
  51. LL: 'D MMMM YYYY',
  52. LLL: 'D MMMM YYYY HH:mm',
  53. LLLL: 'dddd D MMMM YYYY HH:mm',
  54. },
  55. calendar: {
  56. sameDay: '[ယနေ.] LT [မှာ]',
  57. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  58. nextWeek: 'dddd LT [မှာ]',
  59. lastDay: '[မနေ.က] LT [မှာ]',
  60. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  61. sameElse: 'L',
  62. },
  63. relativeTime: {
  64. future: 'လာမည့် %s မှာ',
  65. past: 'လွန်ခဲ့သော %s က',
  66. s: 'စက္ကန်.အနည်းငယ်',
  67. ss: '%d စက္ကန့်',
  68. m: 'တစ်မိနစ်',
  69. mm: '%d မိနစ်',
  70. h: 'တစ်နာရီ',
  71. hh: '%d နာရီ',
  72. d: 'တစ်ရက်',
  73. dd: '%d ရက်',
  74. M: 'တစ်လ',
  75. MM: '%d လ',
  76. y: 'တစ်နှစ်',
  77. yy: '%d နှစ်',
  78. },
  79. preparse: function (string) {
  80. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  81. return numberMap[match];
  82. });
  83. },
  84. postformat: function (string) {
  85. return string.replace(/\d/g, function (match) {
  86. return symbolMap[match];
  87. });
  88. },
  89. week: {
  90. dow: 1, // Monday is the first day of the week.
  91. doy: 4, // The week that contains Jan 4th is the first week of the year.
  92. },
  93. });
  94. return my;
  95. })));