AdminLTE/plugins/moment/locale/ro.js

87 lines
2.8 KiB
JavaScript
Raw Normal View History

//! moment.js locale configuration
2020-07-23 21:12:30 +00:00
//! locale : Romanian [ro]
//! author : Vlad Gurdiga : https://github.com/gurdiga
//! author : Valentin Agachi : https://github.com/avaly
//! author : Emanuel Cepoi : https://github.com/cepem
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
2020-07-23 21:12:30 +00:00
//! moment.js locale configuration
function relativeTimeWithPlural(number, withoutSuffix, key) {
var format = {
2020-07-23 21:12:30 +00:00
ss: 'secunde',
mm: 'minute',
hh: 'ore',
dd: 'zile',
2020-11-24 07:16:03 +00:00
ww: 'săptămâni',
2020-07-23 21:12:30 +00:00
MM: 'luni',
yy: 'ani',
},
separator = ' ';
if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
separator = ' de ';
}
return number + separator + format[key];
}
var ro = moment.defineLocale('ro', {
2020-07-23 21:12:30 +00:00
months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(
'_'
),
monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(
'_'
),
monthsParseExact: true,
2020-07-23 21:12:30 +00:00
weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY H:mm',
LLLL: 'dddd, D MMMM YYYY H:mm',
},
2020-07-23 21:12:30 +00:00
calendar: {
sameDay: '[azi la] LT',
nextDay: '[mâine la] LT',
nextWeek: 'dddd [la] LT',
lastDay: '[ieri la] LT',
lastWeek: '[fosta] dddd [la] LT',
2020-07-23 21:12:30 +00:00
sameElse: 'L',
},
2020-07-23 21:12:30 +00:00
relativeTime: {
future: 'peste %s',
past: '%s în urmă',
s: 'câteva secunde',
ss: relativeTimeWithPlural,
m: 'un minut',
mm: relativeTimeWithPlural,
h: 'o oră',
hh: relativeTimeWithPlural,
d: 'o zi',
dd: relativeTimeWithPlural,
2020-11-24 07:16:03 +00:00
w: 'o săptămână',
ww: relativeTimeWithPlural,
2020-07-23 21:12:30 +00:00
M: 'o lună',
MM: relativeTimeWithPlural,
y: 'un an',
yy: relativeTimeWithPlural,
},
week: {
dow: 1, // Monday is the first day of the week.
doy: 7, // The week that contains Jan 7th is the first week of the year.
},
});
return ro;
})));