1 // moment.js locale configuration
2 // locale : turkish (tr)
3 // authors : Erhan Gundogan : https://github.com/erhangundogan,
4 // Burak Yiğit Kaya: https://github.com/BYK
7 // Comment out broken wrapper, see T145382
8 /*if (typeof define === 'function' && define.amd) {
9 define(['moment'], factory); // AMD
10 } else if (typeof exports === 'object') {
11 module.exports = factory(require('../moment')); // Node
13 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
43 return moment.defineLocale('tr', {
44 months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
45 monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
46 weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
47 weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
48 weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
54 LLL : 'D MMMM YYYY LT',
55 LLLL : 'dddd, D MMMM YYYY LT'
58 sameDay : '[bugün saat] LT',
59 nextDay : '[yarın saat] LT',
60 nextWeek : '[haftaya] dddd [saat] LT',
62 lastWeek : '[geçen hafta] dddd [saat] LT',
80 ordinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,
81 ordinal : function (number) {
82 if (number === 0) { // special case for zero
83 return number + '\'ıncı';
87 c = number >= 100 ? 100 : null;
89 return number + (suffixes[a] || suffixes[b] || suffixes[c]);
92 dow : 1, // Monday is the first day of the week.
93 doy : 7 // The week that contains Jan 1st is the first week of the year.