Debian Codegraph @

resources/lib/moment/locale/ro.js

raw symbols SCIP
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
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 //! moment.js locale configuration
15
16 function relativeTimeWithPlural(number, withoutSuffix, key) {
17 var format = {
18 ss: 'secunde',
19 mm: 'minute',
20 hh: 'ore',
21 dd: 'zile',
22 MM: 'luni',
23 yy: 'ani',
24 },
25 separator = ' ';
26 if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
27 separator = ' de ';
28 }
29 return number + separator + format[key];
30 }
31
32 var ro = moment.defineLocale('ro', {
33 months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(
34 '_'
35 ),
36 monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(
37 '_'
38 ),
39 monthsParseExact: true,
40 weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
41 weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
42 weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
43 longDateFormat: {
44 LT: 'H:mm',
45 LTS: 'H:mm:ss',
46 L: 'DD.MM.YYYY',
47 LL: 'D MMMM YYYY',
48 LLL: 'D MMMM YYYY H:mm',
49 LLLL: 'dddd, D MMMM YYYY H:mm',
50 },
51 calendar: {
52 sameDay: '[azi la] LT',
53 nextDay: '[mâine la] LT',
54 nextWeek: 'dddd [la] LT',
55 lastDay: '[ieri la] LT',
56 lastWeek: '[fosta] dddd [la] LT',
57 sameElse: 'L',
58 },
59 relativeTime: {
60 future: 'peste %s',
61 past: '%s în urmă',
62 s: 'câteva secunde',
63 ss: relativeTimeWithPlural,
64 m: 'un minut',
65 mm: relativeTimeWithPlural,
66 h: 'o oră',
67 hh: relativeTimeWithPlural,
68 d: 'o zi',
69 dd: 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
81 return ro;
82
83 })));