ember-rails-i18n 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +339 -0
  5. data/README.md +64 -0
  6. data/Rakefile +1 -0
  7. data/ember-rails-i18n.gemspec +26 -0
  8. data/lib/ember-rails-i18n.rb +15 -0
  9. data/lib/ember-rails-i18n/helper.rb +29 -0
  10. data/lib/ember-rails-i18n/version.rb +3 -0
  11. data/lib/javascripts/moment.js +2489 -0
  12. data/lib/javascripts/moment_locale/ar-ma.js +56 -0
  13. data/lib/javascripts/moment_locale/ar.js +56 -0
  14. data/lib/javascripts/moment_locale/bg.js +86 -0
  15. data/lib/javascripts/moment_locale/br.js +107 -0
  16. data/lib/javascripts/moment_locale/bs.js +139 -0
  17. data/lib/javascripts/moment_locale/ca.js +66 -0
  18. data/lib/javascripts/moment_locale/cs.js +155 -0
  19. data/lib/javascripts/moment_locale/cv.js +59 -0
  20. data/lib/javascripts/moment_locale/cy.js +77 -0
  21. data/lib/javascripts/moment_locale/da.js +56 -0
  22. data/lib/javascripts/moment_locale/de.js +71 -0
  23. data/lib/javascripts/moment_locale/el.js +79 -0
  24. data/lib/javascripts/moment_locale/en-au.js +62 -0
  25. data/lib/javascripts/moment_locale/en-ca.js +59 -0
  26. data/lib/javascripts/moment_locale/en-gb.js +63 -0
  27. data/lib/javascripts/moment_locale/eo.js +65 -0
  28. data/lib/javascripts/moment_locale/es.js +75 -0
  29. data/lib/javascripts/moment_locale/et.js +76 -0
  30. data/lib/javascripts/moment_locale/eu.js +60 -0
  31. data/lib/javascripts/moment_locale/fa.js +97 -0
  32. data/lib/javascripts/moment_locale/fi.js +103 -0
  33. data/lib/javascripts/moment_locale/fo.js +56 -0
  34. data/lib/javascripts/moment_locale/fr-ca.js +54 -0
  35. data/lib/javascripts/moment_locale/fr.js +58 -0
  36. data/lib/javascripts/moment_locale/gl.js +71 -0
  37. data/lib/javascripts/moment_locale/he.js +77 -0
  38. data/lib/javascripts/moment_locale/hi.js +105 -0
  39. data/lib/javascripts/moment_locale/hr.js +140 -0
  40. data/lib/javascripts/moment_locale/hu.js +105 -0
  41. data/lib/javascripts/moment_locale/hy-am.js +113 -0
  42. data/lib/javascripts/moment_locale/id.js +67 -0
  43. data/lib/javascripts/moment_locale/is.js +124 -0
  44. data/lib/javascripts/moment_locale/it.js +59 -0
  45. data/lib/javascripts/moment_locale/ja.js +58 -0
  46. data/lib/javascripts/moment_locale/ka.js +108 -0
  47. data/lib/javascripts/moment_locale/km.js +55 -0
  48. data/lib/javascripts/moment_locale/ko.js +63 -0
  49. data/lib/javascripts/moment_locale/lb.js +160 -0
  50. data/lib/javascripts/moment_locale/lt.js +118 -0
  51. data/lib/javascripts/moment_locale/lv.js +77 -0
  52. data/lib/javascripts/moment_locale/mk.js +86 -0
  53. data/lib/javascripts/moment_locale/ml.js +64 -0
  54. data/lib/javascripts/moment_locale/mr.js +104 -0
  55. data/lib/javascripts/moment_locale/ms-my.js +66 -0
  56. data/lib/javascripts/moment_locale/nb.js +57 -0
  57. data/lib/javascripts/moment_locale/ne.js +105 -0
  58. data/lib/javascripts/moment_locale/nl.js +67 -0
  59. data/lib/javascripts/moment_locale/nn.js +56 -0
  60. data/lib/javascripts/moment_locale/pl.js +98 -0
  61. data/lib/javascripts/moment_locale/pt-br.js +56 -0
  62. data/lib/javascripts/moment_locale/pt.js +60 -0
  63. data/lib/javascripts/moment_locale/ro.js +72 -0
  64. data/lib/javascripts/moment_locale/ru.js +163 -0
  65. data/lib/javascripts/moment_locale/sk.js +156 -0
  66. data/lib/javascripts/moment_locale/sl.js +144 -0
  67. data/lib/javascripts/moment_locale/sq.js +61 -0
  68. data/lib/javascripts/moment_locale/sr-cyr.js +106 -0
  69. data/lib/javascripts/moment_locale/sr.js +106 -0
  70. data/lib/javascripts/moment_locale/sv.js +63 -0
  71. data/lib/javascripts/moment_locale/ta.js +112 -0
  72. data/lib/javascripts/moment_locale/th.js +58 -0
  73. data/lib/javascripts/moment_locale/tl-ph.js +58 -0
  74. data/lib/javascripts/moment_locale/tr.js +93 -0
  75. data/lib/javascripts/moment_locale/tzm-la.js +55 -0
  76. data/lib/javascripts/moment_locale/tzm.js +55 -0
  77. data/lib/javascripts/moment_locale/uk.js +157 -0
  78. data/lib/javascripts/moment_locale/uz.js +55 -0
  79. data/lib/javascripts/moment_locale/vi.js +62 -0
  80. data/lib/javascripts/moment_locale/zh-cn.js +108 -0
  81. data/lib/javascripts/moment_locale/zh-tw.js +84 -0
  82. data/vendor/assets/javascripts/locales/i18n.js +598 -0
  83. data/vendor/assets/javascripts/locales/test.js.erb +3 -0
  84. metadata +182 -0
@@ -0,0 +1,106 @@
1
+ // moment.js language configuration
2
+ // language : Serbian-latin (sr)
3
+ // author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
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
+
15
+ var translator = {
16
+ words: { //Different grammatical cases
17
+ m: ['jedan minut', 'jedne minute'],
18
+ mm: ['minut', 'minute', 'minuta'],
19
+ h: ['jedan sat', 'jednog sata'],
20
+ hh: ['sat', 'sata', 'sati'],
21
+ dd: ['dan', 'dana', 'dana'],
22
+ MM: ['mesec', 'meseca', 'meseci'],
23
+ yy: ['godina', 'godine', 'godina']
24
+ },
25
+ correctGrammaticalCase: function (number, wordKey) {
26
+ return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
27
+ },
28
+ translate: function (number, withoutSuffix, key) {
29
+ var wordKey = translator.words[key];
30
+ if (key.length === 1) {
31
+ return withoutSuffix ? wordKey[0] : wordKey[1];
32
+ } else {
33
+ return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
34
+ }
35
+ }
36
+ };
37
+
38
+ return moment.lang('sr', {
39
+ months: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'],
40
+ monthsShort: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun', 'jul', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'],
41
+ weekdays: ['nedelja', 'ponedeljak', 'utorak', 'sreda', 'četvrtak', 'petak', 'subota'],
42
+ weekdaysShort: ['ned.', 'pon.', 'uto.', 'sre.', 'čet.', 'pet.', 'sub.'],
43
+ weekdaysMin: ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su'],
44
+ longDateFormat: {
45
+ LT: "H:mm",
46
+ L: "DD. MM. YYYY",
47
+ LL: "D. MMMM YYYY",
48
+ LLL: "D. MMMM YYYY LT",
49
+ LLLL: "dddd, D. MMMM YYYY LT"
50
+ },
51
+ calendar: {
52
+ sameDay: '[danas u] LT',
53
+ nextDay: '[sutra u] LT',
54
+
55
+ nextWeek: function () {
56
+ switch (this.day()) {
57
+ case 0:
58
+ return '[u] [nedelju] [u] LT';
59
+ case 3:
60
+ return '[u] [sredu] [u] LT';
61
+ case 6:
62
+ return '[u] [subotu] [u] LT';
63
+ case 1:
64
+ case 2:
65
+ case 4:
66
+ case 5:
67
+ return '[u] dddd [u] LT';
68
+ }
69
+ },
70
+ lastDay : '[juče u] LT',
71
+ lastWeek : function () {
72
+ var lastWeekDays = [
73
+ '[prošle] [nedelje] [u] LT',
74
+ '[prošlog] [ponedeljka] [u] LT',
75
+ '[prošlog] [utorka] [u] LT',
76
+ '[prošle] [srede] [u] LT',
77
+ '[prošlog] [četvrtka] [u] LT',
78
+ '[prošlog] [petka] [u] LT',
79
+ '[prošle] [subote] [u] LT'
80
+ ];
81
+ return lastWeekDays[this.day()];
82
+ },
83
+ sameElse : 'L'
84
+ },
85
+ relativeTime : {
86
+ future : "za %s",
87
+ past : "pre %s",
88
+ s : "nekoliko sekundi",
89
+ m : translator.translate,
90
+ mm : translator.translate,
91
+ h : translator.translate,
92
+ hh : translator.translate,
93
+ d : "dan",
94
+ dd : translator.translate,
95
+ M : "mesec",
96
+ MM : translator.translate,
97
+ y : "godinu",
98
+ yy : translator.translate
99
+ },
100
+ ordinal : '%d.',
101
+ week : {
102
+ dow : 1, // Monday is the first day of the week.
103
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
104
+ }
105
+ });
106
+ }));
@@ -0,0 +1,63 @@
1
+ // moment.js language configuration
2
+ // language : swedish (sv)
3
+ // author : Jens Alm : https://github.com/ulmus
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('sv', {
15
+ months : "januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),
16
+ monthsShort : "jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),
17
+ weekdays : "söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),
18
+ weekdaysShort : "sön_mån_tis_ons_tor_fre_lör".split("_"),
19
+ weekdaysMin : "sö_må_ti_on_to_fr_lö".split("_"),
20
+ longDateFormat : {
21
+ LT : "HH:mm",
22
+ L : "YYYY-MM-DD",
23
+ LL : "D MMMM YYYY",
24
+ LLL : "D MMMM YYYY LT",
25
+ LLLL : "dddd D MMMM YYYY LT"
26
+ },
27
+ calendar : {
28
+ sameDay: '[Idag] LT',
29
+ nextDay: '[Imorgon] LT',
30
+ lastDay: '[Igår] LT',
31
+ nextWeek: 'dddd LT',
32
+ lastWeek: '[Förra] dddd[en] LT',
33
+ sameElse: 'L'
34
+ },
35
+ relativeTime : {
36
+ future : "om %s",
37
+ past : "för %s sedan",
38
+ s : "några sekunder",
39
+ m : "en minut",
40
+ mm : "%d minuter",
41
+ h : "en timme",
42
+ hh : "%d timmar",
43
+ d : "en dag",
44
+ dd : "%d dagar",
45
+ M : "en månad",
46
+ MM : "%d månader",
47
+ y : "ett år",
48
+ yy : "%d år"
49
+ },
50
+ ordinal : function (number) {
51
+ var b = number % 10,
52
+ output = (~~ (number % 100 / 10) === 1) ? 'e' :
53
+ (b === 1) ? 'a' :
54
+ (b === 2) ? 'a' :
55
+ (b === 3) ? 'e' : 'e';
56
+ return number + output;
57
+ },
58
+ week : {
59
+ dow : 1, // Monday is the first day of the week.
60
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
61
+ }
62
+ });
63
+ }));
@@ -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
+ }));
@@ -0,0 +1,58 @@
1
+ // moment.js language configuration
2
+ // language : thai (th)
3
+ // author : Kridsada Thanabulpong : https://github.com/sirn
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('th', {
15
+ months : "มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),
16
+ monthsShort : "มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา".split("_"),
17
+ weekdays : "อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),
18
+ weekdaysShort : "อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"), // yes, three characters difference
19
+ weekdaysMin : "อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),
20
+ longDateFormat : {
21
+ LT : "H นาฬิกา m นาที",
22
+ L : "YYYY/MM/DD",
23
+ LL : "D MMMM YYYY",
24
+ LLL : "D MMMM YYYY เวลา LT",
25
+ LLLL : "วันddddที่ D MMMM YYYY เวลา LT"
26
+ },
27
+ meridiem : function (hour, minute, isLower) {
28
+ if (hour < 12) {
29
+ return "ก่อนเที่ยง";
30
+ } else {
31
+ return "หลังเที่ยง";
32
+ }
33
+ },
34
+ calendar : {
35
+ sameDay : '[วันนี้ เวลา] LT',
36
+ nextDay : '[พรุ่งนี้ เวลา] LT',
37
+ nextWeek : 'dddd[หน้า เวลา] LT',
38
+ lastDay : '[เมื่อวานนี้ เวลา] LT',
39
+ lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT',
40
+ sameElse : 'L'
41
+ },
42
+ relativeTime : {
43
+ future : "อีก %s",
44
+ past : "%sที่แล้ว",
45
+ s : "ไม่กี่วินาที",
46
+ m : "1 นาที",
47
+ mm : "%d นาที",
48
+ h : "1 ชั่วโมง",
49
+ hh : "%d ชั่วโมง",
50
+ d : "1 วัน",
51
+ dd : "%d วัน",
52
+ M : "1 เดือน",
53
+ MM : "%d เดือน",
54
+ y : "1 ปี",
55
+ yy : "%d ปี"
56
+ }
57
+ });
58
+ }));
@@ -0,0 +1,58 @@
1
+ // moment.js language configuration
2
+ // language : Tagalog/Filipino (tl-ph)
3
+ // author : Dan Hagman
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('tl-ph', {
15
+ months : "Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),
16
+ monthsShort : "Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),
17
+ weekdays : "Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),
18
+ weekdaysShort : "Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),
19
+ weekdaysMin : "Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),
20
+ longDateFormat : {
21
+ LT : "HH:mm",
22
+ L : "MM/D/YYYY",
23
+ LL : "MMMM D, YYYY",
24
+ LLL : "MMMM D, YYYY LT",
25
+ LLLL : "dddd, MMMM DD, YYYY LT"
26
+ },
27
+ calendar : {
28
+ sameDay: "[Ngayon sa] LT",
29
+ nextDay: '[Bukas sa] LT',
30
+ nextWeek: 'dddd [sa] LT',
31
+ lastDay: '[Kahapon sa] LT',
32
+ lastWeek: 'dddd [huling linggo] LT',
33
+ sameElse: 'L'
34
+ },
35
+ relativeTime : {
36
+ future : "sa loob ng %s",
37
+ past : "%s ang nakalipas",
38
+ s : "ilang segundo",
39
+ m : "isang minuto",
40
+ mm : "%d minuto",
41
+ h : "isang oras",
42
+ hh : "%d oras",
43
+ d : "isang araw",
44
+ dd : "%d araw",
45
+ M : "isang buwan",
46
+ MM : "%d buwan",
47
+ y : "isang taon",
48
+ yy : "%d taon"
49
+ },
50
+ ordinal : function (number) {
51
+ return number;
52
+ },
53
+ week : {
54
+ dow : 1, // Monday is the first day of the week.
55
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
56
+ }
57
+ });
58
+ }));
@@ -0,0 +1,93 @@
1
+ // moment.js language configuration
2
+ // language : turkish (tr)
3
+ // authors : Erhan Gundogan : https://github.com/erhangundogan,
4
+ // Burak Yiğit Kaya: https://github.com/BYK
5
+
6
+ (function (factory) {
7
+ if (typeof define === 'function' && define.amd) {
8
+ define(['moment'], factory); // AMD
9
+ } else if (typeof exports === 'object') {
10
+ module.exports = factory(require('../moment')); // Node
11
+ } else {
12
+ factory(window.moment); // Browser global
13
+ }
14
+ }(function (moment) {
15
+
16
+ var suffixes = {
17
+ 1: "'inci",
18
+ 5: "'inci",
19
+ 8: "'inci",
20
+ 70: "'inci",
21
+ 80: "'inci",
22
+
23
+ 2: "'nci",
24
+ 7: "'nci",
25
+ 20: "'nci",
26
+ 50: "'nci",
27
+
28
+ 3: "'üncü",
29
+ 4: "'üncü",
30
+ 100: "'üncü",
31
+
32
+ 6: "'ncı",
33
+
34
+ 9: "'uncu",
35
+ 10: "'uncu",
36
+ 30: "'uncu",
37
+
38
+ 60: "'ıncı",
39
+ 90: "'ıncı"
40
+ };
41
+
42
+ return moment.lang('tr', {
43
+ months : "Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),
44
+ monthsShort : "Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),
45
+ weekdays : "Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),
46
+ weekdaysShort : "Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),
47
+ weekdaysMin : "Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),
48
+ longDateFormat : {
49
+ LT : "HH:mm",
50
+ L : "DD.MM.YYYY",
51
+ LL : "D MMMM YYYY",
52
+ LLL : "D MMMM YYYY LT",
53
+ LLLL : "dddd, D MMMM YYYY LT"
54
+ },
55
+ calendar : {
56
+ sameDay : '[bugün saat] LT',
57
+ nextDay : '[yarın saat] LT',
58
+ nextWeek : '[haftaya] dddd [saat] LT',
59
+ lastDay : '[dün] LT',
60
+ lastWeek : '[geçen hafta] dddd [saat] LT',
61
+ sameElse : 'L'
62
+ },
63
+ relativeTime : {
64
+ future : "%s sonra",
65
+ past : "%s önce",
66
+ s : "birkaç saniye",
67
+ m : "bir dakika",
68
+ mm : "%d dakika",
69
+ h : "bir saat",
70
+ hh : "%d saat",
71
+ d : "bir gün",
72
+ dd : "%d gün",
73
+ M : "bir ay",
74
+ MM : "%d ay",
75
+ y : "bir yıl",
76
+ yy : "%d yıl"
77
+ },
78
+ ordinal : function (number) {
79
+ if (number === 0) { // special case for zero
80
+ return number + "'ıncı";
81
+ }
82
+ var a = number % 10,
83
+ b = number % 100 - a,
84
+ c = number >= 100 ? 100 : null;
85
+
86
+ return number + (suffixes[a] || suffixes[b] || suffixes[c]);
87
+ },
88
+ week : {
89
+ dow : 1, // Monday is the first day of the week.
90
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
91
+ }
92
+ });
93
+ }));