eo.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //! moment.js locale configuration
  2. //! locale : Esperanto [eo]
  3. //! author : Colin Dean : https://github.com/colindean
  4. //! author : Mia Nordentoft Imperatori : https://github.com/miestasmia
  5. //! comment : miestasmia corrected the translation by colindean
  6. ;(function (global, factory) {
  7. typeof exports === 'object' && typeof module !== 'undefined'
  8. && typeof require === 'function' ? factory(require('../moment')) :
  9. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  10. factory(global.moment)
  11. }(this, (function (moment) { 'use strict';
  12. var eo = moment.defineLocale('eo', {
  13. months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
  14. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
  15. weekdays : 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
  16. weekdaysShort : 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
  17. weekdaysMin : 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
  18. longDateFormat : {
  19. LT : 'HH:mm',
  20. LTS : 'HH:mm:ss',
  21. L : 'YYYY-MM-DD',
  22. LL : 'D[-a de] MMMM, YYYY',
  23. LLL : 'D[-a de] MMMM, YYYY HH:mm',
  24. LLLL : 'dddd, [la] D[-a de] MMMM, YYYY HH:mm'
  25. },
  26. meridiemParse: /[ap]\.t\.m/i,
  27. isPM: function (input) {
  28. return input.charAt(0).toLowerCase() === 'p';
  29. },
  30. meridiem : function (hours, minutes, isLower) {
  31. if (hours > 11) {
  32. return isLower ? 'p.t.m.' : 'P.T.M.';
  33. } else {
  34. return isLower ? 'a.t.m.' : 'A.T.M.';
  35. }
  36. },
  37. calendar : {
  38. sameDay : '[Hodiaŭ je] LT',
  39. nextDay : '[Morgaŭ je] LT',
  40. nextWeek : 'dddd [je] LT',
  41. lastDay : '[Hieraŭ je] LT',
  42. lastWeek : '[pasinta] dddd [je] LT',
  43. sameElse : 'L'
  44. },
  45. relativeTime : {
  46. future : 'post %s',
  47. past : 'antaŭ %s',
  48. s : 'sekundoj',
  49. ss : '%d sekundoj',
  50. m : 'minuto',
  51. mm : '%d minutoj',
  52. h : 'horo',
  53. hh : '%d horoj',
  54. d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
  55. dd : '%d tagoj',
  56. M : 'monato',
  57. MM : '%d monatoj',
  58. y : 'jaro',
  59. yy : '%d jaroj'
  60. },
  61. dayOfMonthOrdinalParse: /\d{1,2}a/,
  62. ordinal : '%da',
  63. week : {
  64. dow : 1, // Monday is the first day of the week.
  65. doy : 7 // The week that contains Jan 1st is the first week of the year.
  66. }
  67. });
  68. return eo;
  69. })));