corrade-nucleus-nucleons – Blame information for rev 38
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
38 | office | 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 | |||
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 | |||
13 | |||
14 | function relativeTimeWithPlural(number, withoutSuffix, key) { |
||
15 | var format = { |
||
16 | 'mm': 'minute', |
||
17 | 'hh': 'ore', |
||
18 | 'dd': 'zile', |
||
19 | 'MM': 'luni', |
||
20 | 'yy': 'ani' |
||
21 | }, |
||
22 | separator = ' '; |
||
23 | if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) { |
||
24 | separator = ' de '; |
||
25 | } |
||
26 | return number + separator + format[key]; |
||
27 | } |
||
28 | |||
29 | var ro = moment.defineLocale('ro', { |
||
30 | months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'), |
||
31 | monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'), |
||
32 | monthsParseExact: true, |
||
33 | weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'), |
||
34 | weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'), |
||
35 | weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'), |
||
36 | longDateFormat : { |
||
37 | LT : 'H:mm', |
||
38 | LTS : 'H:mm:ss', |
||
39 | L : 'DD.MM.YYYY', |
||
40 | LL : 'D MMMM YYYY', |
||
41 | LLL : 'D MMMM YYYY H:mm', |
||
42 | LLLL : 'dddd, D MMMM YYYY H:mm' |
||
43 | }, |
||
44 | calendar : { |
||
45 | sameDay: '[azi la] LT', |
||
46 | nextDay: '[mâine la] LT', |
||
47 | nextWeek: 'dddd [la] LT', |
||
48 | lastDay: '[ieri la] LT', |
||
49 | lastWeek: '[fosta] dddd [la] LT', |
||
50 | sameElse: 'L' |
||
51 | }, |
||
52 | relativeTime : { |
||
53 | future : 'peste %s', |
||
54 | past : '%s în urmă', |
||
55 | s : 'câteva secunde', |
||
56 | m : 'un minut', |
||
57 | mm : relativeTimeWithPlural, |
||
58 | h : 'o oră', |
||
59 | hh : relativeTimeWithPlural, |
||
60 | d : 'o zi', |
||
61 | dd : relativeTimeWithPlural, |
||
62 | M : 'o lună', |
||
63 | MM : relativeTimeWithPlural, |
||
64 | y : 'un an', |
||
65 | yy : relativeTimeWithPlural |
||
66 | }, |
||
67 | week : { |
||
68 | dow : 1, // Monday is the first day of the week. |
||
69 | doy : 7 // The week that contains Jan 1st is the first week of the year. |
||
70 | } |
||
71 | }); |
||
72 | |||
73 | return ro; |
||
74 | |||
75 | }))); |