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