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.

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