momentjs-rails 1.7.2 → 2.0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. data/README.md +1 -1
  2. data/{changelog.md → news.md} +30 -12
  3. data/test/dummy/Rakefile +7 -0
  4. data/test/dummy/config.ru +4 -0
  5. data/test/dummy/config/application.rb +65 -0
  6. data/test/dummy/config/boot.rb +10 -0
  7. data/test/dummy/config/environment.rb +5 -0
  8. data/test/dummy/config/environments/development.rb +31 -0
  9. data/test/dummy/config/environments/production.rb +64 -0
  10. data/test/dummy/config/environments/test.rb +35 -0
  11. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  12. data/test/dummy/config/initializers/inflections.rb +15 -0
  13. data/test/dummy/config/initializers/mime_types.rb +5 -0
  14. data/test/dummy/config/initializers/secret_token.rb +7 -0
  15. data/test/dummy/config/initializers/session_store.rb +8 -0
  16. data/test/dummy/config/initializers/wrap_parameters.rb +10 -0
  17. data/test/dummy/config/locales/en.yml +5 -0
  18. data/test/dummy/config/routes.rb +2 -0
  19. data/test/dummy/log/test.log +76 -0
  20. data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
  21. data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
  22. data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
  23. data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
  24. data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
  25. data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
  26. data/test/integration/navigation_test.rb +14 -0
  27. data/test/momentjs-rails_test.rb +7 -0
  28. data/test/test_helper.rb +15 -0
  29. data/vendor/assets/javascripts/moment.js +542 -355
  30. data/vendor/assets/javascripts/moment/ar-ma.js +46 -0
  31. data/vendor/assets/javascripts/moment/ar.js +45 -0
  32. data/vendor/assets/javascripts/moment/bg.js +71 -61
  33. data/vendor/assets/javascripts/moment/ca.js +51 -59
  34. data/vendor/assets/javascripts/moment/cs.js +145 -0
  35. data/vendor/assets/javascripts/moment/cv.js +45 -53
  36. data/vendor/assets/javascripts/moment/da.js +41 -49
  37. data/vendor/assets/javascripts/moment/de.js +41 -49
  38. data/vendor/assets/javascripts/moment/en-ca.js +44 -53
  39. data/vendor/assets/javascripts/moment/en-gb.js +48 -53
  40. data/vendor/assets/javascripts/moment/eo.js +55 -0
  41. data/vendor/assets/javascripts/moment/es.js +51 -59
  42. data/vendor/assets/javascripts/moment/et.js +44 -61
  43. data/vendor/assets/javascripts/moment/eu.js +46 -50
  44. data/vendor/assets/javascripts/moment/fi.js +84 -89
  45. data/vendor/assets/javascripts/moment/fr-ca.js +39 -49
  46. data/vendor/assets/javascripts/moment/fr.js +43 -49
  47. data/vendor/assets/javascripts/moment/gl.js +51 -59
  48. data/vendor/assets/javascripts/moment/he.js +46 -0
  49. data/vendor/assets/javascripts/moment/hu.js +77 -98
  50. data/vendor/assets/javascripts/moment/id.js +57 -0
  51. data/vendor/assets/javascripts/moment/is.js +103 -121
  52. data/vendor/assets/javascripts/moment/it.js +41 -49
  53. data/vendor/assets/javascripts/moment/ja.js +43 -56
  54. data/vendor/assets/javascripts/moment/ko.js +42 -54
  55. data/vendor/assets/javascripts/moment/lv.js +67 -0
  56. data/vendor/assets/javascripts/moment/nb.js +41 -49
  57. data/vendor/assets/javascripts/moment/ne.js +95 -0
  58. data/vendor/assets/javascripts/moment/nl.js +52 -57
  59. data/vendor/assets/javascripts/moment/pl.js +73 -70
  60. data/vendor/assets/javascripts/moment/pt-br.js +42 -54
  61. data/vendor/assets/javascripts/moment/pt.js +45 -53
  62. data/vendor/assets/javascripts/moment/ro.js +40 -49
  63. data/vendor/assets/javascripts/moment/ru.js +105 -114
  64. data/vendor/assets/javascripts/moment/sl.js +134 -0
  65. data/vendor/assets/javascripts/moment/sv.js +48 -53
  66. data/vendor/assets/javascripts/moment/th.js +48 -0
  67. data/vendor/assets/javascripts/moment/tr.js +69 -75
  68. data/vendor/assets/javascripts/moment/tzm-la.js +45 -0
  69. data/vendor/assets/javascripts/moment/tzm.js +45 -0
  70. data/vendor/assets/javascripts/moment/uk.js +122 -0
  71. data/vendor/assets/javascripts/moment/zh-cn.js +53 -62
  72. data/vendor/assets/javascripts/moment/zh-tw.js +53 -62
  73. metadata +121 -54
  74. data/vendor/assets/javascripts/moment/jp.js +0 -64
  75. data/vendor/assets/javascripts/moment/kr.js +0 -61
@@ -0,0 +1,57 @@
1
+ // moment.js language configuration
2
+ // language : Bahasa Indonesia (id)
3
+ // author : Mohammad Satrio Utomo : https://github.com/tyok
4
+ // reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
5
+
6
+ require('../moment').lang('id', {
7
+ months : "Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),
8
+ monthsShort : "Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),
9
+ weekdays : "Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),
10
+ weekdaysShort : "Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),
11
+ weekdaysMin : "Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),
12
+ longDateFormat : {
13
+ LT : "HH.mm",
14
+ L : "DD/MM/YYYY",
15
+ LL : "D MMMM YYYY",
16
+ LLL : "D MMMM YYYY [pukul] LT",
17
+ LLLL : "dddd, D MMMM YYYY [pukul] LT"
18
+ },
19
+ meridiem : function (hours, minutes, isLower) {
20
+ if (hours < 11) {
21
+ return 'pagi';
22
+ } else if (hours < 15) {
23
+ return 'siang';
24
+ } else if (hours < 19) {
25
+ return 'sore';
26
+ } else {
27
+ return 'malam';
28
+ }
29
+ },
30
+ calendar : {
31
+ sameDay : '[Hari ini pukul] LT',
32
+ nextDay : '[Besok pukul] LT',
33
+ nextWeek : 'dddd [pukul] LT',
34
+ lastDay : '[Kemarin pukul] LT',
35
+ lastWeek : 'dddd [lalu pukul] LT',
36
+ sameElse : 'L'
37
+ },
38
+ relativeTime : {
39
+ future : "dalam %s",
40
+ past : "%s yang lalu",
41
+ s : "beberapa detik",
42
+ m : "semenit",
43
+ mm : "%d menit",
44
+ h : "sejam",
45
+ hh : "%d jam",
46
+ d : "sehari",
47
+ dd : "%d hari",
48
+ M : "sebulan",
49
+ MM : "%d bulan",
50
+ y : "setahun",
51
+ yy : "%d tahun"
52
+ },
53
+ week : {
54
+ dow : 1, // Monday is the first day of the week.
55
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
56
+ }
57
+ });
@@ -1,132 +1,114 @@
1
1
  // moment.js language configuration
2
2
  // language : icelandic (is)
3
3
  // author : Hinrik Örn Sigurðsson : https://github.com/hinrik
4
- (function () {
5
- var plural = function (n) {
6
- if (n % 100 == 11) {
7
- return true;
8
- } else if (n % 10 == 1) {
9
- return false;
10
- } else {
11
- return true;
12
- }
13
- },
14
4
 
15
- translate = function (number, withoutSuffix, key, isFuture) {
16
- var result = number + " ";
17
- switch (key) {
18
- case 's':
19
- return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
20
- case 'm':
21
- return withoutSuffix ? 'mínúta' : 'mínútu';
22
- case 'mm':
23
- if (plural(number)) {
24
- return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
25
- } else if (withoutSuffix) {
26
- return result + 'mínúta';
27
- } else {
28
- return result + 'mínútu';
29
- }
30
- case 'hh':
31
- if (plural(number)) {
32
- return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
33
- } else {
34
- return result + 'klukkustund';
35
- }
36
- case 'd':
5
+ function plural(n) {
6
+ if (n % 100 === 11) {
7
+ return true;
8
+ } else if (n % 10 === 1) {
9
+ return false;
10
+ }
11
+ return true;
12
+ }
13
+
14
+ function translate(number, withoutSuffix, key, isFuture) {
15
+ var result = number + " ";
16
+ switch (key) {
17
+ case 's':
18
+ return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
19
+ case 'm':
20
+ return withoutSuffix ? 'mínúta' : 'mínútu';
21
+ case 'mm':
22
+ if (plural(number)) {
23
+ return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
24
+ } else if (withoutSuffix) {
25
+ return result + 'mínúta';
26
+ }
27
+ return result + 'mínútu';
28
+ case 'hh':
29
+ if (plural(number)) {
30
+ return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
31
+ }
32
+ return result + 'klukkustund';
33
+ case 'd':
34
+ if (withoutSuffix) {
35
+ return 'dagur';
36
+ }
37
+ return isFuture ? 'dag' : 'degi';
38
+ case 'dd':
39
+ if (plural(number)) {
37
40
  if (withoutSuffix) {
38
- return 'dagur'
39
- } else {
40
- return isFuture ? 'dag' : 'degi';
41
+ return result + 'dagar';
41
42
  }
42
- case 'dd':
43
- if (plural(number)) {
44
- if (withoutSuffix) {
45
- return result + 'dagar'
46
- } else {
47
- return result + (isFuture ? 'daga' : 'dögum');
48
- }
49
- } else if (withoutSuffix) {
50
- return result + 'dagur'
51
- } else {
52
- return result + (isFuture ? 'dag' : 'degi');
53
- }
54
- case 'M':
43
+ return result + (isFuture ? 'daga' : 'dögum');
44
+ } else if (withoutSuffix) {
45
+ return result + 'dagur';
46
+ }
47
+ return result + (isFuture ? 'dag' : 'degi');
48
+ case 'M':
49
+ if (withoutSuffix) {
50
+ return 'mánuður';
51
+ }
52
+ return isFuture ? 'mánuð' : 'mánuði';
53
+ case 'MM':
54
+ if (plural(number)) {
55
55
  if (withoutSuffix) {
56
- return 'mánuður'
57
- } else {
58
- return isFuture ? 'mánuð' : 'mánuði';
59
- }
60
- case 'MM':
61
- if (plural(number)) {
62
- if (withoutSuffix) {
63
- return result + 'mánuðir'
64
- } else {
65
- return result + (isFuture ? 'mánuði' : 'mánuðum');
66
- }
67
- } else if (withoutSuffix) {
68
- return result + 'mánuður';
69
- } else {
70
- return result + (isFuture ? 'mánuð' : 'mánuði');
71
- }
72
- case 'y':
73
- return withoutSuffix || isFuture ? 'ár' : 'ári';
74
- case 'yy':
75
- if (plural(number)) {
76
- return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
77
- } else {
78
- return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
56
+ return result + 'mánuðir';
79
57
  }
58
+ return result + (isFuture ? 'mánuði' : 'mánuðum');
59
+ } else if (withoutSuffix) {
60
+ return result + 'mánuður';
80
61
  }
81
- },
82
-
83
- lang = {
84
- months : "janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),
85
- monthsShort : "jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),
86
- weekdays : "sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),
87
- weekdaysShort : "sun_mán_þri_mið_fim_fös_lau".split("_"),
88
- weekdaysMin : "Su_Má_Þr_Mi_Fi_Fö_La".split("_"),
89
- longDateFormat : {
90
- LT : "H:mm",
91
- L : "DD/MM/YYYY",
92
- LL : "D. MMMM YYYY",
93
- LLL : "D. MMMM YYYY kl. LT",
94
- LLLL : "dddd, D. MMMM YYYY kl. LT"
95
- },
96
- calendar : {
97
- sameDay : '[í dag kl.] LT',
98
- nextDay : '[á morgun kl.] LT',
99
- nextWeek : 'dddd [kl.] LT',
100
- lastDay : '[í gær kl.] LT',
101
- lastWeek : '[síðasta] dddd [kl.] LT',
102
- sameElse : 'L'
103
- },
104
- relativeTime : {
105
- future : "eftir %s",
106
- past : "fyrir %s síðan",
107
- s : translate,
108
- m : translate,
109
- mm : translate,
110
- h : "klukkustund",
111
- hh : translate,
112
- d : translate,
113
- dd : translate,
114
- M : translate,
115
- MM : translate,
116
- y : translate,
117
- yy : translate,
118
- },
119
- ordinal : function (number) {
120
- return '.';
121
- }
122
- };
123
-
124
- // Node
125
- if (typeof module !== 'undefined' && module.exports) {
126
- module.exports = lang;
62
+ return result + (isFuture ? 'mánuð' : 'mánuði');
63
+ case 'y':
64
+ return withoutSuffix || isFuture ? 'ár' : 'ári';
65
+ case 'yy':
66
+ if (plural(number)) {
67
+ return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
68
+ }
69
+ return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
127
70
  }
128
- // Browser
129
- if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
130
- this.moment.lang('is', lang);
71
+ }
72
+
73
+ require('../moment').lang('is', {
74
+ months : "janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),
75
+ monthsShort : "jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),
76
+ weekdays : "sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),
77
+ weekdaysShort : "sun_mán_þri_mið_fim_fös_lau".split("_"),
78
+ weekdaysMin : "Su_Má_Þr_Mi_Fi_Fö_La".split("_"),
79
+ longDateFormat : {
80
+ LT : "H:mm",
81
+ L : "DD/MM/YYYY",
82
+ LL : "D. MMMM YYYY",
83
+ LLL : "D. MMMM YYYY [kl.] LT",
84
+ LLLL : "dddd, D. MMMM YYYY [kl.] LT"
85
+ },
86
+ calendar : {
87
+ sameDay : '[í dag kl.] LT',
88
+ nextDay : '[á morgun kl.] LT',
89
+ nextWeek : 'dddd [kl.] LT',
90
+ lastDay : '[í gær kl.] LT',
91
+ lastWeek : '[síðasta] dddd [kl.] LT',
92
+ sameElse : 'L'
93
+ },
94
+ relativeTime : {
95
+ future : "eftir %s",
96
+ past : "fyrir %s síðan",
97
+ s : translate,
98
+ m : translate,
99
+ mm : translate,
100
+ h : "klukkustund",
101
+ hh : translate,
102
+ d : translate,
103
+ dd : translate,
104
+ M : translate,
105
+ MM : translate,
106
+ y : translate,
107
+ yy : translate
108
+ },
109
+ ordinal : '%d.',
110
+ week : {
111
+ dow : 1, // Monday is the first day of the week.
112
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
131
113
  }
132
- }());
114
+ });
@@ -1,54 +1,46 @@
1
1
  // moment.js language configuration
2
2
  // language : italian (it)
3
3
  // author : Lorenzo : https://github.com/aliem
4
- (function () {
5
- var lang = {
6
- months : "Gennaio_Febbraio_Marzo_Aprile_Maggio_Giugno_Luglio_Agosto_Settembre_Ottobre_Novembre_Dicembre".split("_"),
7
- monthsShort : "Gen_Feb_Mar_Apr_Mag_Giu_Lug_Ago_Set_Ott_Nov_Dic".split("_"),
8
- weekdays : "Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),
9
- weekdaysShort : "Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),
10
- weekdaysMin : "D_L_Ma_Me_G_V_S".split("_"),
11
- longDateFormat : {
12
- LT : "HH:mm",
13
- L : "DD/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: '[Oggi alle] LT',
20
- nextDay: '[Domani alle] LT',
21
- nextWeek: 'dddd [alle] LT',
22
- lastDay: '[Ieri alle] LT',
23
- lastWeek: '[lo scorso] dddd [alle] LT',
24
- sameElse: 'L'
25
- },
26
- relativeTime : {
27
- future : "in %s",
28
- past : "%s fa",
29
- s : "secondi",
30
- m : "un minuto",
31
- mm : "%d minuti",
32
- h : "un'ora",
33
- hh : "%d ore",
34
- d : "un giorno",
35
- dd : "%d giorni",
36
- M : "un mese",
37
- MM : "%d mesi",
38
- y : "un anno",
39
- yy : "%d anni"
40
- },
41
- ordinal: function () {
42
- return 'º';
43
- }
44
- };
45
4
 
46
- // Node
47
- if (typeof module !== 'undefined' && module.exports) {
48
- module.exports = lang;
5
+ require('../moment').lang('it', {
6
+ months : "Gennaio_Febbraio_Marzo_Aprile_Maggio_Giugno_Luglio_Agosto_Settembre_Ottobre_Novembre_Dicembre".split("_"),
7
+ monthsShort : "Gen_Feb_Mar_Apr_Mag_Giu_Lug_Ago_Set_Ott_Nov_Dic".split("_"),
8
+ weekdays : "Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),
9
+ weekdaysShort : "Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),
10
+ weekdaysMin : "D_L_Ma_Me_G_V_S".split("_"),
11
+ longDateFormat : {
12
+ LT : "HH:mm",
13
+ L : "DD/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: '[Oggi alle] LT',
20
+ nextDay: '[Domani alle] LT',
21
+ nextWeek: 'dddd [alle] LT',
22
+ lastDay: '[Ieri alle] LT',
23
+ lastWeek: '[lo scorso] dddd [alle] LT',
24
+ sameElse: 'L'
25
+ },
26
+ relativeTime : {
27
+ future : "in %s",
28
+ past : "%s fa",
29
+ s : "secondi",
30
+ m : "un minuto",
31
+ mm : "%d minuti",
32
+ h : "un'ora",
33
+ hh : "%d ore",
34
+ d : "un giorno",
35
+ dd : "%d giorni",
36
+ M : "un mese",
37
+ MM : "%d mesi",
38
+ y : "un anno",
39
+ yy : "%d anni"
40
+ },
41
+ ordinal: '%dº',
42
+ week : {
43
+ dow : 1, // Monday is the first day of the week.
44
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
49
45
  }
50
- // Browser
51
- if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
52
- this.moment.lang('it', lang);
53
- }
54
- }());
46
+ });
@@ -1,61 +1,48 @@
1
1
  // moment.js language configuration
2
2
  // language : japanese (ja)
3
3
  // author : LI Long : https://github.com/baryon
4
- (function () {
5
- var lang = {
6
- months : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
7
- monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
8
- weekdays : "日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),
9
- weekdaysShort : "日_月_火_水_木_金_土".split("_"),
10
- weekdaysMin : "日_月_火_水_木_金_土".split("_"),
11
- longDateFormat : {
12
- LT : "Ah時m分",
13
- L : "YYYY/MM/DD",
14
- LL : "YYYY年M月D日",
15
- LLL : "YYYY年M月D日LT",
16
- LLLL : "YYYY年M月D日LT dddd"
17
- },
18
- meridiem : function (hour, minute, isLower) {
19
- if (hour < 12) {
20
- return "午前";
21
- } else {
22
- return "午後";
23
- }
24
- },
25
- calendar : {
26
- sameDay : '[今日] LT',
27
- nextDay : '[明日] LT',
28
- nextWeek : '[来週]dddd LT',
29
- lastDay : '[昨日] LT',
30
- lastWeek : '[前週]dddd LT',
31
- sameElse : 'L'
32
- },
33
- relativeTime : {
34
- future : "%s後",
35
- past : "%s前",
36
- s : "数秒",
37
- m : "1分",
38
- mm : "%d分",
39
- h : "1時間",
40
- hh : "%d時間",
41
- d : "1日",
42
- dd : "%d日",
43
- M : "1ヶ月",
44
- MM : "%dヶ月",
45
- y : "1年",
46
- yy : "%d年"
47
- },
48
- ordinal : function (number) {
49
- return '';
50
- }
51
- };
52
4
 
53
- // Node
54
- if (typeof module !== 'undefined' && module.exports) {
55
- module.exports = lang;
5
+ require('../moment').lang('ja', {
6
+ months : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
7
+ monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
8
+ weekdays : "日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),
9
+ weekdaysShort : "日_月_火_水_木_金_土".split("_"),
10
+ weekdaysMin : "日_月_火_水_木_金_土".split("_"),
11
+ longDateFormat : {
12
+ LT : "Ah時m分",
13
+ L : "YYYY/MM/DD",
14
+ LL : "YYYY年M月D日",
15
+ LLL : "YYYY年M月D日LT",
16
+ LLLL : "YYYY年M月D日LT dddd"
17
+ },
18
+ meridiem : function (hour, minute, isLower) {
19
+ if (hour < 12) {
20
+ return "午前";
21
+ } else {
22
+ return "午後";
23
+ }
24
+ },
25
+ calendar : {
26
+ sameDay : '[今日] LT',
27
+ nextDay : '[明日] LT',
28
+ nextWeek : '[来週]dddd LT',
29
+ lastDay : '[昨日] LT',
30
+ lastWeek : '[前週]dddd LT',
31
+ sameElse : 'L'
32
+ },
33
+ relativeTime : {
34
+ future : "%s後",
35
+ past : "%s前",
36
+ s : "数秒",
37
+ m : "1分",
38
+ mm : "%d分",
39
+ h : "1時間",
40
+ hh : "%d時間",
41
+ d : "1日",
42
+ dd : "%d日",
43
+ M : "1ヶ月",
44
+ MM : "%dヶ月",
45
+ y : "1年",
46
+ yy : "%d年"
56
47
  }
57
- // Browser
58
- if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
59
- this.moment.lang('ja', lang);
60
- }
61
- }());
48
+ });