Upgrade moment from 2.19.3 to 2.24.0
[lhc/web/wiklou.git] / resources / lib / moment / locale / tr.js
index c88ed7e..e3fa275 100644 (file)
@@ -1,15 +1,10 @@
-//! moment.js locale configuration
-//! locale : Turkish [tr]
-//! authors : Erhan Gundogan : https://github.com/erhangundogan,
-//!           Burak Yiğit Kaya: https://github.com/BYK
 
 ;(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined'
        && typeof require === 'function' ? factory(require('../moment')) :
    typeof define === 'function' && define.amd ? define(['../moment'], factory) :
    factory(global.moment)
-}(this, function (moment) { 'use strict';
-
+}(this, (function (moment) { 'use strict';
 
     var suffixes = {
         1: '\'inci',
         calendar : {
             sameDay : '[bugün saat] LT',
             nextDay : '[yarın saat] LT',
-            nextWeek : '[haftaya] dddd [saat] LT',
+            nextWeek : '[gelecek] dddd [saat] LT',
             lastDay : '[dün] LT',
-            lastWeek : '[geçen hafta] dddd [saat] 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',
             y : 'bir yıl',
             yy : '%d yıl'
         },
-        ordinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,
-        ordinal : function (number) {
-            if (number === 0) {  // special case for zero
-                return number + '\'ıncı';
+        ordinal: function (number, period) {
+            switch (period) {
+                case 'd':
+                case 'D':
+                case 'Do':
+                case 'DD':
+                    return number;
+                default:
+                    if (number === 0) {  // special case for zero
+                        return number + '\'ıncı';
+                    }
+                    var a = number % 10,
+                        b = number % 100 - a,
+                        c = number >= 100 ? 100 : null;
+                    return number + (suffixes[a] || suffixes[b] || suffixes[c]);
             }
-            var a = number % 10,
-                b = number % 100 - a,
-                c = number >= 100 ? 100 : null;
-            return number + (suffixes[a] || suffixes[b] || suffixes[c]);
         },
         week : {
             dow : 1, // Monday is the first day of the week.
-            doy : 7  // The week that contains Jan 1st is the first week of the year.
+            doy : 7  // The week that contains Jan 7th is the first week of the year.
         }
     });
 
     return tr;
 
-}));
\ No newline at end of file
+})));