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
@@ -1,133 +1,124 @@
1
1
  // moment.js language configuration
2
2
  // language : russian (ru)
3
3
  // author : Viktorminator : https://github.com/Viktorminator
4
- (function () {
5
4
 
6
- var pluralRules = [
7
- function (n) { return ((n % 10 === 1) && (n % 100 !== 11)); },
8
- function (n) { return ((n % 10) >= 2 && (n % 10) <= 4 && ((n % 10) % 1) === 0) && ((n % 100) < 12 || (n % 100) > 14); },
9
- function (n) { return ((n % 10) === 0 || ((n % 10) >= 5 && (n % 10) <= 9 && ((n % 10) % 1) === 0) || ((n % 100) >= 11 && (n % 100) <= 14 && ((n % 100) % 1) === 0)); },
10
- function (n) { return true; }
11
- ],
5
+ var pluralRules = [
6
+ function (n) { return ((n % 10 === 1) && (n % 100 !== 11)); },
7
+ function (n) { return ((n % 10) >= 2 && (n % 10) <= 4 && ((n % 10) % 1) === 0) && ((n % 100) < 12 || (n % 100) > 14); },
8
+ function (n) { return ((n % 10) === 0 || ((n % 10) >= 5 && (n % 10) <= 9 && ((n % 10) % 1) === 0) || ((n % 100) >= 11 && (n % 100) <= 14 && ((n % 100) % 1) === 0)); },
9
+ function (n) { return true; }
10
+ ];
12
11
 
13
- plural = function (word, num) {
14
- var forms = word.split('_'),
15
- minCount = Math.min(pluralRules.length, forms.length),
16
- i = -1;
12
+ function plural(word, num) {
13
+ var forms = word.split('_'),
14
+ minCount = Math.min(pluralRules.length, forms.length),
15
+ i = -1;
17
16
 
18
- while (++i < minCount) {
19
- if (pluralRules[i](num)) {
20
- return forms[i];
21
- }
17
+ while (++i < minCount) {
18
+ if (pluralRules[i](num)) {
19
+ return forms[i];
22
20
  }
23
- return forms[minCount - 1];
24
- },
21
+ }
22
+ return forms[minCount - 1];
23
+ }
25
24
 
26
- relativeTimeWithPlural = function (number, withoutSuffix, key) {
27
- var format = {
28
- 'mm': 'минута_минуты_минут_минуты',
29
- 'hh': 'час_часа_часов_часа',
30
- 'dd': 'день_дня_дней_дня',
31
- 'MM': 'месяц_месяца_месяцев_месяца',
32
- 'yy': 'год_года_лет_года'
33
- };
34
- if (key === 'm') {
35
- return withoutSuffix ? 'минута' : 'минуту';
36
- }
37
- else {
38
- return number + ' ' + plural(format[key], +number);
39
- }
25
+ function relativeTimeWithPlural(number, withoutSuffix, key) {
26
+ var format = {
27
+ 'mm': 'минута_минуты_минут_минуты',
28
+ 'hh': 'час_часа_часов_часа',
29
+ 'dd': 'день_дня_дней_дня',
30
+ 'MM': 'месяц_месяца_месяцев_месяца',
31
+ 'yy': 'год_года_лет_года'
32
+ };
33
+ if (key === 'm') {
34
+ return withoutSuffix ? 'минута' : 'минуту';
35
+ }
36
+ else {
37
+ return number + ' ' + plural(format[key], +number);
38
+ }
39
+ }
40
+
41
+ function monthsCaseReplace(m, format) {
42
+ var months = {
43
+ 'nominative': 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
44
+ 'accusative': 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_')
40
45
  },
41
46
 
42
- monthsCaseReplace = function (m, format) {
43
- var months = {
44
- 'nominative': 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
45
- 'accusative': 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_')
46
- },
47
+ nounCase = (/D[oD]? *MMMM?/).test(format) ?
48
+ 'accusative' :
49
+ 'nominative';
47
50
 
48
- nounCase = (/D[oD]? *MMMM?/).test(format) ?
49
- 'accusative' :
50
- 'nominative';
51
+ return months[nounCase][m.month()];
52
+ }
51
53
 
52
- return months[nounCase][m.month()];
54
+ function weekdaysCaseReplace(m, format) {
55
+ var weekdays = {
56
+ 'nominative': 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
57
+ 'accusative': 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_')
53
58
  },
54
59
 
55
- weekdaysCaseReplace = function (m, format) {
56
- var weekdays = {
57
- 'nominative': 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
58
- 'accusative': 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_')
59
- },
60
+ nounCase = (/\[ ?[Вв] ?(?:прошлую|следующую)? ?\] ?dddd/).test(format) ?
61
+ 'accusative' :
62
+ 'nominative';
60
63
 
61
- nounCase = (/\[ ?[Вв] ?(?:прошлую|следующую)? ?\] ?dddd/).test(format) ?
62
- 'accusative' :
63
- 'nominative';
64
+ return weekdays[nounCase][m.day()];
65
+ }
64
66
 
65
- return weekdays[nounCase][m.day()];
67
+ require('../moment').lang('ru', {
68
+ months : monthsCaseReplace,
69
+ monthsShort : "янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),
70
+ weekdays : weekdaysCaseReplace,
71
+ weekdaysShort : "вск_пнд_втр_срд_чтв_птн_сбт".split("_"),
72
+ weekdaysMin : "вс_пн_вт_ср_чт_пт_сб".split("_"),
73
+ longDateFormat : {
74
+ LT : "HH:mm",
75
+ L : "DD.MM.YYYY",
76
+ LL : "D MMMM YYYY г.",
77
+ LLL : "D MMMM YYYY г., LT",
78
+ LLLL : "dddd, D MMMM YYYY г., LT"
66
79
  },
67
-
68
- lang = {
69
- months : monthsCaseReplace,
70
- monthsShort : "янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),
71
- weekdays : weekdaysCaseReplace,
72
- weekdaysShort : "вск_пнд_втр_срд_чтв_птн_сбт".split("_"),
73
- weekdaysMin : "вс_пн_вт_ср_чт_пт_сб".split("_"),
74
- longDateFormat : {
75
- LT : "HH:mm",
76
- L : "DD.MM.YYYY",
77
- LL : "D MMMM YYYY г.",
78
- LLL : "D MMMM YYYY г., LT",
79
- LLLL : "dddd, D MMMM YYYY г., LT"
80
- },
81
- calendar : {
82
- sameDay: '[Сегодня в] LT',
83
- nextDay: '[Завтра в] LT',
84
- lastDay: '[Вчера в] LT',
85
- nextWeek: function () {
86
- return this.day() === 2 ? '[Во] dddd [в] LT' : '[В] dddd [в] LT';
87
- },
88
- lastWeek: function () {
89
- switch (this.day()) {
90
- case 0:
91
- return '[В прошлое] dddd [в] LT';
92
- case 1:
93
- case 2:
94
- case 4:
95
- return '[В прошлый] dddd [в] LT';
96
- case 3:
97
- case 5:
98
- case 6:
99
- return '[В прошлую] dddd [в] LT';
100
- }
101
- },
102
- sameElse: 'L'
103
- },
104
- // It needs checking (adding) russian plurals and cases.
105
- relativeTime : {
106
- future : "через %s",
107
- past : "%s назад",
108
- s : "несколько секунд",
109
- m : relativeTimeWithPlural,
110
- mm : relativeTimeWithPlural,
111
- h : "час",
112
- hh : relativeTimeWithPlural,
113
- d : "день",
114
- dd : relativeTimeWithPlural,
115
- M : "месяц",
116
- MM : relativeTimeWithPlural,
117
- y : "год",
118
- yy : relativeTimeWithPlural
119
- },
120
- ordinal : function (number) {
121
- return '.';
80
+ calendar : {
81
+ sameDay: '[Сегодня в] LT',
82
+ nextDay: '[Завтра в] LT',
83
+ lastDay: '[Вчера в] LT',
84
+ nextWeek: function () {
85
+ return this.day() === 2 ? '[Во] dddd [в] LT' : '[В] dddd [в] LT';
86
+ },
87
+ lastWeek: function () {
88
+ switch (this.day()) {
89
+ case 0:
90
+ return '[В прошлое] dddd [в] LT';
91
+ case 1:
92
+ case 2:
93
+ case 4:
94
+ return '[В прошлый] dddd [в] LT';
95
+ case 3:
96
+ case 5:
97
+ case 6:
98
+ return '[В прошлую] dddd [в] LT';
122
99
  }
123
- };
124
-
125
- // Node
126
- if (typeof module !== 'undefined' && module.exports) {
127
- module.exports = lang;
128
- }
129
- // Browser
130
- if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
131
- this.moment.lang('ru', lang);
100
+ },
101
+ sameElse: 'L'
102
+ },
103
+ // It needs checking (adding) russian plurals and cases.
104
+ relativeTime : {
105
+ future : "через %s",
106
+ past : "%s назад",
107
+ s : "несколько секунд",
108
+ m : relativeTimeWithPlural,
109
+ mm : relativeTimeWithPlural,
110
+ h : "час",
111
+ hh : relativeTimeWithPlural,
112
+ d : "день",
113
+ dd : relativeTimeWithPlural,
114
+ M : "месяц",
115
+ MM : relativeTimeWithPlural,
116
+ y : "год",
117
+ yy : relativeTimeWithPlural
118
+ },
119
+ ordinal : '%d.',
120
+ week : {
121
+ dow : 1, // Monday is the first day of the week.
122
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
132
123
  }
133
- }());
124
+ });
@@ -0,0 +1,134 @@
1
+ // moment.js language configuration
2
+ // language : slovenian (sl)
3
+ // author : Robert Sedovšek : https://github.com/sedovsek
4
+
5
+ function translate(number, withoutSuffix, key) {
6
+ var result = number + " ";
7
+ switch (key) {
8
+ case 'm':
9
+ return withoutSuffix ? 'ena minuta' : 'eno minuto';
10
+ case 'mm':
11
+ if (number === 1) {
12
+ result += 'minuta';
13
+ } else if (number === 2) {
14
+ result += 'minuti';
15
+ } else if (number === 3 || number === 4) {
16
+ result += 'minute';
17
+ } else {
18
+ result += 'minut';
19
+ }
20
+ return result;
21
+ case 'h':
22
+ return withoutSuffix ? 'ena ura' : 'eno uro';
23
+ case 'hh':
24
+ if (number === 1) {
25
+ result += 'ura';
26
+ } else if (number === 2) {
27
+ result += 'uri';
28
+ } else if (number === 3 || number === 4) {
29
+ result += 'ure';
30
+ } else {
31
+ result += 'ur';
32
+ }
33
+ return result;
34
+ case 'dd':
35
+ if (number === 1) {
36
+ result += 'dan';
37
+ } else {
38
+ result += 'dni';
39
+ }
40
+ return result;
41
+ case 'MM':
42
+ if (number === 1) {
43
+ result += 'mesec';
44
+ } else if (number === 2) {
45
+ result += 'meseca';
46
+ } else if (number === 3 || number === 4) {
47
+ result += 'mesece';
48
+ } else {
49
+ result += 'mesecev';
50
+ }
51
+ return result;
52
+ case 'yy':
53
+ if (number === 1) {
54
+ result += 'leto';
55
+ } else if (number === 2) {
56
+ result += 'leti';
57
+ } else if (number === 3 || number === 4) {
58
+ result += 'leta';
59
+ } else {
60
+ result += 'let';
61
+ }
62
+ return result;
63
+ }
64
+ }
65
+
66
+ require('../moment').lang('sl', {
67
+ months : "januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),
68
+ monthsShort : "jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),
69
+ weekdays : "nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),
70
+ weekdaysShort : "ned._pon._tor._sre._čet._pet._sob.".split("_"),
71
+ weekdaysMin : "ne_po_to_sr_če_pe_so".split("_"),
72
+ longDateFormat : {
73
+ LT : "H:mm",
74
+ L : "DD. MM. YYYY",
75
+ LL : "D. MMMM YYYY",
76
+ LLL : "D. MMMM YYYY LT",
77
+ LLLL : "dddd, D. MMMM YYYY LT"
78
+ },
79
+ calendar : {
80
+ sameDay : '[danes ob] LT',
81
+ nextDay : '[jutri ob] LT',
82
+
83
+ nextWeek : function () {
84
+ switch (this.day()) {
85
+ case 0:
86
+ return '[v] [nedeljo] [ob] LT';
87
+ case 3:
88
+ return '[v] [sredo] [ob] LT';
89
+ case 6:
90
+ return '[v] [soboto] [ob] LT';
91
+ case 1:
92
+ case 2:
93
+ case 4:
94
+ case 5:
95
+ return '[v] dddd [ob] LT';
96
+ }
97
+ },
98
+ lastDay : '[včeraj ob] LT',
99
+ lastWeek : function () {
100
+ switch (this.day()) {
101
+ case 0:
102
+ case 3:
103
+ case 6:
104
+ return '[prejšnja] dddd [ob] LT';
105
+ case 1:
106
+ case 2:
107
+ case 4:
108
+ case 5:
109
+ return '[prejšnji] dddd [ob] LT';
110
+ }
111
+ },
112
+ sameElse : 'L'
113
+ },
114
+ relativeTime : {
115
+ future : "čez %s",
116
+ past : "%s nazaj",
117
+ s : "nekaj sekund",
118
+ m : translate,
119
+ mm : translate,
120
+ h : translate,
121
+ hh : translate,
122
+ d : "en dan",
123
+ dd : translate,
124
+ M : "en mesec",
125
+ MM : translate,
126
+ y : "eno leto",
127
+ yy : translate
128
+ },
129
+ ordinal : '%d.',
130
+ week : {
131
+ dow : 1, // Monday is the first day of the week.
132
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
133
+ }
134
+ });
@@ -1,58 +1,53 @@
1
1
  // moment.js language configuration
2
2
  // language : swedish (sv)
3
3
  // author : Jens Alm : https://github.com/ulmus
4
- (function () {
5
- var lang = {
6
- months : "januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),
7
- monthsShort : "jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),
8
- weekdays : "söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),
9
- weekdaysShort : "sön_mån_tis_ons_tor_fre_lör".split("_"),
10
- weekdaysMin : "sö_må_ti_on_to_fr_lö".split("_"),
11
- longDateFormat : {
12
- LT : "HH:mm",
13
- L : "YYYY-MM-DD",
14
- LL : "D MMMM YYYY",
15
- LLL : "D MMMM YYYY LT",
16
- LLLL : "dddd D MMMM YYYY LT"
17
- },
18
- calendar : {
19
- sameDay: '[Idag klockan] LT',
20
- nextDay: '[Imorgon klockan] LT',
21
- lastDay: '[Igår klockan] LT',
22
- nextWeek: 'dddd [klockan] LT',
23
- lastWeek: '[Förra] dddd[en klockan] LT',
24
- sameElse: 'L'
25
- },
26
- relativeTime : {
27
- future : "om %s",
28
- past : "för %s sen",
29
- s : "några sekunder",
30
- m : "en minut",
31
- mm : "%d minuter",
32
- h : "en timme",
33
- hh : "%d timmar",
34
- d : "en dag",
35
- dd : "%d dagar",
36
- M : "en månad",
37
- MM : "%d månader",
38
- y : "ett år",
39
- yy : "%d år"
40
- },
41
- ordinal : function (number) {
42
- var b = number % 10;
43
- return (~~ (number % 100 / 10) === 1) ? 'e' :
44
- (b === 1) ? 'a' :
45
- (b === 2) ? 'a' :
46
- (b === 3) ? 'e' : 'e';
47
- }
48
- };
49
4
 
50
- // Node
51
- if (typeof module !== 'undefined' && module.exports) {
52
- module.exports = lang;
5
+ require('../moment').lang('sv', {
6
+ months : "januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),
7
+ monthsShort : "jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),
8
+ weekdays : "söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),
9
+ weekdaysShort : "sön_mån_tis_ons_tor_fre_lör".split("_"),
10
+ weekdaysMin : "sö_må_ti_on_to_fr_lö".split("_"),
11
+ longDateFormat : {
12
+ LT : "HH:mm",
13
+ L : "YYYY-MM-DD",
14
+ LL : "D MMMM YYYY",
15
+ LLL : "D MMMM YYYY LT",
16
+ LLLL : "dddd D MMMM YYYY LT"
17
+ },
18
+ calendar : {
19
+ sameDay: '[Idag klockan] LT',
20
+ nextDay: '[Imorgon klockan] LT',
21
+ lastDay: '[Igår klockan] LT',
22
+ nextWeek: 'dddd [klockan] LT',
23
+ lastWeek: '[Förra] dddd[en klockan] LT',
24
+ sameElse: 'L'
25
+ },
26
+ relativeTime : {
27
+ future : "om %s",
28
+ past : "för %s sedan",
29
+ s : "några sekunder",
30
+ m : "en minut",
31
+ mm : "%d minuter",
32
+ h : "en timme",
33
+ hh : "%d timmar",
34
+ d : "en dag",
35
+ dd : "%d dagar",
36
+ M : "en månad",
37
+ MM : "%d månader",
38
+ y : "ett år",
39
+ yy : "%d år"
40
+ },
41
+ ordinal : function (number) {
42
+ var b = number % 10,
43
+ output = (~~ (number % 100 / 10) === 1) ? 'e' :
44
+ (b === 1) ? 'a' :
45
+ (b === 2) ? 'a' :
46
+ (b === 3) ? 'e' : 'e';
47
+ return number + output;
48
+ },
49
+ week : {
50
+ dow : 1, // Monday is the first day of the week.
51
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
53
52
  }
54
- // Browser
55
- if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
56
- this.moment.lang('sv', lang);
57
- }
58
- }());
53
+ });