momentjs-rails 1.6.2 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. data/README.md +1 -1
  2. data/changelog.md +4 -0
  3. data/vendor/assets/javascripts/moment.js +407 -219
  4. data/vendor/assets/javascripts/moment/bg.js +66 -0
  5. data/vendor/assets/javascripts/moment/ca.js +5 -1
  6. data/vendor/assets/javascripts/moment/cv.js +54 -0
  7. data/vendor/assets/javascripts/moment/da.js +6 -2
  8. data/vendor/assets/javascripts/moment/de.js +5 -1
  9. data/vendor/assets/javascripts/moment/en-ca.js +58 -0
  10. data/vendor/assets/javascripts/moment/en-gb.js +5 -1
  11. data/vendor/assets/javascripts/moment/es.js +5 -1
  12. data/vendor/assets/javascripts/moment/eu.js +5 -1
  13. data/vendor/assets/javascripts/moment/fi.js +6 -2
  14. data/vendor/assets/javascripts/moment/fr-ca.js +54 -0
  15. data/vendor/assets/javascripts/moment/fr.js +5 -1
  16. data/vendor/assets/javascripts/moment/gl.js +5 -1
  17. data/vendor/assets/javascripts/moment/hu.js +108 -0
  18. data/vendor/assets/javascripts/moment/is.js +5 -1
  19. data/vendor/assets/javascripts/moment/it.js +8 -4
  20. data/vendor/assets/javascripts/moment/ja.js +61 -0
  21. data/vendor/assets/javascripts/moment/jp.js +12 -5
  22. data/vendor/assets/javascripts/moment/ko.js +58 -0
  23. data/vendor/assets/javascripts/moment/kr.js +9 -2
  24. data/vendor/assets/javascripts/moment/nb.js +5 -1
  25. data/vendor/assets/javascripts/moment/nl.js +15 -3
  26. data/vendor/assets/javascripts/moment/pl.js +5 -1
  27. data/vendor/assets/javascripts/moment/pt-br.js +58 -0
  28. data/vendor/assets/javascripts/moment/pt.js +6 -2
  29. data/vendor/assets/javascripts/moment/ru.js +38 -8
  30. data/vendor/assets/javascripts/moment/sv.js +5 -1
  31. data/vendor/assets/javascripts/moment/tr.js +40 -6
  32. data/vendor/assets/javascripts/moment/zh-cn.js +6 -2
  33. data/vendor/assets/javascripts/moment/zh-tw.js +5 -1
  34. metadata +12 -4
@@ -0,0 +1,66 @@
1
+ // moment.js language configuration
2
+ // language : bulgarian (bg)
3
+ // author : Krasen Borisov : https://github.com/kraz
4
+ (function () {
5
+ var lang = {
6
+ months : "януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),
7
+ monthsShort : "янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),
8
+ weekdays : "неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),
9
+ weekdaysShort : "нед_пон_вто_сря_чет_пет_съб".split("_"),
10
+ weekdaysMin : "нд_пн_вт_ср_чт_пт_сб".split("_"),
11
+ longDateFormat : {
12
+ LT : "h:mm",
13
+ L : "D.MM.YYYY",
14
+ LL : "D MMMM YYYY",
15
+ LLL : "D MMMM YYYY LT",
16
+ LLLL : "dddd, D MMMM YYYY LT"
17
+ },
18
+ calendar : {
19
+ sameDay : '[Днес в] LT',
20
+ nextDay : '[Утре в] LT',
21
+ nextWeek : 'dddd [в] LT',
22
+ lastDay : '[Вчера в] LT',
23
+ lastWeek : function () {
24
+ switch (this.day()) {
25
+ case 0:
26
+ case 3:
27
+ case 6:
28
+ return '[В изминалата] dddd [в] LT';
29
+ case 1:
30
+ case 2:
31
+ case 4:
32
+ case 5:
33
+ return '[В изминалия] dddd [в] LT';
34
+ }
35
+ },
36
+ sameElse : 'L'
37
+ },
38
+ relativeTime : {
39
+ future : "след %s",
40
+ past : "преди %s",
41
+ s : "няколко секунди",
42
+ m : "минута",
43
+ mm : "%d минути",
44
+ h : "час",
45
+ hh : "%d часа",
46
+ d : "ден",
47
+ dd : "%d дни",
48
+ M : "месец",
49
+ MM : "%d месеца",
50
+ y : "година",
51
+ yy : "%d години"
52
+ },
53
+ ordinal : function (number) {
54
+ return '.';
55
+ }
56
+ };
57
+
58
+ // Node
59
+ if (typeof module !== 'undefined') {
60
+ module.exports = lang;
61
+ }
62
+ // Browser
63
+ if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
64
+ this.moment.lang('bg', lang);
65
+ }
66
+ }());
@@ -1,9 +1,13 @@
1
+ // moment.js language configuration
2
+ // language : catalan (ca)
3
+ // author : Juan G. Hurtado : https://github.com/juanghurtado
1
4
  (function () {
2
5
  var lang = {
3
6
  months : "Gener_Febrer_Març_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre".split("_"),
4
7
  monthsShort : "Gen._Febr._Mar._Abr._Mai._Jun._Jul._Ag._Set._Oct._Nov._Des.".split("_"),
5
8
  weekdays : "Diumenge_Dilluns_Dimarts_Dimecres_Dijous_Divendres_Dissabte".split("_"),
6
9
  weekdaysShort : "Dg._Dl._Dt._Dc._Dj._Dv._Ds.".split("_"),
10
+ weekdaysMin : "Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),
7
11
  longDateFormat : {
8
12
  LT : "H:mm",
9
13
  L : "DD/MM/YYYY",
@@ -50,7 +54,7 @@
50
54
  };
51
55
 
52
56
  // Node
53
- if (typeof module !== 'undefined') {
57
+ if (typeof module !== 'undefined' && module.exports) {
54
58
  module.exports = lang;
55
59
  }
56
60
  // Browser
@@ -0,0 +1,54 @@
1
+ // moment.js language configuration
2
+ // language : chuvash (cv)
3
+ // author : Anatoly Mironov : https://github.com/mirontoli
4
+ (function () {
5
+ var lang = {
6
+ months : "кăрлач_нарăс_пуш_ака_май_çĕртме_утă_çурла_авăн_юпа_чӳк_раштав".split("_"),
7
+ monthsShort : "кăр_нар_пуш_ака_май_çĕр_утă_çур_ав_юпа_чӳк_раш".split("_"),
8
+ weekdays : "вырсарникун_тунтикун_ытларикун_юнкун_кĕçнерникун_эрнекун_шăматкун".split("_"),
9
+ weekdaysShort : "выр_тун_ытл_юн_кĕç_эрн_шăм".split("_"),
10
+ weekdaysMin : "вр_тн_ыт_юн_кç_эр_шм".split("_"),
11
+ longDateFormat : {
12
+ LT : "HH:mm",
13
+ L : "DD-MM-YYYY",
14
+ LL : "YYYY çулхи MMMM уйăхĕн D-мĕшĕ",
15
+ LLL : "YYYY çулхи MMMM уйăхĕн D-мĕшĕ, LT",
16
+ LLLL : "dddd, YYYY çулхи MMMM уйăхĕн D-мĕшĕ, LT"
17
+ },
18
+ calendar : {
19
+ sameDay: '[Паян] LT [сехетре]',
20
+ nextDay: '[Ыран] LT [сехетре]',
21
+ lastDay: '[Ĕнер] LT [сехетре]',
22
+ nextWeek: '[Çитес] dddd LT [сехетре]',
23
+ lastWeek: '[Иртнĕ] dddd LT [сехетре]',
24
+ sameElse: 'L'
25
+ },
26
+ relativeTime : {
27
+ future : "%sран",
28
+ past : "%s каялла",
29
+ s : "пĕр-ик çеккунт",
30
+ m : "пĕр минут",
31
+ mm : "%d минут",
32
+ h : "пĕр сехет",
33
+ hh : "%d сехет",
34
+ d : "пĕр кун",
35
+ dd : "%d кун",
36
+ M : "пĕр уйăх",
37
+ MM : "%d уйăх",
38
+ y : "пĕр çул",
39
+ yy : "%d çул"
40
+ },
41
+ ordinal : function (number) {
42
+ return '-мĕш';
43
+ }
44
+ };
45
+
46
+ // Node
47
+ if (typeof module !== 'undefined' && module.exports) {
48
+ module.exports = lang;
49
+ }
50
+ // Browser
51
+ if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
52
+ this.moment.lang('cv', lang);
53
+ }
54
+ }());
@@ -1,9 +1,13 @@
1
+ // moment.js language configuration
2
+ // language : danish (da)
3
+ // author : Ulrik Nielsen : https://github.com/mrbase
1
4
  (function () {
2
5
  var lang = {
3
6
  months : "Januar_Februar_Marts_April_Maj_Juni_Juli_August_September_Oktober_November_December".split("_"),
4
7
  monthsShort : "Jan_Feb_Mar_Apr_Maj_Jun_Jul_Aug_Sep_Okt_Nov_Dec".split("_"),
5
8
  weekdays : "Søndag_Mandag_Tirsdag_Onsdag_Torsdag_Fredag_Lørdag".split("_"),
6
9
  weekdaysShort : "Søn_Man_Tir_Ons_Tor_Fre_Lør".split("_"),
10
+ weekdaysMin : "Sø_Ma_Ti_On_To_Fr_Lø".split("_"),
7
11
  longDateFormat : {
8
12
  LT : "h:mm A",
9
13
  L : "DD/MM/YYYY",
@@ -35,12 +39,12 @@
35
39
  yy : "%d år"
36
40
  },
37
41
  ordinal : function (number) {
38
- return '.';
42
+ return '.';
39
43
  }
40
44
  };
41
45
 
42
46
  // Node
43
- if (typeof module !== 'undefined') {
47
+ if (typeof module !== 'undefined' && module.exports) {
44
48
  module.exports = lang;
45
49
  }
46
50
  // Browser
@@ -1,9 +1,13 @@
1
+ // moment.js language configuration
2
+ // language : german (de)
3
+ // author : lluchs : https://github.com/lluchs
1
4
  (function () {
2
5
  var lang = {
3
6
  months : "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),
4
7
  monthsShort : "Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),
5
8
  weekdays : "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),
6
9
  weekdaysShort : "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),
10
+ weekdaysMin : "So_Mo_Di_Mi_Do_Fr_Sa".split("_"),
7
11
  longDateFormat : {
8
12
  LT: "H:mm U\\hr",
9
13
  L : "DD.MM.YYYY",
@@ -40,7 +44,7 @@
40
44
  };
41
45
 
42
46
  // Node
43
- if (typeof module !== 'undefined') {
47
+ if (typeof module !== 'undefined' && module.exports) {
44
48
  module.exports = lang;
45
49
  }
46
50
  // Browser
@@ -0,0 +1,58 @@
1
+ // moment.js language configuration
2
+ // language : canadian english (en-ca)
3
+ // author : Jonathan Abourbih : https://github.com/jonbca
4
+ (function () {
5
+ var lang = {
6
+ months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
7
+ monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
8
+ weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
9
+ weekdaysShort : "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
10
+ weekdaysMin : "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
11
+ longDateFormat : {
12
+ LT : "h:mm A",
13
+ L : "YYYY-MM-DD",
14
+ LL : "D MMMM, YYYY",
15
+ LLL : "D MMMM, YYYY LT",
16
+ LLLL : "dddd, D MMMM, YYYY LT"
17
+ },
18
+ calendar : {
19
+ sameDay : '[Today at] LT',
20
+ nextDay : '[Tomorrow at] LT',
21
+ nextWeek : 'dddd [at] LT',
22
+ lastDay : '[Yesterday at] LT',
23
+ lastWeek : '[last] dddd [at] LT',
24
+ sameElse : 'L'
25
+ },
26
+ relativeTime : {
27
+ future : "in %s",
28
+ past : "%s ago",
29
+ s : "a few seconds",
30
+ m : "a minute",
31
+ mm : "%d minutes",
32
+ h : "an hour",
33
+ hh : "%d hours",
34
+ d : "a day",
35
+ dd : "%d days",
36
+ M : "a month",
37
+ MM : "%d months",
38
+ y : "a year",
39
+ yy : "%d years"
40
+ },
41
+ ordinal : function (number) {
42
+ var b = number % 10;
43
+ return (~~ (number % 100 / 10) === 1) ? 'th' :
44
+ (b === 1) ? 'st' :
45
+ (b === 2) ? 'nd' :
46
+ (b === 3) ? 'rd' : 'th';
47
+ }
48
+ };
49
+
50
+ // Node
51
+ if (typeof module !== 'undefined' && module.exports) {
52
+ module.exports = lang;
53
+ }
54
+ // Browser
55
+ if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
56
+ this.moment.lang('en-gb', lang);
57
+ }
58
+ }());
@@ -1,9 +1,13 @@
1
+ // moment.js language configuration
2
+ // language : great britain english (en-gb)
3
+ // author : Chris Gedrim : https://github.com/chrisgedrim
1
4
  (function () {
2
5
  var lang = {
3
6
  months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
4
7
  monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
5
8
  weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
6
9
  weekdaysShort : "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
10
+ weekdaysMin : "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
7
11
  longDateFormat : {
8
12
  LT : "h:mm A",
9
13
  L : "DD/MM/YYYY",
@@ -44,7 +48,7 @@
44
48
  };
45
49
 
46
50
  // Node
47
- if (typeof module !== 'undefined') {
51
+ if (typeof module !== 'undefined' && module.exports) {
48
52
  module.exports = lang;
49
53
  }
50
54
  // Browser
@@ -1,9 +1,13 @@
1
+ // moment.js language configuration
2
+ // language : spanish (es)
3
+ // author : Julio Napurí : https://github.com/julionc
1
4
  (function () {
2
5
  var lang = {
3
6
  months : "Enero_Febrero_Marzo_Abril_Mayo_Junio_Julio_Agosto_Septiembre_Octubre_Noviembre_Diciembre".split("_"),
4
7
  monthsShort : "Ene._Feb._Mar._Abr._May._Jun._Jul._Ago._Sep._Oct._Nov._Dic.".split("_"),
5
8
  weekdays : "Domingo_Lunes_Martes_Miércoles_Jueves_Viernes_Sábado".split("_"),
6
9
  weekdaysShort : "Dom._Lun._Mar._Mié._Jue._Vie._Sáb.".split("_"),
10
+ weekdaysMin : "Do_Lu_Ma_Mi_Ju_Vi_Sá".split("_"),
7
11
  longDateFormat : {
8
12
  LT : "H:mm",
9
13
  L : "DD/MM/YYYY",
@@ -50,7 +54,7 @@
50
54
  };
51
55
 
52
56
  // Node
53
- if (typeof module !== 'undefined') {
57
+ if (typeof module !== 'undefined' && module.exports) {
54
58
  module.exports = lang;
55
59
  }
56
60
  // Browser
@@ -1,9 +1,13 @@
1
+ // moment.js language configuration
2
+ // language : euskara (eu)
3
+ // author : Eneko Illarramendi : https://github.com/eillarra
1
4
  (function () {
2
5
  var lang = {
3
6
  months : "urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),
4
7
  monthsShort : "urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),
5
8
  weekdays : "igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),
6
9
  weekdaysShort : "ig._al._ar._az._og._ol._lr.".split("_"),
10
+ weekdaysMin : "ig_al_ar_az_og_ol_lr".split("_"),
7
11
  longDateFormat : {
8
12
  LT : "HH:mm",
9
13
  L : "YYYY-MM-DD",
@@ -40,7 +44,7 @@
40
44
  };
41
45
 
42
46
  // Node
43
- if (typeof module !== 'undefined') {
47
+ if (typeof module !== 'undefined' && module.exports) {
44
48
  module.exports = lang;
45
49
  }
46
50
  // Browser
@@ -1,3 +1,6 @@
1
+ // moment.js language configuration
2
+ // language : finnish (fi)
3
+ // author : Tarmo Aidantausta : https://github.com/bleadof
1
4
  (function () {
2
5
  var numbers_past = ['nolla', 'yksi', 'kaksi', 'kolme', 'neljä', 'viisi',
3
6
  'kuusi', 'seitsemän', 'kahdeksan', 'yhdeksän'];
@@ -48,6 +51,7 @@
48
51
  monthsShort : "tam_hel_maa_huh_tou_kes_hei_elo_syy_lok_mar_jou".split("_"),
49
52
  weekdays : "sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),
50
53
  weekdaysShort : "su_ma_ti_ke_to_pe_la".split("_"),
54
+ weekdaysMin : "su_ma_ti_ke_to_pe_la".split("_"),
51
55
  longDateFormat : {
52
56
  LT : "HH.mm",
53
57
  L : "DD.MM.YYYY",
@@ -84,11 +88,11 @@
84
88
  };
85
89
 
86
90
  // Node
87
- if (typeof module !== 'undefined') {
91
+ if (typeof module !== 'undefined' && module.exports) {
88
92
  module.exports = lang;
89
93
  }
90
94
  // Browser
91
95
  if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
92
96
  this.moment.lang('fi', lang);
93
97
  }
94
- }());
98
+ }());
@@ -0,0 +1,54 @@
1
+ // moment.js language configuration
2
+ // language : canadian french (fr-ca)
3
+ // author : Jonathan Abourbih : https://github.com/jonbca
4
+ (function () {
5
+ var lang = {
6
+ months : "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),
7
+ monthsShort : "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
8
+ weekdays : "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
9
+ weekdaysShort : "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
10
+ weekdaysMin : "Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),
11
+ longDateFormat : {
12
+ LT : "HH:mm",
13
+ L : "YYYY-MM-DD",
14
+ LL : "D MMMM YYYY",
15
+ LLL : "D MMMM YYYY LT",
16
+ LLLL : "dddd D MMMM YYYY LT"
17
+ },
18
+ calendar : {
19
+ sameDay: "[Aujourd'hui à] LT",
20
+ nextDay: '[Demain à] LT',
21
+ nextWeek: 'dddd [à] LT',
22
+ lastDay: '[Hier à] LT',
23
+ lastWeek: 'dddd [dernier à] LT',
24
+ sameElse: 'L'
25
+ },
26
+ relativeTime : {
27
+ future : "dans %s",
28
+ past : "il y a %s",
29
+ s : "quelques secondes",
30
+ m : "une minute",
31
+ mm : "%d minutes",
32
+ h : "une heure",
33
+ hh : "%d heures",
34
+ d : "un jour",
35
+ dd : "%d jours",
36
+ M : "un mois",
37
+ MM : "%d mois",
38
+ y : "une année",
39
+ yy : "%d années"
40
+ },
41
+ ordinal : function (number) {
42
+ return number === 1 ? 'er' : 'ème';
43
+ }
44
+ };
45
+
46
+ // Node
47
+ if (typeof module !== 'undefined' && module.exports) {
48
+ module.exports = lang;
49
+ }
50
+ // Browser
51
+ if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
52
+ this.moment.lang('fr', lang);
53
+ }
54
+ }());
@@ -1,9 +1,13 @@
1
+ // moment.js language configuration
2
+ // language : french (fr)
3
+ // author : John Fischer : https://github.com/jfroffice
1
4
  (function () {
2
5
  var lang = {
3
6
  months : "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),
4
7
  monthsShort : "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
5
8
  weekdays : "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
6
9
  weekdaysShort : "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
10
+ weekdaysMin : "Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),
7
11
  longDateFormat : {
8
12
  LT : "HH:mm",
9
13
  L : "DD/MM/YYYY",
@@ -40,7 +44,7 @@
40
44
  };
41
45
 
42
46
  // Node
43
- if (typeof module !== 'undefined') {
47
+ if (typeof module !== 'undefined' && module.exports) {
44
48
  module.exports = lang;
45
49
  }
46
50
  // Browser
@@ -1,9 +1,13 @@
1
+ // moment.js language configuration
2
+ // language : galician (gl)
3
+ // author : Juan G. Hurtado : https://github.com/juanghurtado
1
4
  (function () {
2
5
  var lang = {
3
6
  months : "Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Octubro_Novembro_Decembro".split("_"),
4
7
  monthsShort : "Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),
5
8
  weekdays : "Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),
6
9
  weekdaysShort : "Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),
10
+ weekdaysMin : "Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"),
7
11
  longDateFormat : {
8
12
  LT : "H:mm",
9
13
  L : "DD/MM/YYYY",
@@ -50,7 +54,7 @@
50
54
  };
51
55
 
52
56
  // Node
53
- if (typeof module !== 'undefined') {
57
+ if (typeof module !== 'undefined' && module.exports) {
54
58
  module.exports = lang;
55
59
  }
56
60
  // Browser