You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.4 KiB

  1. //! moment.js locale configuration
  2. //! locale : Japanese [jv]
  3. //! author : Rony Lantip : https://github.com/lantip
  4. //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
  5. import moment from '../moment';
  6. export default moment.defineLocale('jv', {
  7. months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
  8. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  9. weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  10. weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  11. weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  12. longDateFormat : {
  13. LT : 'HH.mm',
  14. LTS : 'HH.mm.ss',
  15. L : 'DD/MM/YYYY',
  16. LL : 'D MMMM YYYY',
  17. LLL : 'D MMMM YYYY [pukul] HH.mm',
  18. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  19. },
  20. meridiemParse: /enjing|siyang|sonten|ndalu/,
  21. meridiemHour : function (hour, meridiem) {
  22. if (hour === 12) {
  23. hour = 0;
  24. }
  25. if (meridiem === 'enjing') {
  26. return hour;
  27. } else if (meridiem === 'siyang') {
  28. return hour >= 11 ? hour : hour + 12;
  29. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  30. return hour + 12;
  31. }
  32. },
  33. meridiem : function (hours, minutes, isLower) {
  34. if (hours < 11) {
  35. return 'enjing';
  36. } else if (hours < 15) {
  37. return 'siyang';
  38. } else if (hours < 19) {
  39. return 'sonten';
  40. } else {
  41. return 'ndalu';
  42. }
  43. },
  44. calendar : {
  45. sameDay : '[Dinten puniko pukul] LT',
  46. nextDay : '[Mbenjang pukul] LT',
  47. nextWeek : 'dddd [pukul] LT',
  48. lastDay : '[Kala wingi pukul] LT',
  49. lastWeek : 'dddd [kepengker pukul] LT',
  50. sameElse : 'L'
  51. },
  52. relativeTime : {
  53. future : 'wonten ing %s',
  54. past : '%s ingkang kepengker',
  55. s : 'sawetawis detik',
  56. m : 'setunggal menit',
  57. mm : '%d menit',
  58. h : 'setunggal jam',
  59. hh : '%d jam',
  60. d : 'sedinten',
  61. dd : '%d dinten',
  62. M : 'sewulan',
  63. MM : '%d wulan',
  64. y : 'setaun',
  65. yy : '%d taun'
  66. },
  67. week : {
  68. dow : 1, // Monday is the first day of the week.
  69. doy : 7 // The week that contains Jan 1st is the first week of the year.
  70. }
  71. });