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