ledgerrb/public/app/bower_components/moment/locale/ro.js

73 lines
2.5 KiB
JavaScript
Raw Normal View History

2014-09-30 12:29:53 +02:00
// moment.js locale configuration
// locale : romanian (ro)
2014-07-31 18:00:20 +02:00
// author : Vlad Gurdiga : https://github.com/gurdiga
// author : Valentin Agachi : https://github.com/avaly
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else if (typeof exports === 'object') {
module.exports = factory(require('../moment')); // Node
} else {
factory(window.moment); // Browser global
}
}(function (moment) {
function relativeTimeWithPlural(number, withoutSuffix, key) {
var format = {
2014-09-30 12:29:53 +02:00
'mm': 'minute',
'hh': 'ore',
'dd': 'zile',
'MM': 'luni',
'yy': 'ani'
},
2014-07-31 18:00:20 +02:00
separator = ' ';
if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
separator = ' de ';
}
return number + separator + format[key];
}
2014-09-30 12:29:53 +02:00
return moment.defineLocale('ro', {
months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
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('_'),
2014-07-31 18:00:20 +02:00
longDateFormat : {
2014-09-30 12:29:53 +02:00
LT : 'H:mm',
L : 'DD.MM.YYYY',
LL : 'D MMMM YYYY',
LLL : 'D MMMM YYYY H:mm',
LLLL : 'dddd, D MMMM YYYY H:mm'
2014-07-31 18:00:20 +02:00
},
calendar : {
2014-09-30 12:29:53 +02:00
sameDay: '[azi la] LT',
2014-07-31 18:00:20 +02:00
nextDay: '[mâine la] LT',
nextWeek: 'dddd [la] LT',
lastDay: '[ieri la] LT',
lastWeek: '[fosta] dddd [la] LT',
sameElse: 'L'
},
relativeTime : {
2014-09-30 12:29:53 +02:00
future : 'peste %s',
past : '%s în urmă',
s : 'câteva secunde',
m : 'un minut',
2014-07-31 18:00:20 +02:00
mm : relativeTimeWithPlural,
2014-09-30 12:29:53 +02:00
h : 'o oră',
2014-07-31 18:00:20 +02:00
hh : relativeTimeWithPlural,
2014-09-30 12:29:53 +02:00
d : 'o zi',
2014-07-31 18:00:20 +02:00
dd : relativeTimeWithPlural,
2014-09-30 12:29:53 +02:00
M : 'o lună',
2014-07-31 18:00:20 +02:00
MM : relativeTimeWithPlural,
2014-09-30 12:29:53 +02:00
y : 'un an',
2014-07-31 18:00:20 +02:00
yy : relativeTimeWithPlural
},
week : {
dow : 1, // Monday is the first day of the week.
doy : 7 // The week that contains Jan 1st is the first week of the year.
}
});
}));