Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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.

tk.js 2.4KB

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