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