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.
- data/README.md +1 -1
- data/{changelog.md → news.md} +30 -12
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +65 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +31 -0
- data/test/dummy/config/environments/production.rb +64 -0
- data/test/dummy/config/environments/test.rb +35 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +10 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +2 -0
- data/test/dummy/log/test.log +76 -0
- data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
- data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
- data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
- data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
- data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
- data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
- data/test/integration/navigation_test.rb +14 -0
- data/test/momentjs-rails_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- data/vendor/assets/javascripts/moment.js +542 -355
- data/vendor/assets/javascripts/moment/ar-ma.js +46 -0
- data/vendor/assets/javascripts/moment/ar.js +45 -0
- data/vendor/assets/javascripts/moment/bg.js +71 -61
- data/vendor/assets/javascripts/moment/ca.js +51 -59
- data/vendor/assets/javascripts/moment/cs.js +145 -0
- data/vendor/assets/javascripts/moment/cv.js +45 -53
- data/vendor/assets/javascripts/moment/da.js +41 -49
- data/vendor/assets/javascripts/moment/de.js +41 -49
- data/vendor/assets/javascripts/moment/en-ca.js +44 -53
- data/vendor/assets/javascripts/moment/en-gb.js +48 -53
- data/vendor/assets/javascripts/moment/eo.js +55 -0
- data/vendor/assets/javascripts/moment/es.js +51 -59
- data/vendor/assets/javascripts/moment/et.js +44 -61
- data/vendor/assets/javascripts/moment/eu.js +46 -50
- data/vendor/assets/javascripts/moment/fi.js +84 -89
- data/vendor/assets/javascripts/moment/fr-ca.js +39 -49
- data/vendor/assets/javascripts/moment/fr.js +43 -49
- data/vendor/assets/javascripts/moment/gl.js +51 -59
- data/vendor/assets/javascripts/moment/he.js +46 -0
- data/vendor/assets/javascripts/moment/hu.js +77 -98
- data/vendor/assets/javascripts/moment/id.js +57 -0
- data/vendor/assets/javascripts/moment/is.js +103 -121
- data/vendor/assets/javascripts/moment/it.js +41 -49
- data/vendor/assets/javascripts/moment/ja.js +43 -56
- data/vendor/assets/javascripts/moment/ko.js +42 -54
- data/vendor/assets/javascripts/moment/lv.js +67 -0
- data/vendor/assets/javascripts/moment/nb.js +41 -49
- data/vendor/assets/javascripts/moment/ne.js +95 -0
- data/vendor/assets/javascripts/moment/nl.js +52 -57
- data/vendor/assets/javascripts/moment/pl.js +73 -70
- data/vendor/assets/javascripts/moment/pt-br.js +42 -54
- data/vendor/assets/javascripts/moment/pt.js +45 -53
- data/vendor/assets/javascripts/moment/ro.js +40 -49
- data/vendor/assets/javascripts/moment/ru.js +105 -114
- data/vendor/assets/javascripts/moment/sl.js +134 -0
- data/vendor/assets/javascripts/moment/sv.js +48 -53
- data/vendor/assets/javascripts/moment/th.js +48 -0
- data/vendor/assets/javascripts/moment/tr.js +69 -75
- data/vendor/assets/javascripts/moment/tzm-la.js +45 -0
- data/vendor/assets/javascripts/moment/tzm.js +45 -0
- data/vendor/assets/javascripts/moment/uk.js +122 -0
- data/vendor/assets/javascripts/moment/zh-cn.js +53 -62
- data/vendor/assets/javascripts/moment/zh-tw.js +53 -62
- metadata +121 -54
- data/vendor/assets/javascripts/moment/jp.js +0 -64
- data/vendor/assets/javascripts/moment/kr.js +0 -61
@@ -1,67 +1,58 @@
|
|
1
1
|
// moment.js language configuration
|
2
2
|
// language : traditional chinese (zh-tw)
|
3
3
|
// author : Ben : https://github.com/ben-lin
|
4
|
-
(function () {
|
5
|
-
var lang = {
|
6
|
-
months : "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".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點mm",
|
13
|
-
L : "YYYY年MMMD日",
|
14
|
-
LL : "YYYY年MMMD日",
|
15
|
-
LLL : "YYYY年MMMD日LT",
|
16
|
-
LLLL : "YYYY年MMMD日ddddLT"
|
17
|
-
},
|
18
|
-
meridiem : function (hour, minute, isLower) {
|
19
|
-
if (hour < 9) {
|
20
|
-
return "早上";
|
21
|
-
} else if (hour < 11 && minute < 30) {
|
22
|
-
return "上午";
|
23
|
-
} else if (hour < 13 && minute < 30) {
|
24
|
-
return "中午";
|
25
|
-
} else if (hour < 18) {
|
26
|
-
return "下午";
|
27
|
-
} else {
|
28
|
-
return "晚上";
|
29
|
-
}
|
30
|
-
},
|
31
|
-
calendar : {
|
32
|
-
sameDay : '[今天]LT',
|
33
|
-
nextDay : '[明天]LT',
|
34
|
-
nextWeek : '[下]ddddLT',
|
35
|
-
lastDay : '[昨天]LT',
|
36
|
-
lastWeek : '[上]ddddLT',
|
37
|
-
sameElse : 'L'
|
38
|
-
},
|
39
|
-
relativeTime : {
|
40
|
-
future : "%s內",
|
41
|
-
past : "%s前",
|
42
|
-
s : "幾秒",
|
43
|
-
m : "一分鐘",
|
44
|
-
mm : "%d分鐘",
|
45
|
-
h : "一小時",
|
46
|
-
hh : "%d小時",
|
47
|
-
d : "一天",
|
48
|
-
dd : "%d天",
|
49
|
-
M : "一個月",
|
50
|
-
MM : "%d個月",
|
51
|
-
y : "一年",
|
52
|
-
yy : "%d年"
|
53
|
-
},
|
54
|
-
ordinal : function (number) {
|
55
|
-
return '';
|
56
|
-
}
|
57
|
-
};
|
58
4
|
|
59
|
-
|
60
|
-
|
61
|
-
|
5
|
+
require('../moment').lang('zh-tw', {
|
6
|
+
months : "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".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點mm",
|
13
|
+
L : "YYYY年MMMD日",
|
14
|
+
LL : "YYYY年MMMD日",
|
15
|
+
LLL : "YYYY年MMMD日LT",
|
16
|
+
LLLL : "YYYY年MMMD日ddddLT",
|
17
|
+
l : "YYYY年MMMD日",
|
18
|
+
ll : "YYYY年MMMD日",
|
19
|
+
lll : "YYYY年MMMD日LT",
|
20
|
+
llll : "YYYY年MMMD日ddddLT"
|
21
|
+
},
|
22
|
+
meridiem : function (hour, minute, isLower) {
|
23
|
+
if (hour < 9) {
|
24
|
+
return "早上";
|
25
|
+
} else if (hour < 11 && minute < 30) {
|
26
|
+
return "上午";
|
27
|
+
} else if (hour < 13 && minute < 30) {
|
28
|
+
return "中午";
|
29
|
+
} else if (hour < 18) {
|
30
|
+
return "下午";
|
31
|
+
} else {
|
32
|
+
return "晚上";
|
33
|
+
}
|
34
|
+
},
|
35
|
+
calendar : {
|
36
|
+
sameDay : '[今天]LT',
|
37
|
+
nextDay : '[明天]LT',
|
38
|
+
nextWeek : '[下]ddddLT',
|
39
|
+
lastDay : '[昨天]LT',
|
40
|
+
lastWeek : '[上]ddddLT',
|
41
|
+
sameElse : 'L'
|
42
|
+
},
|
43
|
+
relativeTime : {
|
44
|
+
future : "%s內",
|
45
|
+
past : "%s前",
|
46
|
+
s : "幾秒",
|
47
|
+
m : "一分鐘",
|
48
|
+
mm : "%d分鐘",
|
49
|
+
h : "一小時",
|
50
|
+
hh : "%d小時",
|
51
|
+
d : "一天",
|
52
|
+
dd : "%d天",
|
53
|
+
M : "一個月",
|
54
|
+
MM : "%d個月",
|
55
|
+
y : "一年",
|
56
|
+
yy : "%d年"
|
62
57
|
}
|
63
|
-
|
64
|
-
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
65
|
-
this.moment.lang('zh-tw', lang);
|
66
|
-
}
|
67
|
-
}());
|
58
|
+
});
|
metadata
CHANGED
@@ -1,55 +1,68 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: momentjs-rails
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.0.1
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 7
|
9
|
-
- 2
|
10
|
-
version: 1.7.2
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Derek Prior
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-03-16 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: railties
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '3.1'
|
22
|
+
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
|
-
requirements:
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.1'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rails
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
27
35
|
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 3.2.12
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 3.2.12
|
46
|
+
description: ! " Moment.js is a lightweight javascript date library for parsing,
|
47
|
+
manipulating, and formatting dates.\n This gem allows for its easy inclusion
|
48
|
+
into the rails asset pipeline.\n"
|
37
49
|
email:
|
38
50
|
executables: []
|
39
|
-
|
40
51
|
extensions: []
|
41
|
-
|
42
52
|
extra_rdoc_files: []
|
43
|
-
|
44
|
-
files:
|
53
|
+
files:
|
45
54
|
- lib/momentjs-rails.rb
|
55
|
+
- vendor/assets/javascripts/moment/ar-ma.js
|
56
|
+
- vendor/assets/javascripts/moment/ar.js
|
46
57
|
- vendor/assets/javascripts/moment/bg.js
|
47
58
|
- vendor/assets/javascripts/moment/ca.js
|
59
|
+
- vendor/assets/javascripts/moment/cs.js
|
48
60
|
- vendor/assets/javascripts/moment/cv.js
|
49
61
|
- vendor/assets/javascripts/moment/da.js
|
50
62
|
- vendor/assets/javascripts/moment/de.js
|
51
63
|
- vendor/assets/javascripts/moment/en-ca.js
|
52
64
|
- vendor/assets/javascripts/moment/en-gb.js
|
65
|
+
- vendor/assets/javascripts/moment/eo.js
|
53
66
|
- vendor/assets/javascripts/moment/es.js
|
54
67
|
- vendor/assets/javascripts/moment/et.js
|
55
68
|
- vendor/assets/javascripts/moment/eu.js
|
@@ -57,61 +70,115 @@ files:
|
|
57
70
|
- vendor/assets/javascripts/moment/fr-ca.js
|
58
71
|
- vendor/assets/javascripts/moment/fr.js
|
59
72
|
- vendor/assets/javascripts/moment/gl.js
|
73
|
+
- vendor/assets/javascripts/moment/he.js
|
60
74
|
- vendor/assets/javascripts/moment/hu.js
|
75
|
+
- vendor/assets/javascripts/moment/id.js
|
61
76
|
- vendor/assets/javascripts/moment/is.js
|
62
77
|
- vendor/assets/javascripts/moment/it.js
|
63
78
|
- vendor/assets/javascripts/moment/ja.js
|
64
|
-
- vendor/assets/javascripts/moment/jp.js
|
65
79
|
- vendor/assets/javascripts/moment/ko.js
|
66
|
-
- vendor/assets/javascripts/moment/
|
80
|
+
- vendor/assets/javascripts/moment/lv.js
|
67
81
|
- vendor/assets/javascripts/moment/nb.js
|
82
|
+
- vendor/assets/javascripts/moment/ne.js
|
68
83
|
- vendor/assets/javascripts/moment/nl.js
|
69
84
|
- vendor/assets/javascripts/moment/pl.js
|
70
85
|
- vendor/assets/javascripts/moment/pt-br.js
|
71
86
|
- vendor/assets/javascripts/moment/pt.js
|
72
87
|
- vendor/assets/javascripts/moment/ro.js
|
73
88
|
- vendor/assets/javascripts/moment/ru.js
|
89
|
+
- vendor/assets/javascripts/moment/sl.js
|
74
90
|
- vendor/assets/javascripts/moment/sv.js
|
91
|
+
- vendor/assets/javascripts/moment/th.js
|
75
92
|
- vendor/assets/javascripts/moment/tr.js
|
93
|
+
- vendor/assets/javascripts/moment/tzm-la.js
|
94
|
+
- vendor/assets/javascripts/moment/tzm.js
|
95
|
+
- vendor/assets/javascripts/moment/uk.js
|
76
96
|
- vendor/assets/javascripts/moment/zh-cn.js
|
77
97
|
- vendor/assets/javascripts/moment/zh-tw.js
|
78
98
|
- vendor/assets/javascripts/moment.js
|
79
|
-
-
|
99
|
+
- news.md
|
80
100
|
- MIT-LICENSE
|
81
101
|
- README.md
|
82
|
-
|
102
|
+
- test/dummy/config/application.rb
|
103
|
+
- test/dummy/config/boot.rb
|
104
|
+
- test/dummy/config/environment.rb
|
105
|
+
- test/dummy/config/environments/development.rb
|
106
|
+
- test/dummy/config/environments/production.rb
|
107
|
+
- test/dummy/config/environments/test.rb
|
108
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
109
|
+
- test/dummy/config/initializers/inflections.rb
|
110
|
+
- test/dummy/config/initializers/mime_types.rb
|
111
|
+
- test/dummy/config/initializers/secret_token.rb
|
112
|
+
- test/dummy/config/initializers/session_store.rb
|
113
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
114
|
+
- test/dummy/config/locales/en.yml
|
115
|
+
- test/dummy/config/routes.rb
|
116
|
+
- test/dummy/config.ru
|
117
|
+
- test/dummy/log/test.log
|
118
|
+
- test/dummy/Rakefile
|
119
|
+
- test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2
|
120
|
+
- test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58
|
121
|
+
- test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417
|
122
|
+
- test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe
|
123
|
+
- test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee
|
124
|
+
- test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61
|
125
|
+
- test/integration/navigation_test.rb
|
126
|
+
- test/momentjs-rails_test.rb
|
127
|
+
- test/test_helper.rb
|
83
128
|
homepage: https://github.com/derekprior/momentjs-rails
|
84
129
|
licenses: []
|
85
|
-
|
86
130
|
post_install_message:
|
87
131
|
rdoc_options: []
|
88
|
-
|
89
|
-
require_paths:
|
132
|
+
require_paths:
|
90
133
|
- lib
|
91
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
92
135
|
none: false
|
93
|
-
requirements:
|
94
|
-
- -
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
|
97
|
-
segments:
|
136
|
+
requirements:
|
137
|
+
- - ! '>='
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
140
|
+
segments:
|
98
141
|
- 0
|
99
|
-
|
100
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
|
+
hash: 2622912886442475624
|
143
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
144
|
none: false
|
102
|
-
requirements:
|
103
|
-
- -
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
|
106
|
-
segments:
|
145
|
+
requirements:
|
146
|
+
- - ! '>='
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: '0'
|
149
|
+
segments:
|
107
150
|
- 0
|
108
|
-
|
151
|
+
hash: 2622912886442475624
|
109
152
|
requirements: []
|
110
|
-
|
111
153
|
rubyforge_project:
|
112
|
-
rubygems_version: 1.
|
154
|
+
rubygems_version: 1.8.23
|
113
155
|
signing_key:
|
114
156
|
specification_version: 3
|
115
157
|
summary: The Moment.js JavaScript library ready to play with Rails.
|
116
|
-
test_files:
|
117
|
-
|
158
|
+
test_files:
|
159
|
+
- test/dummy/config/application.rb
|
160
|
+
- test/dummy/config/boot.rb
|
161
|
+
- test/dummy/config/environment.rb
|
162
|
+
- test/dummy/config/environments/development.rb
|
163
|
+
- test/dummy/config/environments/production.rb
|
164
|
+
- test/dummy/config/environments/test.rb
|
165
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
166
|
+
- test/dummy/config/initializers/inflections.rb
|
167
|
+
- test/dummy/config/initializers/mime_types.rb
|
168
|
+
- test/dummy/config/initializers/secret_token.rb
|
169
|
+
- test/dummy/config/initializers/session_store.rb
|
170
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
171
|
+
- test/dummy/config/locales/en.yml
|
172
|
+
- test/dummy/config/routes.rb
|
173
|
+
- test/dummy/config.ru
|
174
|
+
- test/dummy/log/test.log
|
175
|
+
- test/dummy/Rakefile
|
176
|
+
- test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2
|
177
|
+
- test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58
|
178
|
+
- test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417
|
179
|
+
- test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe
|
180
|
+
- test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee
|
181
|
+
- test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61
|
182
|
+
- test/integration/navigation_test.rb
|
183
|
+
- test/momentjs-rails_test.rb
|
184
|
+
- test/test_helper.rb
|
@@ -1,64 +0,0 @@
|
|
1
|
-
// moment.js language configuration
|
2
|
-
// language : japanese (jp)
|
3
|
-
// author : LI Long : https://github.com/baryon
|
4
|
-
|
5
|
-
// This language config was incorrectly named 'jp' instead of 'ja'.
|
6
|
-
// In version 2.0.0, this will be deprecated and you should use 'ja' instead.
|
7
|
-
(function () {
|
8
|
-
var lang = {
|
9
|
-
months : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
|
10
|
-
monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
|
11
|
-
weekdays : "日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),
|
12
|
-
weekdaysShort : "日_月_火_水_木_金_土".split("_"),
|
13
|
-
weekdaysMin : "日_月_火_水_木_金_土".split("_"),
|
14
|
-
longDateFormat : {
|
15
|
-
LT : "Ah時m分",
|
16
|
-
L : "YYYY/MM/DD",
|
17
|
-
LL : "YYYY年M月D日",
|
18
|
-
LLL : "YYYY年M月D日LT",
|
19
|
-
LLLL : "YYYY年M月D日LT dddd"
|
20
|
-
},
|
21
|
-
meridiem : function (hour, minute, isLower) {
|
22
|
-
if (hour < 12) {
|
23
|
-
return "午前";
|
24
|
-
} else {
|
25
|
-
return "午後";
|
26
|
-
}
|
27
|
-
},
|
28
|
-
calendar : {
|
29
|
-
sameDay : '[今日] LT',
|
30
|
-
nextDay : '[明日] LT',
|
31
|
-
nextWeek : '[来週]dddd LT',
|
32
|
-
lastDay : '[昨日] LT',
|
33
|
-
lastWeek : '[前週]dddd LT',
|
34
|
-
sameElse : 'L'
|
35
|
-
},
|
36
|
-
relativeTime : {
|
37
|
-
future : "%s後",
|
38
|
-
past : "%s前",
|
39
|
-
s : "数秒",
|
40
|
-
m : "1分",
|
41
|
-
mm : "%d分",
|
42
|
-
h : "1時間",
|
43
|
-
hh : "%d時間",
|
44
|
-
d : "1日",
|
45
|
-
dd : "%d日",
|
46
|
-
M : "1ヶ月",
|
47
|
-
MM : "%dヶ月",
|
48
|
-
y : "1年",
|
49
|
-
yy : "%d年"
|
50
|
-
},
|
51
|
-
ordinal : function (number) {
|
52
|
-
return '';
|
53
|
-
}
|
54
|
-
};
|
55
|
-
|
56
|
-
// Node
|
57
|
-
if (typeof module !== 'undefined' && module.exports) {
|
58
|
-
module.exports = lang;
|
59
|
-
}
|
60
|
-
// Browser
|
61
|
-
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
62
|
-
this.moment.lang('jp', lang);
|
63
|
-
}
|
64
|
-
}());
|
@@ -1,61 +0,0 @@
|
|
1
|
-
// moment.js language configuration
|
2
|
-
// language : korean (kr)
|
3
|
-
// author : Kyungwook, Park : https://github.com/kyungw00k
|
4
|
-
|
5
|
-
// This language config was incorrectly named 'kr' instead of 'ko'.
|
6
|
-
// In version 2.0.0, this will be deprecated and you should use 'ko' instead.
|
7
|
-
(function () {
|
8
|
-
var lang = {
|
9
|
-
months : "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
|
10
|
-
monthsShort : "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
|
11
|
-
weekdays : "일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),
|
12
|
-
weekdaysShort : "일_월_화_수_목_금_토".split("_"),
|
13
|
-
weekdaysMin : "일_월_화_수_목_금_토".split("_"),
|
14
|
-
longDateFormat : {
|
15
|
-
LT : "A h시 mm분",
|
16
|
-
L : "YYYY.MM.DD",
|
17
|
-
LL : "YYYY년 MMMM D일",
|
18
|
-
LLL : "YYYY년 MMMM D일 LT",
|
19
|
-
LLLL : "YYYY년 MMMM D일 dddd LT"
|
20
|
-
},
|
21
|
-
meridiem : function (hour, minute, isUpper) {
|
22
|
-
return hour < 12 ? '오전' : '오후';
|
23
|
-
},
|
24
|
-
calendar : {
|
25
|
-
sameDay : '오늘 LT',
|
26
|
-
nextDay : '내일 LT',
|
27
|
-
nextWeek : 'dddd LT',
|
28
|
-
lastDay : '어제 LT',
|
29
|
-
lastWeek : '지난주 dddd LT',
|
30
|
-
sameElse : 'L'
|
31
|
-
},
|
32
|
-
relativeTime : {
|
33
|
-
future : "%s 후",
|
34
|
-
past : "%s 전",
|
35
|
-
s : "몇초",
|
36
|
-
ss : "%d초",
|
37
|
-
m : "일분",
|
38
|
-
mm : "%d분",
|
39
|
-
h : "한시간",
|
40
|
-
hh : "%d시간",
|
41
|
-
d : "하루",
|
42
|
-
dd : "%d일",
|
43
|
-
M : "한달",
|
44
|
-
MM : "%d달",
|
45
|
-
y : "일년",
|
46
|
-
yy : "%d년"
|
47
|
-
},
|
48
|
-
ordinal : function (number) {
|
49
|
-
return '일';
|
50
|
-
}
|
51
|
-
};
|
52
|
-
|
53
|
-
// Node
|
54
|
-
if (typeof module !== 'undefined' && module.exports) {
|
55
|
-
module.exports = lang;
|
56
|
-
}
|
57
|
-
// Browser
|
58
|
-
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
59
|
-
this.moment.lang('kr', lang);
|
60
|
-
}
|
61
|
-
}());
|