PageRenderTime 30ms CodeModel.GetById 9ms app.highlight 15ms RepoModel.GetById 2ms app.codeStats 0ms

/node_modules/moment/locale/tr.js

https://bitbucket.org/coleman333/smartsite
JavaScript | 93 lines | 88 code | 5 blank | 0 comment | 7 complexity | be3c355682ce3b8eeb5b5df028648c05 MD5 | raw file
 1
 2;(function (global, factory) {
 3   typeof exports === 'object' && typeof module !== 'undefined'
 4       && typeof require === 'function' ? factory(require('../moment')) :
 5   typeof define === 'function' && define.amd ? define(['../moment'], factory) :
 6   factory(global.moment)
 7}(this, (function (moment) { 'use strict';
 8
 9    var suffixes = {
10        1: '\'inci',
11        5: '\'inci',
12        8: '\'inci',
13        70: '\'inci',
14        80: '\'inci',
15        2: '\'nci',
16        7: '\'nci',
17        20: '\'nci',
18        50: '\'nci',
19        3: '\'üncü',
20        4: '\'üncü',
21        100: '\'üncü',
22        6: '\'ncı',
23        9: '\'uncu',
24        10: '\'uncu',
25        30: '\'uncu',
26        60: '\'ıncı',
27        90: '\'ıncı'
28    };
29
30    var tr = moment.defineLocale('tr', {
31        months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
32        monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
33        weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
34        weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
35        weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
36        longDateFormat : {
37            LT : 'HH:mm',
38            LTS : 'HH:mm:ss',
39            L : 'DD.MM.YYYY',
40            LL : 'D MMMM YYYY',
41            LLL : 'D MMMM YYYY HH:mm',
42            LLLL : 'dddd, D MMMM YYYY HH:mm'
43        },
44        calendar : {
45            sameDay : '[bugün saat] LT',
46            nextDay : '[yarın saat] LT',
47            nextWeek : '[gelecek] dddd [saat] LT',
48            lastDay : '[dün] LT',
49            lastWeek : '[geçen] dddd [saat] LT',
50            sameElse : 'L'
51        },
52        relativeTime : {
53            future : '%s sonra',
54            past : '%s önce',
55            s : 'birkaç saniye',
56            ss : '%d saniye',
57            m : 'bir dakika',
58            mm : '%d dakika',
59            h : 'bir saat',
60            hh : '%d saat',
61            d : 'bir gün',
62            dd : '%d gün',
63            M : 'bir ay',
64            MM : '%d ay',
65            y : 'bir yıl',
66            yy : '%d yıl'
67        },
68        ordinal: function (number, period) {
69            switch (period) {
70                case 'd':
71                case 'D':
72                case 'Do':
73                case 'DD':
74                    return number;
75                default:
76                    if (number === 0) {  // special case for zero
77                        return number + '\'ıncı';
78                    }
79                    var a = number % 10,
80                        b = number % 100 - a,
81                        c = number >= 100 ? 100 : null;
82                    return number + (suffixes[a] || suffixes[b] || suffixes[c]);
83            }
84        },
85        week : {
86            dow : 1, // Monday is the first day of the week.
87            doy : 7  // The week that contains Jan 1st is the first week of the year.
88        }
89    });
90
91    return tr;
92
93})));