LaravelTest
108 строк · 3.4 Кб
1//! moment.js locale configuration
2//! locale : Welsh [cy]
3//! author : Robert Allen : https://github.com/robgallen
4//! author : https://github.com/ryangreaves
5
6;(function (global, factory) {7typeof exports === 'object' && typeof module !== 'undefined'8&& typeof require === 'function' ? factory(require('../moment')) :9typeof define === 'function' && define.amd ? define(['../moment'], factory) :10factory(global.moment)11}(this, (function (moment) { 'use strict';12
13//! moment.js locale configuration14
15var cy = moment.defineLocale('cy', {16months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(17'_'18),19monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(20'_'21),22weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(23'_'24),25weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),26weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),27weekdaysParseExact: true,28// time formats are the same as en-gb29longDateFormat: {30LT: 'HH:mm',31LTS: 'HH:mm:ss',32L: 'DD/MM/YYYY',33LL: 'D MMMM YYYY',34LLL: 'D MMMM YYYY HH:mm',35LLLL: 'dddd, D MMMM YYYY HH:mm',36},37calendar: {38sameDay: '[Heddiw am] LT',39nextDay: '[Yfory am] LT',40nextWeek: 'dddd [am] LT',41lastDay: '[Ddoe am] LT',42lastWeek: 'dddd [diwethaf am] LT',43sameElse: 'L',44},45relativeTime: {46future: 'mewn %s',47past: '%s yn ôl',48s: 'ychydig eiliadau',49ss: '%d eiliad',50m: 'munud',51mm: '%d munud',52h: 'awr',53hh: '%d awr',54d: 'diwrnod',55dd: '%d diwrnod',56M: 'mis',57MM: '%d mis',58y: 'blwyddyn',59yy: '%d flynedd',60},61dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,62// traditional ordinal numbers above 31 are not commonly used in colloquial Welsh63ordinal: function (number) {64var b = number,65output = '',66lookup = [67'',68'af',69'il',70'ydd',71'ydd',72'ed',73'ed',74'ed',75'fed',76'fed',77'fed', // 1af to 10fed78'eg',79'fed',80'eg',81'eg',82'fed',83'eg',84'eg',85'fed',86'eg',87'fed', // 11eg to 20fed88];89if (b > 20) {90if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {91output = 'fed'; // not 30ain, 70ain or 90ain92} else {93output = 'ain';94}95} else if (b > 0) {96output = lookup[b];97}98return number + output;99},100week: {101dow: 1, // Monday is the first day of the week.102doy: 4, // The week that contains Jan 4th is the first week of the year.103},104});105
106return cy;107
108})));109