Node-Red configuration
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.

ss.js 2.5KB

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