Node-Red configuration
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

tr.js 3.6KB

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