momentjs-rails 2.20.1 → 2.29.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/dummy/app/assets/config/manifest.js +1 -0
  5. data/test/dummy/config/environments/development.rb +2 -0
  6. data/test/dummy/config/environments/production.rb +1 -0
  7. data/test/dummy/config/environments/test.rb +2 -0
  8. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-H/-H77gbOgi-dwHJoevs2PsAJBV-nde7DFDWBPXqUrMkw.cache +1 -0
  9. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-y/-ypqz4WBYM3Qftk20RenhtH0iPKxdtyu6t3hVOjJLL4.cache +1 -0
  10. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1l/1l4oJ9T6GJ0pN-vGrH1QH9XT7AVF3Z9pakdHrxcsuXw.cache +1 -0
  11. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3T/3TjWGZFWBLAEGSW7kQIDJIL6_MukMwz_wLDMwgYsN1E.cache +2 -0
  12. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3e/3eGeoVsqjktkiAfNQ4zBuxtb0rtVWyQsKgjho5OHYnY.cache +2 -0
  13. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9C/9Cy8L_tqI8SvH-pVigMqBlPTus4vnZvt3YE2y8--beE.cache +1 -0
  14. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9z/9zOsSzS7x1TCGFnvxdjQdrEL2MENRZARP2fzL5JYLF0.cache +1 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/AP/AP7JoF1ZWY1lf5txW64EpzKJEzOIsR9Wkn_V0pl6Kzo.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Bu/BuxnmLYpqxwN3qck74Nh3Adaqz5VwdArL7wCZx6TnII.cache +2 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/JO/JO9QyaKhLUs4VF1ODPXLiqcSziQS4x3sudms-3GYjww.cache +1 -0
  18. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Mn/MnWwrzXFar6jFGAfp8PS_cZXjeFYCA85xsTQT758958.cache +0 -0
  19. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/OM/OM7fRuvTUPQcZERsO6Tsv0fvTdZqsRZbN-mYK00TwnI.cache +1 -0
  20. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Pn/PnNlsrskw8SKHpOLkqJgEN_HjZzB2jsQZauj-dnQQ2A.cache +0 -0
  21. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Rf/RfFWq_tyttbS2wyfSc0kKvcSxUeC_m01sL3Dl6EWEqM.cache +0 -0
  22. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ru/RuQ9HENefRmSoZaLfw7LalsxdBHpKJMyc2c3OQ_kQr8.cache +3 -0
  23. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/T-/T-9_ffpUxh6GAYTAzM3sF5lykyt9GVpcbKZaRXxw0wA.cache +2 -0
  24. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Zj/Zjn9OiwGREdMXvLZA-tY289lQslnn7R3BrSwhsntMWQ.cache +3 -0
  25. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Zm/Zmp1hSfJjOVQBTRXZ-xSs8qqIK6lmyQ4GK_uYVsDVJc.cache +1 -0
  26. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/bR/bRSmDUPNI--mMuAgRHWf1r56iydNwHRg_wniS8HqhNg.cache +0 -0
  27. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dA/dAAcqCClwz0OKgpbEd9G3OUYKW1TeNqJV49Zxh2bQ5A.cache +1 -0
  28. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dh/dhlLaVScr1-Ty5UFcg6xdU4xSWIuySWzjcC5OU2mOf4.cache +0 -0
  29. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/gt/gtu4KqwPpmom4hwtRz9x180bzJzATR6V8hyE3uHsyas.cache +3 -0
  30. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/kl/klJHIoyRhrimisvwpjAPKxae89riL_0exIgpv4u3u5Y.cache +0 -0
  31. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/m1/m16f5eEXdsOfzbCB88BS3eojIypOTYQjyyv5kkTDwxY.cache +1 -0
  32. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/mm/mmqv3-gEoPWhMrVamMnpI1csCNLKpv-qVQgHERXQNaU.cache +2 -0
  33. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/rp/rpqm2QeVJPWIySovDg4XdCnI6X5_FXCd0pZhuOnwAfk.cache +1 -0
  34. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wx/wxFkskdA6iSIVZxka368Y8wkP-3edr2nlW4VSOI6GhY.cache +3 -0
  35. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/xP/xPbdGyTHlpGRgIS0gbG9suCByeakXeTFaQ1B_h3_aUI.cache +0 -0
  36. data/test/integration/navigation_test.rb +1 -1
  37. data/vendor/assets/javascripts/moment/af.js +51 -54
  38. data/vendor/assets/javascripts/moment/ar-dz.js +150 -54
  39. data/vendor/assets/javascripts/moment/ar-kw.js +40 -46
  40. data/vendor/assets/javascripts/moment/ar-ly.js +141 -97
  41. data/vendor/assets/javascripts/moment/ar-ma.js +40 -46
  42. data/vendor/assets/javascripts/moment/ar-sa.js +75 -77
  43. data/vendor/assets/javascripts/moment/ar-tn.js +15 -21
  44. data/vendor/assets/javascripts/moment/ar.js +158 -112
  45. data/vendor/assets/javascripts/moment/az.js +52 -57
  46. data/vendor/assets/javascripts/moment/be.js +69 -63
  47. data/vendor/assets/javascripts/moment/bg.js +49 -53
  48. data/vendor/assets/javascripts/moment/bm.js +43 -51
  49. data/vendor/assets/javascripts/moment/bn-bd.js +128 -0
  50. data/vendor/assets/javascripts/moment/bn.js +76 -78
  51. data/vendor/assets/javascripts/moment/bo.js +80 -78
  52. data/vendor/assets/javascripts/moment/br.js +115 -59
  53. data/vendor/assets/javascripts/moment/bs.js +48 -52
  54. data/vendor/assets/javascripts/moment/ca.js +76 -68
  55. data/vendor/assets/javascripts/moment/cs.js +80 -89
  56. data/vendor/assets/javascripts/moment/cv.js +45 -47
  57. data/vendor/assets/javascripts/moment/cy.js +41 -26
  58. data/vendor/assets/javascripts/moment/da.js +43 -51
  59. data/vendor/assets/javascripts/moment/de-at.js +53 -54
  60. data/vendor/assets/javascripts/moment/de-ch.js +54 -55
  61. data/vendor/assets/javascripts/moment/de.js +53 -54
  62. data/vendor/assets/javascripts/moment/dv.js +64 -75
  63. data/vendor/assets/javascripts/moment/el.js +63 -60
  64. data/vendor/assets/javascripts/moment/en-au.js +55 -55
  65. data/vendor/assets/javascripts/moment/en-ca.js +52 -52
  66. data/vendor/assets/javascripts/moment/en-gb.js +55 -55
  67. data/vendor/assets/javascripts/moment/en-ie.js +55 -55
  68. data/vendor/assets/javascripts/moment/en-il.js +64 -0
  69. data/vendor/assets/javascripts/moment/en-in.js +68 -0
  70. data/vendor/assets/javascripts/moment/en-nz.js +55 -55
  71. data/vendor/assets/javascripts/moment/en-sg.js +68 -0
  72. data/vendor/assets/javascripts/moment/eo.js +46 -52
  73. data/vendor/assets/javascripts/moment/es-do.js +75 -63
  74. data/vendor/assets/javascripts/moment/es-mx.js +106 -0
  75. data/vendor/assets/javascripts/moment/es-us.js +83 -61
  76. data/vendor/assets/javascripts/moment/es.js +83 -70
  77. data/vendor/assets/javascripts/moment/et.js +58 -62
  78. data/vendor/assets/javascripts/moment/eu.js +53 -57
  79. data/vendor/assets/javascripts/moment/fa.js +84 -82
  80. data/vendor/assets/javascripts/moment/fi.js +72 -61
  81. data/vendor/assets/javascripts/moment/fil.js +58 -0
  82. data/vendor/assets/javascripts/moment/fo.js +46 -51
  83. data/vendor/assets/javascripts/moment/fr-ca.js +44 -50
  84. data/vendor/assets/javascripts/moment/fr-ch.js +47 -53
  85. data/vendor/assets/javascripts/moment/fr.js +72 -52
  86. data/vendor/assets/javascripts/moment/fy.js +52 -51
  87. data/vendor/assets/javascripts/moment/ga.js +95 -0
  88. data/vendor/assets/javascripts/moment/gd.js +81 -63
  89. data/vendor/assets/javascripts/moment/gl.js +54 -58
  90. data/vendor/assets/javascripts/moment/gom-deva.js +124 -0
  91. data/vendor/assets/javascripts/moment/gom-latn.js +70 -70
  92. data/vendor/assets/javascripts/moment/gu.js +30 -34
  93. data/vendor/assets/javascripts/moment/he.js +48 -54
  94. data/vendor/assets/javascripts/moment/hi.js +115 -76
  95. data/vendor/assets/javascripts/moment/hr.js +54 -55
  96. data/vendor/assets/javascripts/moment/hu.js +63 -56
  97. data/vendor/assets/javascripts/moment/hy-am.js +44 -48
  98. data/vendor/assets/javascripts/moment/id.js +44 -52
  99. data/vendor/assets/javascripts/moment/is.js +61 -55
  100. data/vendor/assets/javascripts/moment/it-ch.js +64 -0
  101. data/vendor/assets/javascripts/moment/it.js +89 -54
  102. data/vendor/assets/javascripts/moment/ja.js +122 -55
  103. data/vendor/assets/javascripts/moment/jv.js +44 -52
  104. data/vendor/assets/javascripts/moment/ka.js +68 -66
  105. data/vendor/assets/javascripts/moment/kk.js +46 -52
  106. data/vendor/assets/javascripts/moment/km.js +64 -21
  107. data/vendor/assets/javascripts/moment/kn.js +72 -76
  108. data/vendor/assets/javascripts/moment/ko.js +48 -56
  109. data/vendor/assets/javascripts/moment/ku.js +118 -0
  110. data/vendor/assets/javascripts/moment/ky.js +48 -53
  111. data/vendor/assets/javascripts/moment/lb.js +39 -42
  112. data/vendor/assets/javascripts/moment/lo.js +44 -50
  113. data/vendor/assets/javascripts/moment/lt.js +79 -75
  114. data/vendor/assets/javascripts/moment/lv.js +57 -63
  115. data/vendor/assets/javascripts/moment/me.js +53 -48
  116. data/vendor/assets/javascripts/moment/mi.js +15 -21
  117. data/vendor/assets/javascripts/moment/mk.js +46 -52
  118. data/vendor/assets/javascripts/moment/ml.js +51 -53
  119. data/vendor/assets/javascripts/moment/mn.js +99 -0
  120. data/vendor/assets/javascripts/moment/mr.js +140 -100
  121. data/vendor/assets/javascripts/moment/ms-my.js +43 -51
  122. data/vendor/assets/javascripts/moment/ms.js +43 -51
  123. data/vendor/assets/javascripts/moment/mt.js +45 -51
  124. data/vendor/assets/javascripts/moment/my.js +37 -43
  125. data/vendor/assets/javascripts/moment/nb.js +45 -48
  126. data/vendor/assets/javascripts/moment/ne.js +73 -77
  127. data/vendor/assets/javascripts/moment/nl-be.js +70 -57
  128. data/vendor/assets/javascripts/moment/nl.js +72 -57
  129. data/vendor/assets/javascripts/moment/nn.js +46 -47
  130. data/vendor/assets/javascripts/moment/oc-lnc.js +83 -0
  131. data/vendor/assets/javascripts/moment/pa-in.js +72 -76
  132. data/vendor/assets/javascripts/moment/pl.js +67 -55
  133. data/vendor/assets/javascripts/moment/pt-br.js +41 -46
  134. data/vendor/assets/javascripts/moment/pt.js +46 -50
  135. data/vendor/assets/javascripts/moment/ro.js +49 -51
  136. data/vendor/assets/javascripts/moment/ru.js +104 -83
  137. data/vendor/assets/javascripts/moment/sd.js +56 -74
  138. data/vendor/assets/javascripts/moment/se.js +41 -46
  139. data/vendor/assets/javascripts/moment/si.js +48 -52
  140. data/vendor/assets/javascripts/moment/sk.js +52 -66
  141. data/vendor/assets/javascripts/moment/sl.js +50 -54
  142. data/vendor/assets/javascripts/moment/sq.js +47 -53
  143. data/vendor/assets/javascripts/moment/sr-cyrl.js +53 -49
  144. data/vendor/assets/javascripts/moment/sr.js +56 -50
  145. data/vendor/assets/javascripts/moment/ss.js +48 -55
  146. data/vendor/assets/javascripts/moment/sv.js +51 -53
  147. data/vendor/assets/javascripts/moment/sw.js +45 -51
  148. data/vendor/assets/javascripts/moment/ta.js +75 -77
  149. data/vendor/assets/javascripts/moment/te.js +51 -55
  150. data/vendor/assets/javascripts/moment/tet.js +49 -50
  151. data/vendor/assets/javascripts/moment/tg.js +116 -0
  152. data/vendor/assets/javascripts/moment/th.js +45 -49
  153. data/vendor/assets/javascripts/moment/tk.js +91 -0
  154. data/vendor/assets/javascripts/moment/tl-ph.js +40 -46
  155. data/vendor/assets/javascripts/moment/tlh.js +69 -67
  156. data/vendor/assets/javascripts/moment/tr.js +91 -76
  157. data/vendor/assets/javascripts/moment/tzl.js +65 -69
  158. data/vendor/assets/javascripts/moment/tzm-latn.js +39 -45
  159. data/vendor/assets/javascripts/moment/tzm.js +38 -44
  160. data/vendor/assets/javascripts/moment/ug-cn.js +110 -0
  161. data/vendor/assets/javascripts/moment/uk.js +78 -68
  162. data/vendor/assets/javascripts/moment/ur.js +56 -74
  163. data/vendor/assets/javascripts/moment/uz-latn.js +44 -50
  164. data/vendor/assets/javascripts/moment/uz.js +42 -50
  165. data/vendor/assets/javascripts/moment/vi.js +54 -55
  166. data/vendor/assets/javascripts/moment/x-pseudo.js +58 -56
  167. data/vendor/assets/javascripts/moment/yo.js +44 -52
  168. data/vendor/assets/javascripts/moment/zh-cn.js +66 -58
  169. data/vendor/assets/javascripts/moment/zh-hk.js +58 -63
  170. data/vendor/assets/javascripts/moment/zh-mo.js +100 -0
  171. data/vendor/assets/javascripts/moment/zh-tw.js +55 -61
  172. data/vendor/assets/javascripts/moment.js +2673 -1546
  173. metadata +92 -31
  174. data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
  175. data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
  176. data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
  177. data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
  178. data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
  179. data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
@@ -2,79 +2,81 @@
2
2
  //! locale : Tamil [ta]
3
3
  //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
4
4
 
5
- ;(function (global, factory) {
6
- typeof exports === 'object' && typeof module !== 'undefined'
7
- && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
- factory(global.moment)
10
- }(this, (function (moment) { 'use strict';
11
-
5
+ import moment from '../moment';
12
6
 
13
7
  var symbolMap = {
14
- '1': '௧',
15
- '2': '௨',
16
- '3': '௩',
17
- '4': '௪',
18
- '5': '௫',
19
- '6': '௬',
20
- '7': '௭',
21
- '8': '௮',
22
- '9': '௯',
23
- '0': '௦'
24
- };
25
- var numberMap = {
26
- '௧': '1',
27
- '௨': '2',
28
- '௩': '3',
29
- '௪': '4',
30
- '௫': '5',
31
- '௬': '6',
32
- '௭': '7',
33
- '௮': '8',
34
- '௯': '9',
35
- '௦': '0'
36
- };
8
+ 1: '௧',
9
+ 2: '௨',
10
+ 3: '௩',
11
+ 4: '௪',
12
+ 5: '௫',
13
+ 6: '௬',
14
+ 7: '௭',
15
+ 8: '௮',
16
+ 9: '௯',
17
+ 0: '௦',
18
+ },
19
+ numberMap = {
20
+ '௧': '1',
21
+ '௨': '2',
22
+ '௩': '3',
23
+ '௪': '4',
24
+ '௫': '5',
25
+ '௬': '6',
26
+ '௭': '7',
27
+ '௮': '8',
28
+ '௯': '9',
29
+ '௦': '0',
30
+ };
37
31
 
38
- var ta = moment.defineLocale('ta', {
39
- months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
40
- monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
41
- weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
42
- weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
43
- weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
44
- longDateFormat : {
45
- LT : 'HH:mm',
46
- LTS : 'HH:mm:ss',
47
- L : 'DD/MM/YYYY',
48
- LL : 'D MMMM YYYY',
49
- LLL : 'D MMMM YYYY, HH:mm',
50
- LLLL : 'dddd, D MMMM YYYY, HH:mm'
32
+ export default moment.defineLocale('ta', {
33
+ months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
34
+ '_'
35
+ ),
36
+ monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
37
+ '_'
38
+ ),
39
+ weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split(
40
+ '_'
41
+ ),
42
+ weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split(
43
+ '_'
44
+ ),
45
+ weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
46
+ longDateFormat: {
47
+ LT: 'HH:mm',
48
+ LTS: 'HH:mm:ss',
49
+ L: 'DD/MM/YYYY',
50
+ LL: 'D MMMM YYYY',
51
+ LLL: 'D MMMM YYYY, HH:mm',
52
+ LLLL: 'dddd, D MMMM YYYY, HH:mm',
51
53
  },
52
- calendar : {
53
- sameDay : '[இன்று] LT',
54
- nextDay : '[நாளை] LT',
55
- nextWeek : 'dddd, LT',
56
- lastDay : '[நேற்று] LT',
57
- lastWeek : '[கடந்த வாரம்] dddd, LT',
58
- sameElse : 'L'
54
+ calendar: {
55
+ sameDay: '[இன்று] LT',
56
+ nextDay: '[நாளை] LT',
57
+ nextWeek: 'dddd, LT',
58
+ lastDay: '[நேற்று] LT',
59
+ lastWeek: '[கடந்த வாரம்] dddd, LT',
60
+ sameElse: 'L',
59
61
  },
60
- relativeTime : {
61
- future : '%s இல்',
62
- past : '%s முன்',
63
- s : 'ஒரு சில விநாடிகள்',
64
- ss : '%d விநாடிகள்',
65
- m : 'ஒரு நிமிடம்',
66
- mm : '%d நிமிடங்கள்',
67
- h : 'ஒரு மணி நேரம்',
68
- hh : '%d மணி நேரம்',
69
- d : 'ஒரு நாள்',
70
- dd : '%d நாட்கள்',
71
- M : 'ஒரு மாதம்',
72
- MM : '%d மாதங்கள்',
73
- y : 'ஒரு வருடம்',
74
- yy : '%d ஆண்டுகள்'
62
+ relativeTime: {
63
+ future: '%s இல்',
64
+ past: '%s முன்',
65
+ s: 'ஒரு சில விநாடிகள்',
66
+ ss: '%d விநாடிகள்',
67
+ m: 'ஒரு நிமிடம்',
68
+ mm: '%d நிமிடங்கள்',
69
+ h: 'ஒரு மணி நேரம்',
70
+ hh: '%d மணி நேரம்',
71
+ d: 'ஒரு நாள்',
72
+ dd: '%d நாட்கள்',
73
+ M: 'ஒரு மாதம்',
74
+ MM: '%d மாதங்கள்',
75
+ y: 'ஒரு வருடம்',
76
+ yy: '%d ஆண்டுகள்',
75
77
  },
76
78
  dayOfMonthOrdinalParse: /\d{1,2}வது/,
77
- ordinal : function (number) {
79
+ ordinal: function (number) {
78
80
  return number + 'வது';
79
81
  },
80
82
  preparse: function (string) {
@@ -89,11 +91,11 @@ var ta = moment.defineLocale('ta', {
89
91
  },
90
92
  // refer http://ta.wikipedia.org/s/1er1
91
93
  meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
92
- meridiem : function (hour, minute, isLower) {
94
+ meridiem: function (hour, minute, isLower) {
93
95
  if (hour < 2) {
94
96
  return ' யாமம்';
95
97
  } else if (hour < 6) {
96
- return ' வைகறை'; // வைகறை
98
+ return ' வைகறை'; // வைகறை
97
99
  } else if (hour < 10) {
98
100
  return ' காலை'; // காலை
99
101
  } else if (hour < 14) {
@@ -106,7 +108,7 @@ var ta = moment.defineLocale('ta', {
106
108
  return ' யாமம்';
107
109
  }
108
110
  },
109
- meridiemHour : function (hour, meridiem) {
111
+ meridiemHour: function (hour, meridiem) {
110
112
  if (hour === 12) {
111
113
  hour = 0;
112
114
  }
@@ -120,12 +122,8 @@ var ta = moment.defineLocale('ta', {
120
122
  return hour + 12;
121
123
  }
122
124
  },
123
- week : {
124
- dow : 0, // Sunday is the first day of the week.
125
- doy : 6 // The week that contains Jan 1st is the first week of the year.
126
- }
125
+ week: {
126
+ dow: 0, // Sunday is the first day of the week.
127
+ doy: 6, // The week that contains Jan 6th is the first week of the year.
128
+ },
127
129
  });
128
-
129
- return ta;
130
-
131
- })));
@@ -2,57 +2,57 @@
2
2
  //! locale : Telugu [te]
3
3
  //! author : Krishna Chaitanya Thota : https://github.com/kcthota
4
4
 
5
- ;(function (global, factory) {
6
- typeof exports === 'object' && typeof module !== 'undefined'
7
- && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
- factory(global.moment)
10
- }(this, (function (moment) { 'use strict';
5
+ import moment from '../moment';
11
6
 
12
-
13
- var te = moment.defineLocale('te', {
14
- months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
15
- monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
16
- monthsParseExact : true,
17
- weekdays : 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
18
- weekdaysShort : 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
19
- weekdaysMin : 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
20
- longDateFormat : {
21
- LT : 'A h:mm',
22
- LTS : 'A h:mm:ss',
23
- L : 'DD/MM/YYYY',
24
- LL : 'D MMMM YYYY',
25
- LLL : 'D MMMM YYYY, A h:mm',
26
- LLLL : 'dddd, D MMMM YYYY, A h:mm'
7
+ export default moment.defineLocale('te', {
8
+ months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split(
9
+ '_'
10
+ ),
11
+ monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split(
12
+ '_'
13
+ ),
14
+ monthsParseExact: true,
15
+ weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split(
16
+ '_'
17
+ ),
18
+ weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
19
+ weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
20
+ longDateFormat: {
21
+ LT: 'A h:mm',
22
+ LTS: 'A h:mm:ss',
23
+ L: 'DD/MM/YYYY',
24
+ LL: 'D MMMM YYYY',
25
+ LLL: 'D MMMM YYYY, A h:mm',
26
+ LLLL: 'dddd, D MMMM YYYY, A h:mm',
27
27
  },
28
- calendar : {
29
- sameDay : '[నేడు] LT',
30
- nextDay : '[రేపు] LT',
31
- nextWeek : 'dddd, LT',
32
- lastDay : '[నిన్న] LT',
33
- lastWeek : '[గత] dddd, LT',
34
- sameElse : 'L'
28
+ calendar: {
29
+ sameDay: '[నేడు] LT',
30
+ nextDay: '[రేపు] LT',
31
+ nextWeek: 'dddd, LT',
32
+ lastDay: '[నిన్న] LT',
33
+ lastWeek: '[గత] dddd, LT',
34
+ sameElse: 'L',
35
35
  },
36
- relativeTime : {
37
- future : '%s లో',
38
- past : '%s క్రితం',
39
- s : 'కొన్ని క్షణాలు',
40
- ss : '%d సెకన్లు',
41
- m : 'ఒక నిమిషం',
42
- mm : '%d నిమిషాలు',
43
- h : 'ఒక గంట',
44
- hh : '%d గంటలు',
45
- d : 'ఒక రోజు',
46
- dd : '%d రోజులు',
47
- M : 'ఒక నెల',
48
- MM : '%d నెలలు',
49
- y : 'ఒక సంవత్సరం',
50
- yy : '%d సంవత్సరాలు'
36
+ relativeTime: {
37
+ future: '%s లో',
38
+ past: '%s క్రితం',
39
+ s: 'కొన్ని క్షణాలు',
40
+ ss: '%d సెకన్లు',
41
+ m: 'ఒక నిమిషం',
42
+ mm: '%d నిమిషాలు',
43
+ h: 'ఒక గంట',
44
+ hh: '%d గంటలు',
45
+ d: 'ఒక రోజు',
46
+ dd: '%d రోజులు',
47
+ M: 'ఒక నెల',
48
+ MM: '%d నెలలు',
49
+ y: 'ఒక సంవత్సరం',
50
+ yy: '%d సంవత్సరాలు',
51
51
  },
52
- dayOfMonthOrdinalParse : /\d{1,2}వ/,
53
- ordinal : '%dవ',
52
+ dayOfMonthOrdinalParse: /\d{1,2}వ/,
53
+ ordinal: '%dవ',
54
54
  meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
55
- meridiemHour : function (hour, meridiem) {
55
+ meridiemHour: function (hour, meridiem) {
56
56
  if (hour === 12) {
57
57
  hour = 0;
58
58
  }
@@ -66,7 +66,7 @@ var te = moment.defineLocale('te', {
66
66
  return hour + 12;
67
67
  }
68
68
  },
69
- meridiem : function (hour, minute, isLower) {
69
+ meridiem: function (hour, minute, isLower) {
70
70
  if (hour < 4) {
71
71
  return 'రాత్రి';
72
72
  } else if (hour < 10) {
@@ -79,12 +79,8 @@ var te = moment.defineLocale('te', {
79
79
  return 'రాత్రి';
80
80
  }
81
81
  },
82
- week : {
83
- dow : 0, // Sunday is the first day of the week.
84
- doy : 6 // The week that contains Jan 1st is the first week of the year.
85
- }
82
+ week: {
83
+ dow: 0, // Sunday is the first day of the week.
84
+ doy: 6, // The week that contains Jan 6th is the first week of the year.
85
+ },
86
86
  });
87
-
88
- return te;
89
-
90
- })));
@@ -2,68 +2,67 @@
2
2
  //! locale : Tetun Dili (East Timor) [tet]
3
3
  //! author : Joshua Brooks : https://github.com/joshbrooks
4
4
  //! author : Onorio De J. Afonso : https://github.com/marobo
5
+ //! author : Sonia Simoes : https://github.com/soniasimoes
5
6
 
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';
7
+ import moment from '../moment';
12
8
 
13
-
14
- var tet = moment.defineLocale('tet', {
15
- months : 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juniu_Juliu_Augustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),
16
- monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Aug_Set_Out_Nov_Dez'.split('_'),
17
- weekdays : 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sexta_Sabadu'.split('_'),
18
- weekdaysShort : 'Dom_Seg_Ters_Kua_Kint_Sext_Sab'.split('_'),
19
- weekdaysMin : 'Do_Seg_Te_Ku_Ki_Sex_Sa'.split('_'),
20
- longDateFormat : {
21
- LT : 'HH:mm',
22
- LTS : 'HH:mm:ss',
23
- L : 'DD/MM/YYYY',
24
- LL : 'D MMMM YYYY',
25
- LLL : 'D MMMM YYYY HH:mm',
26
- LLLL : 'dddd, D MMMM YYYY HH:mm'
9
+ export default moment.defineLocale('tet', {
10
+ months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split(
11
+ '_'
12
+ ),
13
+ monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
14
+ weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
15
+ weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
16
+ weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
17
+ longDateFormat: {
18
+ LT: 'HH:mm',
19
+ LTS: 'HH:mm:ss',
20
+ L: 'DD/MM/YYYY',
21
+ LL: 'D MMMM YYYY',
22
+ LLL: 'D MMMM YYYY HH:mm',
23
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
27
24
  },
28
- calendar : {
25
+ calendar: {
29
26
  sameDay: '[Ohin iha] LT',
30
27
  nextDay: '[Aban iha] LT',
31
28
  nextWeek: 'dddd [iha] LT',
32
29
  lastDay: '[Horiseik iha] LT',
33
30
  lastWeek: 'dddd [semana kotuk] [iha] LT',
34
- sameElse: 'L'
31
+ sameElse: 'L',
35
32
  },
36
- relativeTime : {
37
- future : 'iha %s',
38
- past : '%s liuba',
39
- s : 'minutu balun',
40
- ss : 'minutu %d',
41
- m : 'minutu ida',
42
- mm : 'minutus %d',
43
- h : 'horas ida',
44
- hh : 'horas %d',
45
- d : 'loron ida',
46
- dd : 'loron %d',
47
- M : 'fulan ida',
48
- MM : 'fulan %d',
49
- y : 'tinan ida',
50
- yy : 'tinan %d'
33
+ relativeTime: {
34
+ future: 'iha %s',
35
+ past: '%s liuba',
36
+ s: 'segundu balun',
37
+ ss: 'segundu %d',
38
+ m: 'minutu ida',
39
+ mm: 'minutu %d',
40
+ h: 'oras ida',
41
+ hh: 'oras %d',
42
+ d: 'loron ida',
43
+ dd: 'loron %d',
44
+ M: 'fulan ida',
45
+ MM: 'fulan %d',
46
+ y: 'tinan ida',
47
+ yy: 'tinan %d',
51
48
  },
52
49
  dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
53
- ordinal : function (number) {
50
+ ordinal: function (number) {
54
51
  var b = number % 10,
55
- output = (~~(number % 100 / 10) === 1) ? 'th' :
56
- (b === 1) ? 'st' :
57
- (b === 2) ? 'nd' :
58
- (b === 3) ? 'rd' : 'th';
52
+ output =
53
+ ~~((number % 100) / 10) === 1
54
+ ? 'th'
55
+ : b === 1
56
+ ? 'st'
57
+ : b === 2
58
+ ? 'nd'
59
+ : b === 3
60
+ ? 'rd'
61
+ : 'th';
59
62
  return number + output;
60
63
  },
61
- week : {
62
- dow : 1, // Monday is the first day of the week.
63
- doy : 4 // The week that contains Jan 4th is the first week of the year.
64
- }
64
+ week: {
65
+ dow: 1, // Monday is the first day of the week.
66
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
67
+ },
65
68
  });
66
-
67
- return tet;
68
-
69
- })));
@@ -0,0 +1,116 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Tajik [tg]
3
+ //! author : Orif N. Jr. : https://github.com/orif-jr
4
+
5
+ import moment from '../moment';
6
+
7
+ var suffixes = {
8
+ 0: '-ум',
9
+ 1: '-ум',
10
+ 2: '-юм',
11
+ 3: '-юм',
12
+ 4: '-ум',
13
+ 5: '-ум',
14
+ 6: '-ум',
15
+ 7: '-ум',
16
+ 8: '-ум',
17
+ 9: '-ум',
18
+ 10: '-ум',
19
+ 12: '-ум',
20
+ 13: '-ум',
21
+ 20: '-ум',
22
+ 30: '-юм',
23
+ 40: '-ум',
24
+ 50: '-ум',
25
+ 60: '-ум',
26
+ 70: '-ум',
27
+ 80: '-ум',
28
+ 90: '-ум',
29
+ 100: '-ум',
30
+ };
31
+
32
+ export default moment.defineLocale('tg', {
33
+ months: {
34
+ format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split(
35
+ '_'
36
+ ),
37
+ standalone: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
38
+ '_'
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
+ lastDay: '[Дирӯз соати] LT',
59
+ nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
60
+ lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
61
+ sameElse: 'L',
62
+ },
63
+ relativeTime: {
64
+ future: 'баъди %s',
65
+ past: '%s пеш',
66
+ s: 'якчанд сония',
67
+ m: 'як дақиқа',
68
+ mm: '%d дақиқа',
69
+ h: 'як соат',
70
+ hh: '%d соат',
71
+ d: 'як рӯз',
72
+ dd: '%d рӯз',
73
+ M: 'як моҳ',
74
+ MM: '%d моҳ',
75
+ y: 'як сол',
76
+ yy: '%d сол',
77
+ },
78
+ meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
79
+ meridiemHour: function (hour, meridiem) {
80
+ if (hour === 12) {
81
+ hour = 0;
82
+ }
83
+ if (meridiem === 'шаб') {
84
+ return hour < 4 ? hour : hour + 12;
85
+ } else if (meridiem === 'субҳ') {
86
+ return hour;
87
+ } else if (meridiem === 'рӯз') {
88
+ return hour >= 11 ? hour : hour + 12;
89
+ } else if (meridiem === 'бегоҳ') {
90
+ return hour + 12;
91
+ }
92
+ },
93
+ meridiem: function (hour, minute, isLower) {
94
+ if (hour < 4) {
95
+ return 'шаб';
96
+ } else if (hour < 11) {
97
+ return 'субҳ';
98
+ } else if (hour < 16) {
99
+ return 'рӯз';
100
+ } else if (hour < 19) {
101
+ return 'бегоҳ';
102
+ } else {
103
+ return 'шаб';
104
+ }
105
+ },
106
+ dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
107
+ ordinal: function (number) {
108
+ var a = number % 10,
109
+ b = number >= 100 ? 100 : null;
110
+ return number + (suffixes[number] || suffixes[a] || suffixes[b]);
111
+ },
112
+ week: {
113
+ dow: 1, // Monday is the first day of the week.
114
+ doy: 7, // The week that contains Jan 1th is the first week of the year.
115
+ },
116
+ });