ms-my.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // moment.js language configuration
  2. // language : Bahasa Malaysia (ms-MY)
  3. // author : Weldan Jamili : https://github.com/weldan
  4. (function (factory) {
  5. if (typeof define === 'function' && define.amd) {
  6. define(['moment'], factory); // AMD
  7. } else if (typeof exports === 'object') {
  8. module.exports = factory(require('../moment')); // Node
  9. } else {
  10. factory(window.moment); // Browser global
  11. }
  12. }(function (moment) {
  13. return moment.lang('ms-my', {
  14. months : "Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),
  15. monthsShort : "Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),
  16. weekdays : "Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),
  17. weekdaysShort : "Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),
  18. weekdaysMin : "Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),
  19. longDateFormat : {
  20. LT : "HH.mm",
  21. L : "DD/MM/YYYY",
  22. LL : "D MMMM YYYY",
  23. LLL : "D MMMM YYYY [pukul] LT",
  24. LLLL : "dddd, D MMMM YYYY [pukul] LT"
  25. },
  26. meridiem : function (hours, minutes, isLower) {
  27. if (hours < 11) {
  28. return 'pagi';
  29. } else if (hours < 15) {
  30. return 'tengahari';
  31. } else if (hours < 19) {
  32. return 'petang';
  33. } else {
  34. return 'malam';
  35. }
  36. },
  37. calendar : {
  38. sameDay : '[Hari ini pukul] LT',
  39. nextDay : '[Esok pukul] LT',
  40. nextWeek : 'dddd [pukul] LT',
  41. lastDay : '[Kelmarin pukul] LT',
  42. lastWeek : 'dddd [lepas pukul] LT',
  43. sameElse : 'L'
  44. },
  45. relativeTime : {
  46. future : "dalam %s",
  47. past : "%s yang lepas",
  48. s : "beberapa saat",
  49. m : "seminit",
  50. mm : "%d minit",
  51. h : "sejam",
  52. hh : "%d jam",
  53. d : "sehari",
  54. dd : "%d hari",
  55. M : "sebulan",
  56. MM : "%d bulan",
  57. y : "setahun",
  58. yy : "%d tahun"
  59. },
  60. week : {
  61. dow : 1, // Monday is the first day of the week.
  62. doy : 7 // The week that contains Jan 1st is the first week of the year.
  63. }
  64. });
  65. }));