ss.js 3.0 KB

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