momentjs-rails 2.4.0 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,9 +36,9 @@
36
36
  relativeTime : {
37
37
  future : "në %s",
38
38
  past : "%s me parë",
39
- s : "disa seconda",
39
+ s : "disa sekonda",
40
40
  m : "një minut",
41
- mm : "%d minutea",
41
+ mm : "%d minuta",
42
42
  h : "një orë",
43
43
  hh : "%d orë",
44
44
  d : "një ditë",
@@ -0,0 +1,112 @@
1
+ // moment.js language configuration
2
+ // language : tamil (ta)
3
+ // author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
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
+ /*var symbolMap = {
15
+ '1': '௧',
16
+ '2': '௨',
17
+ '3': '௩',
18
+ '4': '௪',
19
+ '5': '௫',
20
+ '6': '௬',
21
+ '7': '௭',
22
+ '8': '௮',
23
+ '9': '௯',
24
+ '0': '௦'
25
+ },
26
+ numberMap = {
27
+ '௧': '1',
28
+ '௨': '2',
29
+ '௩': '3',
30
+ '௪': '4',
31
+ '௫': '5',
32
+ '௬': '6',
33
+ '௭': '7',
34
+ '௮': '8',
35
+ '௯': '9',
36
+ '௦': '0'
37
+ }; */
38
+
39
+ return moment.lang('ta', {
40
+ months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split("_"),
41
+ monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split("_"),
42
+ weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split("_"),
43
+ weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split("_"),
44
+ weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split("_"),
45
+ longDateFormat : {
46
+ LT : "HH:mm",
47
+ L : "DD/MM/YYYY",
48
+ LL : "D MMMM YYYY",
49
+ LLL : "D MMMM YYYY, LT",
50
+ LLLL : "dddd, D MMMM YYYY, LT"
51
+ },
52
+ calendar : {
53
+ sameDay : '[இன்று] LT',
54
+ nextDay : '[நாளை] LT',
55
+ nextWeek : 'dddd, LT',
56
+ lastDay : '[நேற்று] LT',
57
+ lastWeek : '[கடந்த வாரம்] dddd, LT',
58
+ sameElse : 'L'
59
+ },
60
+ relativeTime : {
61
+ future : "%s இல்",
62
+ past : "%s முன்",
63
+ s : "ஒரு சில விநாடிகள்",
64
+ m : "ஒரு நிமிடம்",
65
+ mm : "%d நிமிடங்கள்",
66
+ h : "ஒரு மணி நேரம்",
67
+ hh : "%d மணி நேரம்",
68
+ d : "ஒரு நாள்",
69
+ dd : "%d நாட்கள்",
70
+ M : "ஒரு மாதம்",
71
+ MM : "%d மாதங்கள்",
72
+ y : "ஒரு வருடம்",
73
+ yy : "%d ஆண்டுகள்"
74
+ },
75
+ /* preparse: function (string) {
76
+ return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
77
+ return numberMap[match];
78
+ });
79
+ },
80
+ postformat: function (string) {
81
+ return string.replace(/\d/g, function (match) {
82
+ return symbolMap[match];
83
+ });
84
+ },*/
85
+ ordinal : function (number) {
86
+ return number + 'வது';
87
+ },
88
+
89
+
90
+ // refer http://ta.wikipedia.org/s/1er1
91
+
92
+ meridiem : function (hour, minute, isLower) {
93
+ if (hour >= 6 && hour <= 10) {
94
+ return " காலை";
95
+ } else if (hour >= 10 && hour <= 14) {
96
+ return " நண்பகல்";
97
+ } else if (hour >= 14 && hour <= 18) {
98
+ return " எற்பாடு";
99
+ } else if (hour >= 18 && hour <= 20) {
100
+ return " மாலை";
101
+ } else if (hour >= 20 && hour <= 24) {
102
+ return " இரவு";
103
+ } else if (hour >= 0 && hour <= 6) {
104
+ return " வைகறை";
105
+ }
106
+ },
107
+ week : {
108
+ dow : 0, // Sunday is the first day of the week.
109
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
110
+ }
111
+ });
112
+ }));
@@ -20,11 +20,11 @@
20
20
  weekdaysMin : "日_一_二_三_四_五_六".split("_"),
21
21
  longDateFormat : {
22
22
  LT : "Ah点mm",
23
- L : "YYYY年MMMD日",
23
+ L : "YYYY-MM-DD",
24
24
  LL : "YYYY年MMMD日",
25
25
  LLL : "YYYY年MMMD日LT",
26
26
  LLLL : "YYYY年MMMD日ddddLT",
27
- l : "YYYY年MMMD日",
27
+ l : "YYYY-MM-DD",
28
28
  ll : "YYYY年MMMD日",
29
29
  lll : "YYYY年MMMD日LT",
30
30
  llll : "YYYY年MMMD日ddddLT"
@@ -67,7 +67,7 @@
67
67
  prefix = this.unix() < startOfWeek.unix() ? '[上]' : '[本]';
68
68
  return this.minutes() === 0 ? prefix + "dddAh点整" : prefix + "dddAh点mm";
69
69
  },
70
- sameElse : 'L'
70
+ sameElse : 'LL'
71
71
  },
72
72
  ordinal : function (number, period) {
73
73
  switch (period) {
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.0
4
+ version: 2.5.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: 2013-11-15 00:00:00.000000000 Z
11
+ date: 2014-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -82,8 +82,10 @@ files:
82
82
  - vendor/assets/javascripts/moment/ja.js
83
83
  - vendor/assets/javascripts/moment/ka.js
84
84
  - vendor/assets/javascripts/moment/ko.js
85
+ - vendor/assets/javascripts/moment/lb.js
85
86
  - vendor/assets/javascripts/moment/lt.js
86
87
  - vendor/assets/javascripts/moment/lv.js
88
+ - vendor/assets/javascripts/moment/mk.js
87
89
  - vendor/assets/javascripts/moment/ml.js
88
90
  - vendor/assets/javascripts/moment/mr.js
89
91
  - vendor/assets/javascripts/moment/ms-my.js
@@ -95,11 +97,13 @@ files:
95
97
  - vendor/assets/javascripts/moment/pt-br.js
96
98
  - vendor/assets/javascripts/moment/pt.js
97
99
  - vendor/assets/javascripts/moment/ro.js
100
+ - vendor/assets/javascripts/moment/rs.js
98
101
  - vendor/assets/javascripts/moment/ru.js
99
102
  - vendor/assets/javascripts/moment/sk.js
100
103
  - vendor/assets/javascripts/moment/sl.js
101
104
  - vendor/assets/javascripts/moment/sq.js
102
105
  - vendor/assets/javascripts/moment/sv.js
106
+ - vendor/assets/javascripts/moment/ta.js
103
107
  - vendor/assets/javascripts/moment/th.js
104
108
  - vendor/assets/javascripts/moment/tl-ph.js
105
109
  - vendor/assets/javascripts/moment/tr.js