3289cffaba9a9b382a76006ba99849d04a373f56418ef52a775e0ee43ad99a754fa9ff015e51179cd19ba940690e065f96cbf64bce146c5bba9a3be9f856e2 2.5 KB

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