1 // moment.js locale configuration
3 // author : Robert Allen
6 // Comment out broken wrapper, see T145382
7 /*if (typeof define === 'function' && define.amd) {
8 define(['moment'], factory); // AMD
9 } else if (typeof exports === 'object') {
10 module.exports = factory(require('../moment')); // Node
12 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
16 return moment.defineLocale('cy', {
17 months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
18 monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
19 weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
20 weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
21 weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
22 // time formats are the same as en-gb
28 LLL: 'D MMMM YYYY LT',
29 LLLL: 'dddd, D MMMM YYYY LT'
32 sameDay: '[Heddiw am] LT',
33 nextDay: '[Yfory am] LT',
34 nextWeek: 'dddd [am] LT',
35 lastDay: '[Ddoe am] LT',
36 lastWeek: 'dddd [diwethaf am] LT',
42 s: 'ychydig eiliadau',
54 ordinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
55 // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
56 ordinal: function (number) {
60 '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
61 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
65 if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
66 output = 'fed'; // not 30ain, 70ain or 90ain
74 return number + output;
77 dow : 1, // Monday is the first day of the week.
78 doy : 4 // The week that contains Jan 4th is the first week of the year.