ss.js 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. m : 'umzuzu',
  38. mm : '%d emizuzu',
  39. h : 'lihora',
  40. hh : '%d emahora',
  41. d : 'lilanga',
  42. dd : '%d emalanga',
  43. M : 'inyanga',
  44. MM : '%d tinyanga',
  45. y : 'umnyaka',
  46. yy : '%d iminyaka'
  47. },
  48. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  49. meridiem : function (hours, minutes, isLower) {
  50. if (hours < 11) {
  51. return 'ekuseni';
  52. } else if (hours < 15) {
  53. return 'emini';
  54. } else if (hours < 19) {
  55. return 'entsambama';
  56. } else {
  57. return 'ebusuku';
  58. }
  59. },
  60. meridiemHour : function (hour, meridiem) {
  61. if (hour === 12) {
  62. hour = 0;
  63. }
  64. if (meridiem === 'ekuseni') {
  65. return hour;
  66. } else if (meridiem === 'emini') {
  67. return hour >= 11 ? hour : hour + 12;
  68. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  69. if (hour === 0) {
  70. return 0;
  71. }
  72. return hour + 12;
  73. }
  74. },
  75. dayOfMonthOrdinalParse: /\d{1,2}/,
  76. ordinal : '%d',
  77. week : {
  78. dow : 1, // Monday is the first day of the week.
  79. doy : 4 // The week that contains Jan 4th is the first week of the year.
  80. }
  81. });
  82. return ss;
  83. })));