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