momentjs-rails 2.10.2 → 2.10.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,11 +10,11 @@
10
10
 
11
11
 
12
12
  var pt = moment.defineLocale('pt', {
13
- months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
14
- monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
15
- weekdays : 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'),
16
- weekdaysShort : 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
17
- weekdaysMin : 'dom_2ª_3ª_4ª_5ª_6ª_sáb'.split('_'),
13
+ months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
14
+ monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
15
+ weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'),
16
+ weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
17
+ weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),
18
18
  longDateFormat : {
19
19
  LT : 'HH:mm',
20
20
  LTS : 'LT:ss',
@@ -0,0 +1,64 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Sinhalese (si)
3
+ //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
4
+
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
10
+
11
+
12
+ var si = moment.defineLocale('si', {
13
+ months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
14
+ monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
15
+ weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
16
+ weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
17
+ weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
18
+ longDateFormat : {
19
+ LT : 'a h:mm',
20
+ LTS : 'a h:mm:ss',
21
+ L : 'YYYY/MM/DD',
22
+ LL : 'YYYY MMMM D',
23
+ LLL : 'YYYY MMMM D, LT',
24
+ LLLL : 'YYYY MMMM D [වැනි] dddd, LTS'
25
+ },
26
+ calendar : {
27
+ sameDay : '[අද] LT[ට]',
28
+ nextDay : '[හෙට] LT[ට]',
29
+ nextWeek : 'dddd LT[ට]',
30
+ lastDay : '[ඊයේ] LT[ට]',
31
+ lastWeek : '[පසුගිය] dddd LT[ට]',
32
+ sameElse : 'L'
33
+ },
34
+ relativeTime : {
35
+ future : '%sකින්',
36
+ past : '%sකට පෙර',
37
+ s : 'තත්පර කිහිපය',
38
+ m : 'මිනිත්තුව',
39
+ mm : 'මිනිත්තු %d',
40
+ h : 'පැය',
41
+ hh : 'පැය %d',
42
+ d : 'දිනය',
43
+ dd : 'දින %d',
44
+ M : 'මාසය',
45
+ MM : 'මාස %d',
46
+ y : 'වසර',
47
+ yy : 'වසර %d'
48
+ },
49
+ ordinalParse: /\d{1,2} වැනි/,
50
+ ordinal : function (number) {
51
+ return number + ' වැනි';
52
+ },
53
+ meridiem : function (hours, minutes, isLower) {
54
+ if (hours > 11) {
55
+ return isLower ? 'ප.ව.' : 'පස් වරු';
56
+ } else {
57
+ return isLower ? 'පෙ.ව.' : 'පෙර වරු';
58
+ }
59
+ }
60
+ });
61
+
62
+ return si;
63
+
64
+ }));
@@ -9,62 +9,72 @@
9
9
  }(this, function (moment) { 'use strict';
10
10
 
11
11
 
12
- function translate(number, withoutSuffix, key) {
12
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
13
13
  var result = number + ' ';
14
14
  switch (key) {
15
+ case 's':
16
+ return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
15
17
  case 'm':
16
18
  return withoutSuffix ? 'ena minuta' : 'eno minuto';
17
19
  case 'mm':
18
20
  if (number === 1) {
19
- result += 'minuta';
21
+ result += withoutSuffix ? 'minuta' : 'minuto';
20
22
  } else if (number === 2) {
21
- result += 'minuti';
22
- } else if (number === 3 || number === 4) {
23
- result += 'minute';
23
+ result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
24
+ } else if (number < 5) {
25
+ result += withoutSuffix || isFuture ? 'minute' : 'minutami';
24
26
  } else {
25
- result += 'minut';
27
+ result += withoutSuffix || isFuture ? 'minut' : 'minutami';
26
28
  }
27
29
  return result;
28
30
  case 'h':
29
31
  return withoutSuffix ? 'ena ura' : 'eno uro';
30
32
  case 'hh':
31
33
  if (number === 1) {
32
- result += 'ura';
34
+ result += withoutSuffix ? 'ura' : 'uro';
33
35
  } else if (number === 2) {
34
- result += 'uri';
35
- } else if (number === 3 || number === 4) {
36
- result += 'ure';
36
+ result += withoutSuffix || isFuture ? 'uri' : 'urama';
37
+ } else if (number < 5) {
38
+ result += withoutSuffix || isFuture ? 'ure' : 'urami';
37
39
  } else {
38
- result += 'ur';
40
+ result += withoutSuffix || isFuture ? 'ur' : 'urami';
39
41
  }
40
42
  return result;
43
+ case 'd':
44
+ return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
41
45
  case 'dd':
42
46
  if (number === 1) {
43
- result += 'dan';
47
+ result += withoutSuffix || isFuture ? 'dan' : 'dnem';
48
+ } else if (number === 2) {
49
+ result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
44
50
  } else {
45
- result += 'dni';
51
+ result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
46
52
  }
47
53
  return result;
54
+ case 'M':
55
+ return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
48
56
  case 'MM':
49
57
  if (number === 1) {
50
- result += 'mesec';
58
+ result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
51
59
  } else if (number === 2) {
52
- result += 'meseca';
53
- } else if (number === 3 || number === 4) {
54
- result += 'mesece';
60
+ result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
61
+ } else if (number < 5) {
62
+ result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
55
63
  } else {
56
- result += 'mesecev';
64
+ result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
57
65
  }
58
66
  return result;
67
+ case 'y':
68
+ return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
59
69
  case 'yy':
60
70
  if (number === 1) {
61
- result += 'leto';
71
+ result += withoutSuffix || isFuture ? 'leto' : 'letom';
62
72
  } else if (number === 2) {
63
- result += 'leti';
64
- } else if (number === 3 || number === 4) {
65
- result += 'leta';
73
+ result += withoutSuffix || isFuture ? 'leti' : 'letoma';
74
+ } else if (number < 5) {
75
+ result += withoutSuffix || isFuture ? 'leta' : 'leti';
66
76
  } else {
67
- result += 'let';
77
+ result += withoutSuffix || isFuture ? 'let' : 'leti';
68
78
  }
69
79
  return result;
70
80
  }
@@ -87,6 +97,7 @@
87
97
  calendar : {
88
98
  sameDay : '[danes ob] LT',
89
99
  nextDay : '[jutri ob] LT',
100
+
90
101
  nextWeek : function () {
91
102
  switch (this.day()) {
92
103
  case 0:
@@ -106,9 +117,11 @@
106
117
  lastWeek : function () {
107
118
  switch (this.day()) {
108
119
  case 0:
120
+ return '[prejšnjo] [nedeljo] [ob] LT';
109
121
  case 3:
122
+ return '[prejšnjo] [sredo] [ob] LT';
110
123
  case 6:
111
- return '[prejšnja] dddd [ob] LT';
124
+ return '[prejšnjo] [soboto] [ob] LT';
112
125
  case 1:
113
126
  case 2:
114
127
  case 4:
@@ -120,18 +133,18 @@
120
133
  },
121
134
  relativeTime : {
122
135
  future : 'čez %s',
123
- past : '%s nazaj',
124
- s : 'nekaj sekund',
125
- m : translate,
126
- mm : translate,
127
- h : translate,
128
- hh : translate,
129
- d : 'en dan',
130
- dd : translate,
131
- M : 'en mesec',
132
- MM : translate,
133
- y : 'eno leto',
134
- yy : translate
136
+ past : 'pred %s',
137
+ s : processRelativeTime,
138
+ m : processRelativeTime,
139
+ mm : processRelativeTime,
140
+ h : processRelativeTime,
141
+ hh : processRelativeTime,
142
+ d : processRelativeTime,
143
+ dd : processRelativeTime,
144
+ M : processRelativeTime,
145
+ MM : processRelativeTime,
146
+ y : processRelativeTime,
147
+ yy : processRelativeTime
135
148
  },
136
149
  ordinalParse: /\d{1,2}\./,
137
150
  ordinal : '%d.',
@@ -27,8 +27,8 @@
27
27
  sameDay: '[Idag] LT',
28
28
  nextDay: '[Imorgon] LT',
29
29
  lastDay: '[Igår] LT',
30
- nextWeek: 'dddd LT',
31
- lastWeek: '[Förra] dddd[en] LT',
30
+ nextWeek: '[På] dddd LT',
31
+ lastWeek: '[I] dddd[s] LT',
32
32
  sameElse: 'L'
33
33
  },
34
34
  relativeTime : {
@@ -17,7 +17,7 @@
17
17
  weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
18
18
  weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
19
19
  longDateFormat : {
20
- LT : 'Ah点mm',
20
+ LT : 'Ah点mm',
21
21
  LTS : 'Ah点m分s秒',
22
22
  L : 'YYYY-MM-DD',
23
23
  LL : 'YYYY年MMMD日',
@@ -103,16 +103,16 @@
103
103
  future : '%s内',
104
104
  past : '%s前',
105
105
  s : '几秒',
106
- m : '1分钟',
107
- mm : '%d分钟',
108
- h : '1小时',
109
- hh : '%d小时',
110
- d : '1天',
111
- dd : '%d天',
112
- M : '1个月',
113
- MM : '%d个月',
114
- y : '1年',
115
- yy : '%d年'
106
+ m : '1 分钟',
107
+ mm : '%d 分钟',
108
+ h : '1 小时',
109
+ hh : '%d 小时',
110
+ d : '1 天',
111
+ dd : '%d 天',
112
+ M : '1 个月',
113
+ MM : '%d 个月',
114
+ y : '1 年',
115
+ yy : '%d 年'
116
116
  },
117
117
  week : {
118
118
  // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
@@ -16,7 +16,7 @@
16
16
  weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
17
17
  weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
18
18
  longDateFormat : {
19
- LT : 'Ah點mm',
19
+ LT : 'Ah點mm',
20
20
  LTS : 'Ah點m分s秒',
21
21
  L : 'YYYY年MMMD日',
22
22
  LL : 'YYYY年MMMD日',
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.10.2
4
+ version: 2.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Prior
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-24 00:00:00.000000000 Z
11
+ date: 2015-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -120,12 +120,14 @@ files:
120
120
  - vendor/assets/javascripts/moment/is.js
121
121
  - vendor/assets/javascripts/moment/it.js
122
122
  - vendor/assets/javascripts/moment/ja.js
123
+ - vendor/assets/javascripts/moment/jv.js
123
124
  - vendor/assets/javascripts/moment/ka.js
124
125
  - vendor/assets/javascripts/moment/km.js
125
126
  - vendor/assets/javascripts/moment/ko.js
126
127
  - vendor/assets/javascripts/moment/lb.js
127
128
  - vendor/assets/javascripts/moment/lt.js
128
129
  - vendor/assets/javascripts/moment/lv.js
130
+ - vendor/assets/javascripts/moment/me.js
129
131
  - vendor/assets/javascripts/moment/mk.js
130
132
  - vendor/assets/javascripts/moment/ml.js
131
133
  - vendor/assets/javascripts/moment/mr.js
@@ -140,6 +142,7 @@ files:
140
142
  - vendor/assets/javascripts/moment/pt.js
141
143
  - vendor/assets/javascripts/moment/ro.js
142
144
  - vendor/assets/javascripts/moment/ru.js
145
+ - vendor/assets/javascripts/moment/si.js
143
146
  - vendor/assets/javascripts/moment/sk.js
144
147
  - vendor/assets/javascripts/moment/sl.js
145
148
  - vendor/assets/javascripts/moment/sq.js