Ohm-Management - Projektarbeit B-ME
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.

tr.js 2.9KB

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