Node-Red configuration
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

tk.js 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. //! moment.js locale configuration
  2. //! locale : Turkmen [tk]
  3. //! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy
  4. ;(function (global, factory) {
  5. typeof exports === 'object' && typeof module !== 'undefined'
  6. && typeof require === 'function' ? factory(require('../moment')) :
  7. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  8. factory(global.moment)
  9. }(this, (function (moment) { 'use strict';
  10. //! moment.js locale configuration
  11. var suffixes = {
  12. 1: "'inji",
  13. 5: "'inji",
  14. 8: "'inji",
  15. 70: "'inji",
  16. 80: "'inji",
  17. 2: "'nji",
  18. 7: "'nji",
  19. 20: "'nji",
  20. 50: "'nji",
  21. 3: "'ünji",
  22. 4: "'ünji",
  23. 100: "'ünji",
  24. 6: "'njy",
  25. 9: "'unjy",
  26. 10: "'unjy",
  27. 30: "'unjy",
  28. 60: "'ynjy",
  29. 90: "'ynjy",
  30. };
  31. var tk = moment.defineLocale('tk', {
  32. months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(
  33. '_'
  34. ),
  35. monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
  36. weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(
  37. '_'
  38. ),
  39. weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
  40. weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
  41. longDateFormat: {
  42. LT: 'HH:mm',
  43. LTS: 'HH:mm:ss',
  44. L: 'DD.MM.YYYY',
  45. LL: 'D MMMM YYYY',
  46. LLL: 'D MMMM YYYY HH:mm',
  47. LLLL: 'dddd, D MMMM YYYY HH:mm',
  48. },
  49. calendar: {
  50. sameDay: '[bugün sagat] LT',
  51. nextDay: '[ertir sagat] LT',
  52. nextWeek: '[indiki] dddd [sagat] LT',
  53. lastDay: '[düýn] LT',
  54. lastWeek: '[geçen] dddd [sagat] LT',
  55. sameElse: 'L',
  56. },
  57. relativeTime: {
  58. future: '%s soň',
  59. past: '%s öň',
  60. s: 'birnäçe sekunt',
  61. m: 'bir minut',
  62. mm: '%d minut',
  63. h: 'bir sagat',
  64. hh: '%d sagat',
  65. d: 'bir gün',
  66. dd: '%d gün',
  67. M: 'bir aý',
  68. MM: '%d aý',
  69. y: 'bir ýyl',
  70. yy: '%d ýyl',
  71. },
  72. ordinal: function (number, period) {
  73. switch (period) {
  74. case 'd':
  75. case 'D':
  76. case 'Do':
  77. case 'DD':
  78. return number;
  79. default:
  80. if (number === 0) {
  81. // special case for zero
  82. return number + "'unjy";
  83. }
  84. var a = number % 10,
  85. b = (number % 100) - a,
  86. c = number >= 100 ? 100 : null;
  87. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  88. }
  89. },
  90. week: {
  91. dow: 1, // Monday is the first day of the week.
  92. doy: 7, // The week that contains Jan 7th is the first week of the year.
  93. },
  94. });
  95. return tk;
  96. })));