jv.js 2.3 KB

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