Node-Red configuration
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

ro.js 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. //! moment.js locale configuration
  2. //! locale : Romanian [ro]
  3. //! author : Vlad Gurdiga : https://github.com/gurdiga
  4. //! author : Valentin Agachi : https://github.com/avaly
  5. //! author : Emanuel Cepoi : https://github.com/cepem
  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. //! moment.js locale configuration
  13. function relativeTimeWithPlural(number, withoutSuffix, key) {
  14. var format = {
  15. ss: 'secunde',
  16. mm: 'minute',
  17. hh: 'ore',
  18. dd: 'zile',
  19. ww: 'săptămâni',
  20. MM: 'luni',
  21. yy: 'ani',
  22. },
  23. separator = ' ';
  24. if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
  25. separator = ' de ';
  26. }
  27. return number + separator + format[key];
  28. }
  29. var ro = moment.defineLocale('ro', {
  30. months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(
  31. '_'
  32. ),
  33. monthsShort:
  34. 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(
  35. '_'
  36. ),
  37. monthsParseExact: true,
  38. weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  39. weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  40. weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  41. longDateFormat: {
  42. LT: 'H:mm',
  43. LTS: 'H:mm:ss',
  44. L: 'DD.MM.YYYY',
  45. LL: 'D MMMM YYYY',
  46. LLL: 'D MMMM YYYY H:mm',
  47. LLLL: 'dddd, D MMMM YYYY H:mm',
  48. },
  49. calendar: {
  50. sameDay: '[azi la] LT',
  51. nextDay: '[mâine la] LT',
  52. nextWeek: 'dddd [la] LT',
  53. lastDay: '[ieri la] LT',
  54. lastWeek: '[fosta] dddd [la] LT',
  55. sameElse: 'L',
  56. },
  57. relativeTime: {
  58. future: 'peste %s',
  59. past: '%s în urmă',
  60. s: 'câteva secunde',
  61. ss: relativeTimeWithPlural,
  62. m: 'un minut',
  63. mm: relativeTimeWithPlural,
  64. h: 'o oră',
  65. hh: relativeTimeWithPlural,
  66. d: 'o zi',
  67. dd: relativeTimeWithPlural,
  68. w: 'o săptămână',
  69. ww: relativeTimeWithPlural,
  70. M: 'o lună',
  71. MM: relativeTimeWithPlural,
  72. y: 'un an',
  73. yy: relativeTimeWithPlural,
  74. },
  75. week: {
  76. dow: 1, // Monday is the first day of the week.
  77. doy: 7, // The week that contains Jan 7th is the first week of the year.
  78. },
  79. });
  80. return ro;
  81. })));