ss.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. var ss = moment.defineLocale('ss', {
  11. months : "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
  12. monthsShort : 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  13. weekdays : 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
  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. });
  83. return ss;
  84. })));