momentjs-rails 2.5.1 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/news.md +3 -0
- data/vendor/assets/javascripts/moment.js +185 -96
- data/vendor/assets/javascripts/moment/cs.js +3 -3
- data/vendor/assets/javascripts/moment/de.js +1 -1
- data/vendor/assets/javascripts/moment/es.js +13 -4
- data/vendor/assets/javascripts/moment/fi.js +6 -6
- data/vendor/assets/javascripts/moment/hu.js +7 -0
- data/vendor/assets/javascripts/moment/km.js +55 -0
- data/vendor/assets/javascripts/moment/lt.js +1 -1
- data/vendor/assets/javascripts/moment/nn.js +8 -8
- data/vendor/assets/javascripts/moment/pt-br.js +7 -7
- data/vendor/assets/javascripts/moment/pt.js +5 -5
- data/vendor/assets/javascripts/moment/ro.js +1 -1
- data/vendor/assets/javascripts/moment/ru.js +1 -1
- data/vendor/assets/javascripts/moment/sq.js +8 -4
- data/vendor/assets/javascripts/moment/sr-cyr.js +106 -0
- data/vendor/assets/javascripts/moment/sr.js +106 -0
- data/vendor/assets/javascripts/moment/vi.js +62 -0
- metadata +37 -33
@@ -0,0 +1,62 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : vietnamese (vi)
|
3
|
+
// author : Bang Nguyen : https://github.com/bangnk
|
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('vi', {
|
15
|
+
months : "tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),
|
16
|
+
monthsShort : "Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),
|
17
|
+
weekdays : "chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),
|
18
|
+
weekdaysShort : "CN_T2_T3_T4_T5_T6_T7".split("_"),
|
19
|
+
weekdaysMin : "CN_T2_T3_T4_T5_T6_T7".split("_"),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : "HH:mm",
|
22
|
+
L : "DD/MM/YYYY",
|
23
|
+
LL : "D MMMM [năm] YYYY",
|
24
|
+
LLL : "D MMMM [năm] YYYY LT",
|
25
|
+
LLLL : "dddd, D MMMM [năm] YYYY LT",
|
26
|
+
l : "DD/M/YYYY",
|
27
|
+
ll : "D MMM YYYY",
|
28
|
+
lll : "D MMM YYYY LT",
|
29
|
+
llll : "ddd, D MMM YYYY LT"
|
30
|
+
},
|
31
|
+
calendar : {
|
32
|
+
sameDay: "[Hôm nay lúc] LT",
|
33
|
+
nextDay: '[Ngày mai lúc] LT',
|
34
|
+
nextWeek: 'dddd [tuần tới lúc] LT',
|
35
|
+
lastDay: '[Hôm qua lúc] LT',
|
36
|
+
lastWeek: 'dddd [tuần rồi lúc] LT',
|
37
|
+
sameElse: 'L'
|
38
|
+
},
|
39
|
+
relativeTime : {
|
40
|
+
future : "%s tới",
|
41
|
+
past : "%s trước",
|
42
|
+
s : "vài giây",
|
43
|
+
m : "một phút",
|
44
|
+
mm : "%d phút",
|
45
|
+
h : "một giờ",
|
46
|
+
hh : "%d giờ",
|
47
|
+
d : "một ngày",
|
48
|
+
dd : "%d ngày",
|
49
|
+
M : "một tháng",
|
50
|
+
MM : "%d tháng",
|
51
|
+
y : "một năm",
|
52
|
+
yy : "%d năm"
|
53
|
+
},
|
54
|
+
ordinal : function (number) {
|
55
|
+
return number;
|
56
|
+
},
|
57
|
+
week : {
|
58
|
+
dow : 1, // Monday is the first day of the week.
|
59
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
60
|
+
}
|
61
|
+
});
|
62
|
+
}));
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: momentjs-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Prior
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -46,7 +46,37 @@ executables: []
|
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
|
+
- MIT-LICENSE
|
50
|
+
- README.md
|
49
51
|
- lib/momentjs-rails.rb
|
52
|
+
- news.md
|
53
|
+
- test/dummy/Rakefile
|
54
|
+
- test/dummy/config.ru
|
55
|
+
- test/dummy/config/application.rb
|
56
|
+
- test/dummy/config/boot.rb
|
57
|
+
- test/dummy/config/environment.rb
|
58
|
+
- test/dummy/config/environments/development.rb
|
59
|
+
- test/dummy/config/environments/production.rb
|
60
|
+
- test/dummy/config/environments/test.rb
|
61
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
62
|
+
- test/dummy/config/initializers/inflections.rb
|
63
|
+
- test/dummy/config/initializers/mime_types.rb
|
64
|
+
- test/dummy/config/initializers/secret_token.rb
|
65
|
+
- test/dummy/config/initializers/session_store.rb
|
66
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
67
|
+
- test/dummy/config/locales/en.yml
|
68
|
+
- test/dummy/config/routes.rb
|
69
|
+
- test/dummy/log/test.log
|
70
|
+
- test/dummy/tmp/cache/assets/C4B/F20/sprockets%2F2a0b419661537b349a21d41ba3988990
|
71
|
+
- test/dummy/tmp/cache/assets/D46/140/sprockets%2F547811dd40877ace277331ae79ec4efa
|
72
|
+
- test/dummy/tmp/cache/assets/D4E/220/sprockets%2F8f4a628d82d9413ed7c75e8b373c9ab2
|
73
|
+
- test/dummy/tmp/cache/assets/D70/7B0/sprockets%2F28ee037740c82f4b2d895db4fb4a27cc
|
74
|
+
- test/dummy/tmp/cache/assets/DF2/E30/sprockets%2F655dba52b71aafead92214b8d4f15dfb
|
75
|
+
- test/dummy/tmp/cache/assets/E2B/3C0/sprockets%2Fd3a4fe71f7e32ca82bfabb6d7ef41f34
|
76
|
+
- test/integration/navigation_test.rb
|
77
|
+
- test/momentjs-rails_test.rb
|
78
|
+
- test/test_helper.rb
|
79
|
+
- vendor/assets/javascripts/moment.js
|
50
80
|
- vendor/assets/javascripts/moment/ar-ma.js
|
51
81
|
- vendor/assets/javascripts/moment/ar.js
|
52
82
|
- vendor/assets/javascripts/moment/bg.js
|
@@ -82,6 +112,7 @@ files:
|
|
82
112
|
- vendor/assets/javascripts/moment/it.js
|
83
113
|
- vendor/assets/javascripts/moment/ja.js
|
84
114
|
- vendor/assets/javascripts/moment/ka.js
|
115
|
+
- vendor/assets/javascripts/moment/km.js
|
85
116
|
- vendor/assets/javascripts/moment/ko.js
|
86
117
|
- vendor/assets/javascripts/moment/lb.js
|
87
118
|
- vendor/assets/javascripts/moment/lt.js
|
@@ -103,6 +134,8 @@ files:
|
|
103
134
|
- vendor/assets/javascripts/moment/sk.js
|
104
135
|
- vendor/assets/javascripts/moment/sl.js
|
105
136
|
- vendor/assets/javascripts/moment/sq.js
|
137
|
+
- vendor/assets/javascripts/moment/sr-cyr.js
|
138
|
+
- vendor/assets/javascripts/moment/sr.js
|
106
139
|
- vendor/assets/javascripts/moment/sv.js
|
107
140
|
- vendor/assets/javascripts/moment/ta.js
|
108
141
|
- vendor/assets/javascripts/moment/th.js
|
@@ -112,39 +145,10 @@ files:
|
|
112
145
|
- vendor/assets/javascripts/moment/tzm.js
|
113
146
|
- vendor/assets/javascripts/moment/uk.js
|
114
147
|
- vendor/assets/javascripts/moment/uz.js
|
148
|
+
- vendor/assets/javascripts/moment/vi.js
|
115
149
|
- vendor/assets/javascripts/moment/vn.js
|
116
150
|
- vendor/assets/javascripts/moment/zh-cn.js
|
117
151
|
- vendor/assets/javascripts/moment/zh-tw.js
|
118
|
-
- vendor/assets/javascripts/moment.js
|
119
|
-
- news.md
|
120
|
-
- MIT-LICENSE
|
121
|
-
- README.md
|
122
|
-
- test/dummy/config/application.rb
|
123
|
-
- test/dummy/config/boot.rb
|
124
|
-
- test/dummy/config/environment.rb
|
125
|
-
- test/dummy/config/environments/development.rb
|
126
|
-
- test/dummy/config/environments/production.rb
|
127
|
-
- test/dummy/config/environments/test.rb
|
128
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
129
|
-
- test/dummy/config/initializers/inflections.rb
|
130
|
-
- test/dummy/config/initializers/mime_types.rb
|
131
|
-
- test/dummy/config/initializers/secret_token.rb
|
132
|
-
- test/dummy/config/initializers/session_store.rb
|
133
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
134
|
-
- test/dummy/config/locales/en.yml
|
135
|
-
- test/dummy/config/routes.rb
|
136
|
-
- test/dummy/config.ru
|
137
|
-
- test/dummy/log/test.log
|
138
|
-
- test/dummy/Rakefile
|
139
|
-
- test/dummy/tmp/cache/assets/C4B/F20/sprockets%2F2a0b419661537b349a21d41ba3988990
|
140
|
-
- test/dummy/tmp/cache/assets/D46/140/sprockets%2F547811dd40877ace277331ae79ec4efa
|
141
|
-
- test/dummy/tmp/cache/assets/D4E/220/sprockets%2F8f4a628d82d9413ed7c75e8b373c9ab2
|
142
|
-
- test/dummy/tmp/cache/assets/D70/7B0/sprockets%2F28ee037740c82f4b2d895db4fb4a27cc
|
143
|
-
- test/dummy/tmp/cache/assets/DF2/E30/sprockets%2F655dba52b71aafead92214b8d4f15dfb
|
144
|
-
- test/dummy/tmp/cache/assets/E2B/3C0/sprockets%2Fd3a4fe71f7e32ca82bfabb6d7ef41f34
|
145
|
-
- test/integration/navigation_test.rb
|
146
|
-
- test/momentjs-rails_test.rb
|
147
|
-
- test/test_helper.rb
|
148
152
|
homepage: https://github.com/derekprior/momentjs-rails
|
149
153
|
licenses:
|
150
154
|
- MIT
|
@@ -165,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
169
|
version: '0'
|
166
170
|
requirements: []
|
167
171
|
rubyforge_project:
|
168
|
-
rubygems_version: 2.
|
172
|
+
rubygems_version: 2.2.2
|
169
173
|
signing_key:
|
170
174
|
specification_version: 4
|
171
175
|
summary: The Moment.js JavaScript library ready to play with Rails.
|