momentjs-rails 2.2.1 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/dummy/log/test.log +147 -14
  5. data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
  6. data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
  7. data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
  8. data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
  9. data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
  10. data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
  11. data/test/integration/navigation_test.rb +1 -1
  12. data/vendor/assets/javascripts/moment.js +717 -178
  13. data/vendor/assets/javascripts/moment/ar-ma.js +2 -2
  14. data/vendor/assets/javascripts/moment/ar.js +2 -2
  15. data/vendor/assets/javascripts/moment/bg.js +3 -3
  16. data/vendor/assets/javascripts/moment/br.js +2 -2
  17. data/vendor/assets/javascripts/moment/bs.js +139 -0
  18. data/vendor/assets/javascripts/moment/ca.js +2 -2
  19. data/vendor/assets/javascripts/moment/cs.js +2 -2
  20. data/vendor/assets/javascripts/moment/cv.js +2 -2
  21. data/vendor/assets/javascripts/moment/cy.js +77 -0
  22. data/vendor/assets/javascripts/moment/da.js +2 -2
  23. data/vendor/assets/javascripts/moment/de.js +2 -2
  24. data/vendor/assets/javascripts/moment/el.js +2 -2
  25. data/vendor/assets/javascripts/moment/en-au.js +62 -0
  26. data/vendor/assets/javascripts/moment/en-ca.js +2 -2
  27. data/vendor/assets/javascripts/moment/en-gb.js +2 -2
  28. data/vendor/assets/javascripts/moment/eo.js +2 -2
  29. data/vendor/assets/javascripts/moment/es.js +2 -2
  30. data/vendor/assets/javascripts/moment/et.js +2 -2
  31. data/vendor/assets/javascripts/moment/eu.js +2 -2
  32. data/vendor/assets/javascripts/moment/fa.js +2 -2
  33. data/vendor/assets/javascripts/moment/fi.js +2 -2
  34. data/vendor/assets/javascripts/moment/fo.js +56 -0
  35. data/vendor/assets/javascripts/moment/fr-ca.js +2 -2
  36. data/vendor/assets/javascripts/moment/fr.js +2 -2
  37. data/vendor/assets/javascripts/moment/gl.js +2 -2
  38. data/vendor/assets/javascripts/moment/he.js +2 -2
  39. data/vendor/assets/javascripts/moment/hi.js +2 -2
  40. data/vendor/assets/javascripts/moment/hr.js +2 -2
  41. data/vendor/assets/javascripts/moment/hu.js +4 -3
  42. data/vendor/assets/javascripts/moment/id.js +2 -2
  43. data/vendor/assets/javascripts/moment/is.js +2 -2
  44. data/vendor/assets/javascripts/moment/it.js +2 -2
  45. data/vendor/assets/javascripts/moment/ja.js +2 -2
  46. data/vendor/assets/javascripts/moment/ka.js +2 -2
  47. data/vendor/assets/javascripts/moment/ko.js +2 -2
  48. data/vendor/assets/javascripts/moment/lt.js +118 -0
  49. data/vendor/assets/javascripts/moment/lv.js +2 -2
  50. data/vendor/assets/javascripts/moment/ml.js +2 -2
  51. data/vendor/assets/javascripts/moment/mr.js +2 -2
  52. data/vendor/assets/javascripts/moment/ms-my.js +2 -2
  53. data/vendor/assets/javascripts/moment/nb.js +2 -2
  54. data/vendor/assets/javascripts/moment/ne.js +2 -2
  55. data/vendor/assets/javascripts/moment/nl.js +5 -5
  56. data/vendor/assets/javascripts/moment/nn.js +2 -2
  57. data/vendor/assets/javascripts/moment/pl.js +2 -2
  58. data/vendor/assets/javascripts/moment/pt-br.js +2 -2
  59. data/vendor/assets/javascripts/moment/pt.js +2 -2
  60. data/vendor/assets/javascripts/moment/ro.js +2 -2
  61. data/vendor/assets/javascripts/moment/ru.js +20 -5
  62. data/vendor/assets/javascripts/moment/sk.js +2 -2
  63. data/vendor/assets/javascripts/moment/sl.js +2 -2
  64. data/vendor/assets/javascripts/moment/sq.js +2 -2
  65. data/vendor/assets/javascripts/moment/sv.js +2 -2
  66. data/vendor/assets/javascripts/moment/th.js +2 -2
  67. data/vendor/assets/javascripts/moment/tl-ph.js +58 -0
  68. data/vendor/assets/javascripts/moment/tr.js +2 -2
  69. data/vendor/assets/javascripts/moment/tzm-la.js +2 -2
  70. data/vendor/assets/javascripts/moment/tzm.js +2 -2
  71. data/vendor/assets/javascripts/moment/uk.js +18 -3
  72. data/vendor/assets/javascripts/moment/uz.js +55 -0
  73. data/vendor/assets/javascripts/moment/vn.js +62 -0
  74. data/vendor/assets/javascripts/moment/zh-cn.js +43 -18
  75. data/vendor/assets/javascripts/moment/zh-tw.js +7 -6
  76. metadata +10 -2
@@ -6,12 +6,12 @@
6
6
  if (typeof define === 'function' && define.amd) {
7
7
  define(['moment'], factory); // AMD
8
8
  } else if (typeof exports === 'object') {
9
- factory(require('../moment')); // Node
9
+ module.exports = factory(require('../moment')); // Node
10
10
  } else {
11
11
  factory(window.moment); // Browser global
12
12
  }
13
13
  }(function (moment) {
14
- moment.lang('en-ca', {
14
+ return moment.lang('en-ca', {
15
15
  months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
16
16
  monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
17
17
  weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
@@ -6,12 +6,12 @@
6
6
  if (typeof define === 'function' && define.amd) {
7
7
  define(['moment'], factory); // AMD
8
8
  } else if (typeof exports === 'object') {
9
- factory(require('../moment')); // Node
9
+ module.exports = factory(require('../moment')); // Node
10
10
  } else {
11
11
  factory(window.moment); // Browser global
12
12
  }
13
13
  }(function (moment) {
14
- moment.lang('en-gb', {
14
+ return moment.lang('en-gb', {
15
15
  months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
16
16
  monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
17
17
  weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
@@ -8,12 +8,12 @@
8
8
  if (typeof define === 'function' && define.amd) {
9
9
  define(['moment'], factory); // AMD
10
10
  } else if (typeof exports === 'object') {
11
- factory(require('../moment')); // Node
11
+ module.exports = factory(require('../moment')); // Node
12
12
  } else {
13
13
  factory(window.moment); // Browser global
14
14
  }
15
15
  }(function (moment) {
16
- moment.lang('eo', {
16
+ return moment.lang('eo', {
17
17
  months : "januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),
18
18
  monthsShort : "jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),
19
19
  weekdays : "Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),
@@ -6,12 +6,12 @@
6
6
  if (typeof define === 'function' && define.amd) {
7
7
  define(['moment'], factory); // AMD
8
8
  } else if (typeof exports === 'object') {
9
- factory(require('../moment')); // Node
9
+ module.exports = factory(require('../moment')); // Node
10
10
  } else {
11
11
  factory(window.moment); // Browser global
12
12
  }
13
13
  }(function (moment) {
14
- moment.lang('es', {
14
+ return moment.lang('es', {
15
15
  months : "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),
16
16
  monthsShort : "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),
17
17
  weekdays : "domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),
@@ -6,7 +6,7 @@
6
6
  if (typeof define === 'function' && define.amd) {
7
7
  define(['moment'], factory); // AMD
8
8
  } else if (typeof exports === 'object') {
9
- factory(require('../moment')); // Node
9
+ module.exports = factory(require('../moment')); // Node
10
10
  } else {
11
11
  factory(window.moment); // Browser global
12
12
  }
@@ -15,7 +15,7 @@
15
15
  return (isFuture || withoutSuffix) ? 'paari sekundi' : 'paar sekundit';
16
16
  }
17
17
 
18
- moment.lang('et', {
18
+ return moment.lang('et', {
19
19
  months : "jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),
20
20
  monthsShort : "jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),
21
21
  weekdays : "pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),
@@ -6,12 +6,12 @@
6
6
  if (typeof define === 'function' && define.amd) {
7
7
  define(['moment'], factory); // AMD
8
8
  } else if (typeof exports === 'object') {
9
- factory(require('../moment')); // Node
9
+ module.exports = factory(require('../moment')); // Node
10
10
  } else {
11
11
  factory(window.moment); // Browser global
12
12
  }
13
13
  }(function (moment) {
14
- moment.lang('eu', {
14
+ return moment.lang('eu', {
15
15
  months : "urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),
16
16
  monthsShort : "urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),
17
17
  weekdays : "igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),
@@ -6,7 +6,7 @@
6
6
  if (typeof define === 'function' && define.amd) {
7
7
  define(['moment'], factory); // AMD
8
8
  } else if (typeof exports === 'object') {
9
- factory(require('../moment')); // Node
9
+ module.exports = factory(require('../moment')); // Node
10
10
  } else {
11
11
  factory(window.moment); // Browser global
12
12
  }
@@ -35,7 +35,7 @@
35
35
  '۰': '0'
36
36
  };
37
37
 
38
- moment.lang('fa', {
38
+ return moment.lang('fa', {
39
39
  months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
40
40
  monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
41
41
  weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
@@ -6,7 +6,7 @@
6
6
  if (typeof define === 'function' && define.amd) {
7
7
  define(['moment'], factory); // AMD
8
8
  } else if (typeof exports === 'object') {
9
- factory(require('../moment')); // Node
9
+ module.exports = factory(require('../moment')); // Node
10
10
  } else {
11
11
  factory(window.moment); // Browser global
12
12
  }
@@ -54,7 +54,7 @@
54
54
  return number < 10 ? (isFuture ? numbers_future[number] : numbers_past[number]) : number;
55
55
  }
56
56
 
57
- moment.lang('fi', {
57
+ return moment.lang('fi', {
58
58
  months : "tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),
59
59
  monthsShort : "tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),
60
60
  weekdays : "sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),
@@ -0,0 +1,56 @@
1
+ // moment.js language configuration
2
+ // language : faroese (fo)
3
+ // author : Ragnar Johannesen : https://github.com/ragnar123
4
+
5
+ (function (factory) {
6
+ if (typeof define === 'function' && define.amd) {
7
+ define(['moment'], factory); // AMD
8
+ } else if (typeof exports === 'object') {
9
+ module.exports = factory(require('../moment')); // Node
10
+ } else {
11
+ factory(window.moment); // Browser global
12
+ }
13
+ }(function (moment) {
14
+ return moment.lang('fo', {
15
+ months : "januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),
16
+ monthsShort : "jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),
17
+ weekdays : "sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),
18
+ weekdaysShort : "sun_mán_týs_mik_hós_frí_ley".split("_"),
19
+ weekdaysMin : "su_má_tý_mi_hó_fr_le".split("_"),
20
+ longDateFormat : {
21
+ LT : "HH:mm",
22
+ L : "DD/MM/YYYY",
23
+ LL : "D MMMM YYYY",
24
+ LLL : "D MMMM YYYY LT",
25
+ LLLL : "dddd D. MMMM, YYYY LT"
26
+ },
27
+ calendar : {
28
+ sameDay : '[Í dag kl.] LT',
29
+ nextDay : '[Í morgin kl.] LT',
30
+ nextWeek : 'dddd [kl.] LT',
31
+ lastDay : '[Í gjár kl.] LT',
32
+ lastWeek : '[síðstu] dddd [kl] LT',
33
+ sameElse : 'L'
34
+ },
35
+ relativeTime : {
36
+ future : "um %s",
37
+ past : "%s síðani",
38
+ s : "fá sekund",
39
+ m : "ein minutt",
40
+ mm : "%d minuttir",
41
+ h : "ein tími",
42
+ hh : "%d tímar",
43
+ d : "ein dagur",
44
+ dd : "%d dagar",
45
+ M : "ein mánaði",
46
+ MM : "%d mánaðir",
47
+ y : "eitt ár",
48
+ yy : "%d ár"
49
+ },
50
+ ordinal : '%d.',
51
+ week : {
52
+ dow : 1, // Monday is the first day of the week.
53
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
54
+ }
55
+ });
56
+ }));
@@ -6,12 +6,12 @@
6
6
  if (typeof define === 'function' && define.amd) {
7
7
  define(['moment'], factory); // AMD
8
8
  } else if (typeof exports === 'object') {
9
- factory(require('../moment')); // Node
9
+ module.exports = factory(require('../moment')); // Node
10
10
  } else {
11
11
  factory(window.moment); // Browser global
12
12
  }
13
13
  }(function (moment) {
14
- moment.lang('fr-ca', {
14
+ return moment.lang('fr-ca', {
15
15
  months : "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),
16
16
  monthsShort : "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
17
17
  weekdays : "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
@@ -6,12 +6,12 @@
6
6
  if (typeof define === 'function' && define.amd) {
7
7
  define(['moment'], factory); // AMD
8
8
  } else if (typeof exports === 'object') {
9
- factory(require('../moment')); // Node
9
+ module.exports = factory(require('../moment')); // Node
10
10
  } else {
11
11
  factory(window.moment); // Browser global
12
12
  }
13
13
  }(function (moment) {
14
- moment.lang('fr', {
14
+ return moment.lang('fr', {
15
15
  months : "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),
16
16
  monthsShort : "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
17
17
  weekdays : "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
@@ -6,12 +6,12 @@
6
6
  if (typeof define === 'function' && define.amd) {
7
7
  define(['moment'], factory); // AMD
8
8
  } else if (typeof exports === 'object') {
9
- factory(require('../moment')); // Node
9
+ module.exports = factory(require('../moment')); // Node
10
10
  } else {
11
11
  factory(window.moment); // Browser global
12
12
  }
13
13
  }(function (moment) {
14
- moment.lang('gl', {
14
+ return moment.lang('gl', {
15
15
  months : "Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"),
16
16
  monthsShort : "Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),
17
17
  weekdays : "Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),
@@ -8,12 +8,12 @@
8
8
  if (typeof define === 'function' && define.amd) {
9
9
  define(['moment'], factory); // AMD
10
10
  } else if (typeof exports === 'object') {
11
- factory(require('../moment')); // Node
11
+ module.exports = factory(require('../moment')); // Node
12
12
  } else {
13
13
  factory(window.moment); // Browser global
14
14
  }
15
15
  }(function (moment) {
16
- moment.lang('he', {
16
+ return moment.lang('he', {
17
17
  months : "ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),
18
18
  monthsShort : "ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),
19
19
  weekdays : "ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),
@@ -6,7 +6,7 @@
6
6
  if (typeof define === 'function' && define.amd) {
7
7
  define(['moment'], factory); // AMD
8
8
  } else if (typeof exports === 'object') {
9
- factory(require('../moment')); // Node
9
+ module.exports = factory(require('../moment')); // Node
10
10
  } else {
11
11
  factory(window.moment); // Browser global
12
12
  }
@@ -36,7 +36,7 @@
36
36
  '०': '0'
37
37
  };
38
38
 
39
- moment.lang('hi', {
39
+ return moment.lang('hi', {
40
40
  months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split("_"),
41
41
  monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split("_"),
42
42
  weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split("_"),
@@ -8,7 +8,7 @@
8
8
  if (typeof define === 'function' && define.amd) {
9
9
  define(['moment'], factory); // AMD
10
10
  } else if (typeof exports === 'object') {
11
- factory(require('../moment')); // Node
11
+ module.exports = factory(require('../moment')); // Node
12
12
  } else {
13
13
  factory(window.moment); // Browser global
14
14
  }
@@ -67,7 +67,7 @@
67
67
  }
68
68
  }
69
69
 
70
- moment.lang('hr', {
70
+ return moment.lang('hr', {
71
71
  months : "sječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),
72
72
  monthsShort : "sje._vel._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),
73
73
  weekdays : "nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),
@@ -6,7 +6,7 @@
6
6
  if (typeof define === 'function' && define.amd) {
7
7
  define(['moment'], factory); // AMD
8
8
  } else if (typeof exports === 'object') {
9
- factory(require('../moment')); // Node
9
+ module.exports = factory(require('../moment')); // Node
10
10
  } else {
11
11
  factory(window.moment); // Browser global
12
12
  }
@@ -49,11 +49,12 @@
49
49
  return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
50
50
  }
51
51
 
52
- moment.lang('hu', {
52
+ return moment.lang('hu', {
53
53
  months : "január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),
54
54
  monthsShort : "jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),
55
55
  weekdays : "vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),
56
- weekdaysShort : "v_h_k_sze_cs_p_szo".split("_"),
56
+ weekdaysShort : "vas_hét_kedd_sze_csüt_pén_szo".split("_"),
57
+ weekdaysMin : "v_h_k_sze_cs_p_szo".split("_"),
57
58
  longDateFormat : {
58
59
  LT : "H:mm",
59
60
  L : "YYYY.MM.DD.",
@@ -7,12 +7,12 @@
7
7
  if (typeof define === 'function' && define.amd) {
8
8
  define(['moment'], factory); // AMD
9
9
  } else if (typeof exports === 'object') {
10
- factory(require('../moment')); // Node
10
+ module.exports = factory(require('../moment')); // Node
11
11
  } else {
12
12
  factory(window.moment); // Browser global
13
13
  }
14
14
  }(function (moment) {
15
- moment.lang('id', {
15
+ return moment.lang('id', {
16
16
  months : "Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),
17
17
  monthsShort : "Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),
18
18
  weekdays : "Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),
@@ -6,7 +6,7 @@
6
6
  if (typeof define === 'function' && define.amd) {
7
7
  define(['moment'], factory); // AMD
8
8
  } else if (typeof exports === 'object') {
9
- factory(require('../moment')); // Node
9
+ module.exports = factory(require('../moment')); // Node
10
10
  } else {
11
11
  factory(window.moment); // Browser global
12
12
  }
@@ -79,7 +79,7 @@
79
79
  }
80
80
  }
81
81
 
82
- moment.lang('is', {
82
+ return moment.lang('is', {
83
83
  months : "janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),
84
84
  monthsShort : "jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),
85
85
  weekdays : "sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),
@@ -7,12 +7,12 @@
7
7
  if (typeof define === 'function' && define.amd) {
8
8
  define(['moment'], factory); // AMD
9
9
  } else if (typeof exports === 'object') {
10
- factory(require('../moment')); // Node
10
+ module.exports = factory(require('../moment')); // Node
11
11
  } else {
12
12
  factory(window.moment); // Browser global
13
13
  }
14
14
  }(function (moment) {
15
- moment.lang('it', {
15
+ return moment.lang('it', {
16
16
  months : "Gennaio_Febbraio_Marzo_Aprile_Maggio_Giugno_Luglio_Agosto_Settembre_Ottobre_Novembre_Dicembre".split("_"),
17
17
  monthsShort : "Gen_Feb_Mar_Apr_Mag_Giu_Lug_Ago_Set_Ott_Nov_Dic".split("_"),
18
18
  weekdays : "Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),
@@ -6,12 +6,12 @@
6
6
  if (typeof define === 'function' && define.amd) {
7
7
  define(['moment'], factory); // AMD
8
8
  } else if (typeof exports === 'object') {
9
- factory(require('../moment')); // Node
9
+ module.exports = factory(require('../moment')); // Node
10
10
  } else {
11
11
  factory(window.moment); // Browser global
12
12
  }
13
13
  }(function (moment) {
14
- moment.lang('ja', {
14
+ return moment.lang('ja', {
15
15
  months : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
16
16
  monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
17
17
  weekdays : "日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),
@@ -6,7 +6,7 @@
6
6
  if (typeof define === 'function' && define.amd) {
7
7
  define(['moment'], factory); // AMD
8
8
  } else if (typeof exports === 'object') {
9
- factory(require('../moment')); // Node
9
+ module.exports = factory(require('../moment')); // Node
10
10
  } else {
11
11
  factory(window.moment); // Browser global
12
12
  }
@@ -38,7 +38,7 @@
38
38
  return weekdays[nounCase][m.day()];
39
39
  }
40
40
 
41
- moment.lang('ka', {
41
+ return moment.lang('ka', {
42
42
  months : monthsCaseReplace,
43
43
  monthsShort : "იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),
44
44
  weekdays : weekdaysCaseReplace,
@@ -6,12 +6,12 @@
6
6
  if (typeof define === 'function' && define.amd) {
7
7
  define(['moment'], factory); // AMD
8
8
  } else if (typeof exports === 'object') {
9
- factory(require('../moment')); // Node
9
+ module.exports = factory(require('../moment')); // Node
10
10
  } else {
11
11
  factory(window.moment); // Browser global
12
12
  }
13
13
  }(function (moment) {
14
- moment.lang('ko', {
14
+ return moment.lang('ko', {
15
15
  months : "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
16
16
  monthsShort : "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
17
17
  weekdays : "일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),
@@ -0,0 +1,118 @@
1
+ // moment.js language configuration
2
+ // language : Lithuanian (lt)
3
+ // author : Mindaugas Mozūras : https://github.com/mmozuras
4
+
5
+ (function (factory) {
6
+ if (typeof define === 'function' && define.amd) {
7
+ define(['moment'], factory); // AMD
8
+ } else if (typeof exports === 'object') {
9
+ module.exports = factory(require('../moment')); // Node
10
+ } else {
11
+ factory(window.moment); // Browser global
12
+ }
13
+ }(function (moment) {
14
+ var units = {
15
+ "m" : "minutė_minutės_minutę",
16
+ "mm": "minutės_minučių_minutes",
17
+ "h" : "valanda_valandos_valandą",
18
+ "hh": "valandos_valandų_valandas",
19
+ "d" : "diena_dienos_dieną",
20
+ "dd": "dienos_dienų_dienas",
21
+ "M" : "mėnuo_mėnesio_mėnesį",
22
+ "MM": "mėnesiai_mėnesių_mėnesius",
23
+ "y" : "metai_metų_metus",
24
+ "yy": "metai_metų_metus"
25
+ },
26
+ weekDays = "pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis_sekmadienis".split("_");
27
+
28
+ function translateSeconds(number, withoutSuffix, key, isFuture) {
29
+ if (withoutSuffix) {
30
+ return "kelios sekundės";
31
+ } else {
32
+ return isFuture ? "kelių sekundžių" : "kelias sekundes";
33
+ }
34
+ }
35
+
36
+ function translateSingular(number, withoutSuffix, key, isFuture) {
37
+ return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
38
+ }
39
+
40
+ function special(number) {
41
+ return number % 10 === 0 || (number > 10 && number < 20);
42
+ }
43
+
44
+ function forms(key) {
45
+ return units[key].split("_");
46
+ }
47
+
48
+ function translate(number, withoutSuffix, key, isFuture) {
49
+ var result = number + " ";
50
+ if (number === 1) {
51
+ return result + translateSingular(number, withoutSuffix, key[0], isFuture);
52
+ } else if (withoutSuffix) {
53
+ return result + (special(number) ? forms(key)[1] : forms(key)[0]);
54
+ } else {
55
+ if (isFuture) {
56
+ return result + forms(key)[1];
57
+ } else {
58
+ return result + (special(number) ? forms(key)[1] : forms(key)[2]);
59
+ }
60
+ }
61
+ }
62
+
63
+ function relativeWeekDay(moment, format) {
64
+ var nominative = format.indexOf('dddd LT') === -1,
65
+ weekDay = weekDays[moment.weekday()];
66
+
67
+ return nominative ? weekDay : weekDay.substring(0, weekDay.length - 2) + "į";
68
+ }
69
+
70
+ return moment.lang("lt", {
71
+ months : "sausio_vasario_kovo_balandžio_gegužės_biržėlio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),
72
+ monthsShort : "sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),
73
+ weekdays : relativeWeekDay,
74
+ weekdaysShort : "Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),
75
+ weekdaysMin : "S_P_A_T_K_Pn_Š".split("_"),
76
+ longDateFormat : {
77
+ LT : "HH:mm",
78
+ L : "YYYY-MM-DD",
79
+ LL : "YYYY [m.] MMMM D [d.]",
80
+ LLL : "YYYY [m.] MMMM D [d.], LT [val.]",
81
+ LLLL : "YYYY [m.] MMMM D [d.], dddd, LT [val.]",
82
+ l : "YYYY-MM-DD",
83
+ ll : "YYYY [m.] MMMM D [d.]",
84
+ lll : "YYYY [m.] MMMM D [d.], LT [val.]",
85
+ llll : "YYYY [m.] MMMM D [d.], ddd, LT [val.]"
86
+ },
87
+ calendar : {
88
+ sameDay : "[Šiandien] LT",
89
+ nextDay : "[Rytoj] LT",
90
+ nextWeek : "dddd LT",
91
+ lastDay : "[Vakar] LT",
92
+ lastWeek : "[Praėjusį] dddd LT",
93
+ sameElse : "L"
94
+ },
95
+ relativeTime : {
96
+ future : "po %s",
97
+ past : "prieš %s",
98
+ s : translateSeconds,
99
+ m : translateSingular,
100
+ mm : translate,
101
+ h : translateSingular,
102
+ hh : translate,
103
+ d : translateSingular,
104
+ dd : translate,
105
+ M : translateSingular,
106
+ MM : translate,
107
+ y : translateSingular,
108
+ yy : translate
109
+ },
110
+ ordinal : function (number) {
111
+ return number + '-oji';
112
+ },
113
+ week : {
114
+ dow : 1, // Monday is the first day of the week.
115
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
116
+ }
117
+ });
118
+ }));