62f44029d7fe0ab28ec55457e14b8b9ae6a7165c378f6e53559c35778ee050826f7cc5ac92401f71257dba586828e61e581c0f8d532d460d6889ad2633b868 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //! moment.js locale configuration
  2. //! locale : Esperanto [eo]
  3. //! author : Colin Dean : https://github.com/colindean
  4. //! komento: Mi estas malcerta se mi korekte traktis akuzativojn en tiu traduko.
  5. //! Se ne, bonvolu korekti kaj avizi min por ke mi povas lerni!
  6. import moment from '../moment';
  7. export default moment.defineLocale('eo', {
  8. months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
  9. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
  10. weekdays : 'Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato'.split('_'),
  11. weekdaysShort : 'Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab'.split('_'),
  12. weekdaysMin : 'Di_Lu_Ma_Me_Ĵa_Ve_Sa'.split('_'),
  13. longDateFormat : {
  14. LT : 'HH:mm',
  15. LTS : 'HH:mm:ss',
  16. L : 'YYYY-MM-DD',
  17. LL : 'D[-an de] MMMM, YYYY',
  18. LLL : 'D[-an de] MMMM, YYYY HH:mm',
  19. LLLL : 'dddd, [la] D[-an de] MMMM, YYYY HH:mm'
  20. },
  21. meridiemParse: /[ap]\.t\.m/i,
  22. isPM: function (input) {
  23. return input.charAt(0).toLowerCase() === 'p';
  24. },
  25. meridiem : function (hours, minutes, isLower) {
  26. if (hours > 11) {
  27. return isLower ? 'p.t.m.' : 'P.T.M.';
  28. } else {
  29. return isLower ? 'a.t.m.' : 'A.T.M.';
  30. }
  31. },
  32. calendar : {
  33. sameDay : '[Hodiaŭ je] LT',
  34. nextDay : '[Morgaŭ je] LT',
  35. nextWeek : 'dddd [je] LT',
  36. lastDay : '[Hieraŭ je] LT',
  37. lastWeek : '[pasinta] dddd [je] LT',
  38. sameElse : 'L'
  39. },
  40. relativeTime : {
  41. future : 'je %s',
  42. past : 'antaŭ %s',
  43. s : 'sekundoj',
  44. m : 'minuto',
  45. mm : '%d minutoj',
  46. h : 'horo',
  47. hh : '%d horoj',
  48. d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
  49. dd : '%d tagoj',
  50. M : 'monato',
  51. MM : '%d monatoj',
  52. y : 'jaro',
  53. yy : '%d jaroj'
  54. },
  55. ordinalParse: /\d{1,2}a/,
  56. ordinal : '%da',
  57. week : {
  58. dow : 1, // Monday is the first day of the week.
  59. doy : 7 // The week that contains Jan 1st is the first week of the year.
  60. }
  61. });