/node_modules/moment/src/locale/ss.js

https://bitbucket.org/coleman333/smartsite · JavaScript · 81 lines · 74 code · 4 blank · 3 comment · 14 complexity · eca17d69f247be2a7c554790f22d0a68 MD5 · raw file

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