You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
2.9 KiB

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