2020-11-11 09:34:26 +08:00
|
|
|
|
//! moment.js locale configuration
|
|
|
|
|
//! locale : Turkish [tr]
|
|
|
|
|
//! authors : Erhan Gundogan : https://github.com/erhangundogan,
|
|
|
|
|
//! Burak Yiğit Kaya: https://github.com/BYK
|
2014-08-21 02:41:50 +08:00
|
|
|
|
|
2016-02-06 04:42:48 +08:00
|
|
|
|
;(function (global, factory) {
|
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
2017-04-20 12:24:20 +08:00
|
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
2016-02-06 04:42:48 +08:00
|
|
|
|
factory(global.moment)
|
2017-04-20 12:24:20 +08:00
|
|
|
|
}(this, (function (moment) { 'use strict';
|
2014-08-21 02:41:50 +08:00
|
|
|
|
|
2020-11-11 09:34:26 +08:00
|
|
|
|
//! moment.js locale configuration
|
|
|
|
|
|
2018-04-26 15:15:53 +08:00
|
|
|
|
var suffixes = {
|
2020-11-11 09:34:26 +08:00
|
|
|
|
1: "'inci",
|
|
|
|
|
5: "'inci",
|
|
|
|
|
8: "'inci",
|
|
|
|
|
70: "'inci",
|
|
|
|
|
80: "'inci",
|
|
|
|
|
2: "'nci",
|
|
|
|
|
7: "'nci",
|
|
|
|
|
20: "'nci",
|
|
|
|
|
50: "'nci",
|
|
|
|
|
3: "'üncü",
|
|
|
|
|
4: "'üncü",
|
|
|
|
|
100: "'üncü",
|
|
|
|
|
6: "'ncı",
|
|
|
|
|
9: "'uncu",
|
|
|
|
|
10: "'uncu",
|
|
|
|
|
30: "'uncu",
|
|
|
|
|
60: "'ıncı",
|
|
|
|
|
90: "'ıncı",
|
2018-04-26 15:15:53 +08:00
|
|
|
|
};
|
2014-08-21 02:41:50 +08:00
|
|
|
|
|
2018-04-26 15:15:53 +08:00
|
|
|
|
var tr = moment.defineLocale('tr', {
|
2020-11-11 09:34:26 +08:00
|
|
|
|
months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(
|
|
|
|
|
'_'
|
|
|
|
|
),
|
|
|
|
|
monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
|
|
|
|
|
weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(
|
|
|
|
|
'_'
|
|
|
|
|
),
|
|
|
|
|
weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
|
|
|
|
|
weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
|
|
|
|
|
meridiem: function (hours, minutes, isLower) {
|
|
|
|
|
if (hours < 12) {
|
|
|
|
|
return isLower ? 'öö' : 'ÖÖ';
|
|
|
|
|
} else {
|
|
|
|
|
return isLower ? 'ös' : 'ÖS';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
meridiemParse: /öö|ÖÖ|ös|ÖS/,
|
|
|
|
|
isPM: function (input) {
|
|
|
|
|
return input === 'ös' || input === 'ÖS';
|
2018-04-26 15:15:53 +08:00
|
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
|
longDateFormat: {
|
|
|
|
|
LT: 'HH:mm',
|
|
|
|
|
LTS: 'HH:mm:ss',
|
|
|
|
|
L: 'DD.MM.YYYY',
|
|
|
|
|
LL: 'D MMMM YYYY',
|
|
|
|
|
LLL: 'D MMMM YYYY HH:mm',
|
|
|
|
|
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
2018-04-26 15:15:53 +08:00
|
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
|
calendar: {
|
|
|
|
|
sameDay: '[bugün saat] LT',
|
|
|
|
|
nextDay: '[yarın saat] LT',
|
|
|
|
|
nextWeek: '[gelecek] dddd [saat] LT',
|
|
|
|
|
lastDay: '[dün] LT',
|
|
|
|
|
lastWeek: '[geçen] dddd [saat] LT',
|
|
|
|
|
sameElse: 'L',
|
|
|
|
|
},
|
|
|
|
|
relativeTime: {
|
|
|
|
|
future: '%s sonra',
|
|
|
|
|
past: '%s önce',
|
|
|
|
|
s: 'birkaç saniye',
|
|
|
|
|
ss: '%d saniye',
|
|
|
|
|
m: 'bir dakika',
|
|
|
|
|
mm: '%d dakika',
|
|
|
|
|
h: 'bir saat',
|
|
|
|
|
hh: '%d saat',
|
|
|
|
|
d: 'bir gün',
|
|
|
|
|
dd: '%d gün',
|
|
|
|
|
w: 'bir hafta',
|
|
|
|
|
ww: '%d hafta',
|
|
|
|
|
M: 'bir ay',
|
|
|
|
|
MM: '%d ay',
|
|
|
|
|
y: 'bir yıl',
|
|
|
|
|
yy: '%d yıl',
|
2018-04-26 15:15:53 +08:00
|
|
|
|
},
|
|
|
|
|
ordinal: function (number, period) {
|
|
|
|
|
switch (period) {
|
|
|
|
|
case 'd':
|
|
|
|
|
case 'D':
|
|
|
|
|
case 'Do':
|
|
|
|
|
case 'DD':
|
|
|
|
|
return number;
|
|
|
|
|
default:
|
2020-11-11 09:34:26 +08:00
|
|
|
|
if (number === 0) {
|
|
|
|
|
// special case for zero
|
|
|
|
|
return number + "'ıncı";
|
2018-04-26 15:15:53 +08:00
|
|
|
|
}
|
|
|
|
|
var a = number % 10,
|
2020-11-11 09:34:26 +08:00
|
|
|
|
b = (number % 100) - a,
|
2018-04-26 15:15:53 +08:00
|
|
|
|
c = number >= 100 ? 100 : null;
|
|
|
|
|
return number + (suffixes[a] || suffixes[b] || suffixes[c]);
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
|
week: {
|
|
|
|
|
dow: 1, // Monday is the first day of the week.
|
|
|
|
|
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
|
|
|
|
},
|
2018-04-26 15:15:53 +08:00
|
|
|
|
});
|
2016-02-06 04:42:48 +08:00
|
|
|
|
|
2018-04-26 15:15:53 +08:00
|
|
|
|
return tr;
|
2016-02-06 04:42:48 +08:00
|
|
|
|
|
2017-04-20 12:24:20 +08:00
|
|
|
|
})));
|