LaravelTest
117 строк · 3.6 Кб
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) {7typeof exports === 'object' && typeof module !== 'undefined'8&& typeof require === 'function' ? factory(require('../moment')) :9typeof define === 'function' && define.amd ? define(['../moment'], factory) :10factory(global.moment)11}(this, (function (moment) { 'use strict';12
13//! moment.js locale configuration14
15var suffixes = {161: "'inci",175: "'inci",188: "'inci",1970: "'inci",2080: "'inci",212: "'nci",227: "'nci",2320: "'nci",2450: "'nci",253: "'üncü",264: "'üncü",27100: "'üncü",286: "'ncı",299: "'uncu",3010: "'uncu",3130: "'uncu",3260: "'ıncı",3390: "'ıncı",34};35
36var tr = moment.defineLocale('tr', {37months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(38'_'39),40monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),41weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(42'_'43),44weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),45weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),46meridiem: function (hours, minutes, isLower) {47if (hours < 12) {48return isLower ? 'öö' : 'ÖÖ';49} else {50return isLower ? 'ös' : 'ÖS';51}52},53meridiemParse: /öö|ÖÖ|ös|ÖS/,54isPM: function (input) {55return input === 'ös' || input === 'ÖS';56},57longDateFormat: {58LT: 'HH:mm',59LTS: 'HH:mm:ss',60L: 'DD.MM.YYYY',61LL: 'D MMMM YYYY',62LLL: 'D MMMM YYYY HH:mm',63LLLL: 'dddd, D MMMM YYYY HH:mm',64},65calendar: {66sameDay: '[bugün saat] LT',67nextDay: '[yarın saat] LT',68nextWeek: '[gelecek] dddd [saat] LT',69lastDay: '[dün] LT',70lastWeek: '[geçen] dddd [saat] LT',71sameElse: 'L',72},73relativeTime: {74future: '%s sonra',75past: '%s önce',76s: 'birkaç saniye',77ss: '%d saniye',78m: 'bir dakika',79mm: '%d dakika',80h: 'bir saat',81hh: '%d saat',82d: 'bir gün',83dd: '%d gün',84w: 'bir hafta',85ww: '%d hafta',86M: 'bir ay',87MM: '%d ay',88y: 'bir yıl',89yy: '%d yıl',90},91ordinal: function (number, period) {92switch (period) {93case 'd':94case 'D':95case 'Do':96case 'DD':97return number;98default:99if (number === 0) {100// special case for zero101return number + "'ıncı";102}103var a = number % 10,104b = (number % 100) - a,105c = number >= 100 ? 100 : null;106return number + (suffixes[a] || suffixes[b] || suffixes[c]);107}108},109week: {110dow: 1, // Monday is the first day of the week.111doy: 7, // The week that contains Jan 7th is the first week of the year.112},113});114
115return tr;116
117})));118