[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-core/js/vendor/moment-js/locale/ -> tr.js (source)

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


Generated: Tue Mar 2 01:01:35 2021 Cross-referenced by PHPXref 0.7.1