eo.js 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. (function (factory) {
  7. if (typeof define === 'function' && define.amd) {
  8. define(['moment'], factory); // AMD
  9. } else if (typeof exports === 'object') {
  10. module.exports = factory(require('../moment')); // Node
  11. } else {
  12. factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
  13. }
  14. }(function (moment) {
  15. return moment.defineLocale('eo', {
  16. months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
  17. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
  18. weekdays : 'Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato'.split('_'),
  19. weekdaysShort : 'Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab'.split('_'),
  20. weekdaysMin : 'Di_Lu_Ma_Me_Ĵa_Ve_Sa'.split('_'),
  21. longDateFormat : {
  22. LT : 'HH:mm',
  23. LTS : 'LT:ss',
  24. L : 'YYYY-MM-DD',
  25. LL : 'D[-an de] MMMM, YYYY',
  26. LLL : 'D[-an de] MMMM, YYYY LT',
  27. LLLL : 'dddd, [la] D[-an de] MMMM, YYYY LT'
  28. },
  29. meridiem : function (hours, minutes, isLower) {
  30. if (hours > 11) {
  31. return isLower ? 'p.t.m.' : 'P.T.M.';
  32. } else {
  33. return isLower ? 'a.t.m.' : 'A.T.M.';
  34. }
  35. },
  36. calendar : {
  37. sameDay : '[Hodiaŭ je] LT',
  38. nextDay : '[Morgaŭ je] LT',
  39. nextWeek : 'dddd [je] LT',
  40. lastDay : '[Hieraŭ je] LT',
  41. lastWeek : '[pasinta] dddd [je] LT',
  42. sameElse : 'L'
  43. },
  44. relativeTime : {
  45. future : 'je %s',
  46. past : 'antaŭ %s',
  47. s : 'sekundoj',
  48. m : 'minuto',
  49. mm : '%d minutoj',
  50. h : 'horo',
  51. hh : '%d horoj',
  52. d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
  53. dd : '%d tagoj',
  54. M : 'monato',
  55. MM : '%d monatoj',
  56. y : 'jaro',
  57. yy : '%d jaroj'
  58. },
  59. ordinalParse: /\d{1,2}a/,
  60. ordinal : '%da',
  61. week : {
  62. dow : 1, // Monday is the first day of the week.
  63. doy : 7 // The week that contains Jan 1st is the first week of the year.
  64. }
  65. });
  66. }));