Нет описания

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //! moment.js locale configuration
  2. ;(function (global, factory) {
  3. typeof exports === 'object' && typeof module !== 'undefined'
  4. && typeof require === 'function' ? factory(require('../moment')) :
  5. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  6. factory(global.moment)
  7. }(this, (function (moment) { 'use strict';
  8. function relativeTimeWithPlural(number, withoutSuffix, key) {
  9. var format = {
  10. 'ss': 'secunde',
  11. 'mm': 'minute',
  12. 'hh': 'ore',
  13. 'dd': 'zile',
  14. 'MM': 'luni',
  15. 'yy': 'ani'
  16. },
  17. separator = ' ';
  18. if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
  19. separator = ' de ';
  20. }
  21. return number + separator + format[key];
  22. }
  23. var ro = moment.defineLocale('ro', {
  24. months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
  25. monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
  26. monthsParseExact: true,
  27. weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  28. weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  29. weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  30. longDateFormat : {
  31. LT : 'H:mm',
  32. LTS : 'H:mm:ss',
  33. L : 'DD.MM.YYYY',
  34. LL : 'D MMMM YYYY',
  35. LLL : 'D MMMM YYYY H:mm',
  36. LLLL : 'dddd, D MMMM YYYY H:mm'
  37. },
  38. calendar : {
  39. sameDay: '[azi la] LT',
  40. nextDay: '[mâine la] LT',
  41. nextWeek: 'dddd [la] LT',
  42. lastDay: '[ieri la] LT',
  43. lastWeek: '[fosta] dddd [la] LT',
  44. sameElse: 'L'
  45. },
  46. relativeTime : {
  47. future : 'peste %s',
  48. past : '%s în urmă',
  49. s : 'câteva secunde',
  50. ss : relativeTimeWithPlural,
  51. m : 'un minut',
  52. mm : relativeTimeWithPlural,
  53. h : 'o oră',
  54. hh : relativeTimeWithPlural,
  55. d : 'o zi',
  56. dd : relativeTimeWithPlural,
  57. M : 'o lună',
  58. MM : relativeTimeWithPlural,
  59. y : 'un an',
  60. yy : relativeTimeWithPlural
  61. },
  62. week : {
  63. dow : 1, // Monday is the first day of the week.
  64. doy : 7 // The week that contains Jan 7th is the first week of the year.
  65. }
  66. });
  67. return ro;
  68. })));