Node-Red configuration
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

ss.js 3.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. //! moment.js locale configuration
  2. //! locale : siSwati [ss]
  3. //! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
  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 ss = moment.defineLocale('ss', {
  12. months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split(
  13. '_'
  14. ),
  15. monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  16. weekdays:
  17. 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(
  18. '_'
  19. ),
  20. weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
  21. weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
  22. weekdaysParseExact: true,
  23. longDateFormat: {
  24. LT: 'h:mm A',
  25. LTS: 'h:mm:ss A',
  26. L: 'DD/MM/YYYY',
  27. LL: 'D MMMM YYYY',
  28. LLL: 'D MMMM YYYY h:mm A',
  29. LLLL: 'dddd, D MMMM YYYY h:mm A',
  30. },
  31. calendar: {
  32. sameDay: '[Namuhla nga] LT',
  33. nextDay: '[Kusasa nga] LT',
  34. nextWeek: 'dddd [nga] LT',
  35. lastDay: '[Itolo nga] LT',
  36. lastWeek: 'dddd [leliphelile] [nga] LT',
  37. sameElse: 'L',
  38. },
  39. relativeTime: {
  40. future: 'nga %s',
  41. past: 'wenteka nga %s',
  42. s: 'emizuzwana lomcane',
  43. ss: '%d mzuzwana',
  44. m: 'umzuzu',
  45. mm: '%d emizuzu',
  46. h: 'lihora',
  47. hh: '%d emahora',
  48. d: 'lilanga',
  49. dd: '%d emalanga',
  50. M: 'inyanga',
  51. MM: '%d tinyanga',
  52. y: 'umnyaka',
  53. yy: '%d iminyaka',
  54. },
  55. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  56. meridiem: function (hours, minutes, isLower) {
  57. if (hours < 11) {
  58. return 'ekuseni';
  59. } else if (hours < 15) {
  60. return 'emini';
  61. } else if (hours < 19) {
  62. return 'entsambama';
  63. } else {
  64. return 'ebusuku';
  65. }
  66. },
  67. meridiemHour: function (hour, meridiem) {
  68. if (hour === 12) {
  69. hour = 0;
  70. }
  71. if (meridiem === 'ekuseni') {
  72. return hour;
  73. } else if (meridiem === 'emini') {
  74. return hour >= 11 ? hour : hour + 12;
  75. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  76. if (hour === 0) {
  77. return 0;
  78. }
  79. return hour + 12;
  80. }
  81. },
  82. dayOfMonthOrdinalParse: /\d{1,2}/,
  83. ordinal: '%d',
  84. week: {
  85. dow: 1, // Monday is the first day of the week.
  86. doy: 4, // The week that contains Jan 4th is the first week of the year.
  87. },
  88. });
  89. return ss;
  90. })));