1 // moment.js language configuration
2 // language : Welsh (cy)
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(window
.moment
); // Browser global
14 return moment
.lang("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
25 LLL
: "D MMMM YYYY LT",
26 LLLL
: "dddd, D MMMM YYYY LT"
29 sameDay
: '[Heddiw am] LT',
30 nextDay
: '[Yfory am] LT',
31 nextWeek
: 'dddd [am] LT',
32 lastDay
: '[Ddoe am] LT',
33 lastWeek
: 'dddd [diwethaf am] LT',
39 s
: "ychydig eiliadau",
51 // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
52 ordinal: function (number
) {
56 '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
57 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
61 if (b
=== 40 || b
=== 50 || b
=== 60 || b
=== 80 || b
=== 100) {
62 output
= 'fed'; // not 30ain, 70ain or 90ain
70 return number
+ output
;
73 dow
: 1, // Monday is the first day of the week.
74 doy
: 4 // The week that contains Jan 4th is the first week of the year.