sw.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //! moment.js locale configuration
  2. //! locale : Swahili [sw]
  3. //! author : Fahad Kassim : https://github.com/fadsel
  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. //! moment.js locale configuration
  11. var sw = moment.defineLocale('sw', {
  12. months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(
  13. '_'
  14. ),
  15. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  16. weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(
  17. '_'
  18. ),
  19. weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  20. weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  21. weekdaysParseExact: true,
  22. longDateFormat: {
  23. LT: 'hh:mm A',
  24. LTS: 'HH:mm:ss',
  25. L: 'DD.MM.YYYY',
  26. LL: 'D MMMM YYYY',
  27. LLL: 'D MMMM YYYY HH:mm',
  28. LLLL: 'dddd, D MMMM YYYY HH:mm',
  29. },
  30. calendar: {
  31. sameDay: '[leo saa] LT',
  32. nextDay: '[kesho saa] LT',
  33. nextWeek: '[wiki ijayo] dddd [saat] LT',
  34. lastDay: '[jana] LT',
  35. lastWeek: '[wiki iliyopita] dddd [saat] LT',
  36. sameElse: 'L',
  37. },
  38. relativeTime: {
  39. future: '%s baadaye',
  40. past: 'tokea %s',
  41. s: 'hivi punde',
  42. ss: 'sekunde %d',
  43. m: 'dakika moja',
  44. mm: 'dakika %d',
  45. h: 'saa limoja',
  46. hh: 'masaa %d',
  47. d: 'siku moja',
  48. dd: 'siku %d',
  49. M: 'mwezi mmoja',
  50. MM: 'miezi %d',
  51. y: 'mwaka mmoja',
  52. yy: 'miaka %d',
  53. },
  54. week: {
  55. dow: 1, // Monday is the first day of the week.
  56. doy: 7, // The week that contains Jan 7th is the first week of the year.
  57. },
  58. });
  59. return sw;
  60. })));