e146c0b3727c48d56e2e2f1730a44762caa96424b84cead11fbe7e94be0458a32e61a9437ee8d17465ad2d20ef2759a724ba28e03cbca5abfa7a1f9402ce71 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. //! moment.js locale configuration
  2. //! locale : Azerbaijani [az]
  3. //! author : topchiyev : https://github.com/topchiyev
  4. import moment from '../moment';
  5. var suffixes = {
  6. 1: '-inci',
  7. 5: '-inci',
  8. 8: '-inci',
  9. 70: '-inci',
  10. 80: '-inci',
  11. 2: '-nci',
  12. 7: '-nci',
  13. 20: '-nci',
  14. 50: '-nci',
  15. 3: '-üncü',
  16. 4: '-üncü',
  17. 100: '-üncü',
  18. 6: '-ncı',
  19. 9: '-uncu',
  20. 10: '-uncu',
  21. 30: '-uncu',
  22. 60: '-ıncı',
  23. 90: '-ıncı'
  24. };
  25. export default moment.defineLocale('az', {
  26. months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
  27. monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  28. weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
  29. weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  30. weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  31. weekdaysParseExact : true,
  32. longDateFormat : {
  33. LT : 'HH:mm',
  34. LTS : 'HH:mm:ss',
  35. L : 'DD.MM.YYYY',
  36. LL : 'D MMMM YYYY',
  37. LLL : 'D MMMM YYYY HH:mm',
  38. LLLL : 'dddd, D MMMM YYYY HH:mm'
  39. },
  40. calendar : {
  41. sameDay : '[bugün saat] LT',
  42. nextDay : '[sabah saat] LT',
  43. nextWeek : '[gələn həftə] dddd [saat] LT',
  44. lastDay : '[dünən] LT',
  45. lastWeek : '[keçən həftə] dddd [saat] LT',
  46. sameElse : 'L'
  47. },
  48. relativeTime : {
  49. future : '%s sonra',
  50. past : '%s əvvəl',
  51. s : 'birneçə saniyyə',
  52. m : 'bir dəqiqə',
  53. mm : '%d dəqiqə',
  54. h : 'bir saat',
  55. hh : '%d saat',
  56. d : 'bir gün',
  57. dd : '%d gün',
  58. M : 'bir ay',
  59. MM : '%d ay',
  60. y : 'bir il',
  61. yy : '%d il'
  62. },
  63. meridiemParse: /gecə|səhər|gündüz|axşam/,
  64. isPM : function (input) {
  65. return /^(gündüz|axşam)$/.test(input);
  66. },
  67. meridiem : function (hour, minute, isLower) {
  68. if (hour < 4) {
  69. return 'gecə';
  70. } else if (hour < 12) {
  71. return 'səhər';
  72. } else if (hour < 17) {
  73. return 'gündüz';
  74. } else {
  75. return 'axşam';
  76. }
  77. },
  78. ordinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  79. ordinal : function (number) {
  80. if (number === 0) { // special case for zero
  81. return number + '-ıncı';
  82. }
  83. var a = number % 10,
  84. b = number % 100 - a,
  85. c = number >= 100 ? 100 : null;
  86. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  87. },
  88. week : {
  89. dow : 1, // Monday is the first day of the week.
  90. doy : 7 // The week that contains Jan 1st is the first week of the year.
  91. }
  92. });