1 //! moment.js locale configuration
2 //! locale : Welsh [cy]
3 //! author : Robert Allen : https://github.com/robgallen
4 //! author : https://github.com/ryangreaves
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';
13 //! moment.js locale configuration
15 var cy = moment.defineLocale('cy', {
16 months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(
19 monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(
22 weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(
25 weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
26 weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
27 weekdaysParseExact: true,
28 // time formats are the same as en-gb
34 LLL: 'D MMMM YYYY HH:mm',
35 LLLL: 'dddd, D MMMM YYYY HH:mm',
38 sameDay: '[Heddiw am] LT',
39 nextDay: '[Yfory am] LT',
40 nextWeek: 'dddd [am] LT',
41 lastDay: '[Ddoe am] LT',
42 lastWeek: 'dddd [diwethaf am] LT',
48 s: 'ychydig eiliadau',
61 dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
62 // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
63 ordinal: function (number) {
77 'fed', // 1af to 10fed
87 'fed', // 11eg to 20fed
90 if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
91 output = 'fed'; // not 30ain, 70ain or 90ain
98 return number + output;
101 dow: 1, // Monday is the first day of the week.
102 doy: 4, // The week that contains Jan 4th is the first week of the year.