Merge "Revert "Use display name in category page subheadings if provided""
[lhc/web/wiklou.git] / resources / lib / moment / locale / cy.js
1 // moment.js locale configuration
2 // locale : Welsh (cy)
3 // author : Robert Allen
4
5 (function (factory) {
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
11 } else {
12 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
13 }*/
14 factory(this.moment);
15 }(function (moment) {
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
23 longDateFormat: {
24 LT: 'HH:mm',
25 LTS : 'LT:ss',
26 L: 'DD/MM/YYYY',
27 LL: 'D MMMM YYYY',
28 LLL: 'D MMMM YYYY LT',
29 LLLL: 'dddd, D MMMM YYYY LT'
30 },
31 calendar: {
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',
37 sameElse: 'L'
38 },
39 relativeTime: {
40 future: 'mewn %s',
41 past: '%s yn ôl',
42 s: 'ychydig eiliadau',
43 m: 'munud',
44 mm: '%d munud',
45 h: 'awr',
46 hh: '%d awr',
47 d: 'diwrnod',
48 dd: '%d diwrnod',
49 M: 'mis',
50 MM: '%d mis',
51 y: 'blwyddyn',
52 yy: '%d flynedd'
53 },
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) {
57 var b = number,
58 output = '',
59 lookup = [
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
62 ];
63
64 if (b > 20) {
65 if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
66 output = 'fed'; // not 30ain, 70ain or 90ain
67 } else {
68 output = 'ain';
69 }
70 } else if (b > 0) {
71 output = lookup[b];
72 }
73
74 return number + output;
75 },
76 week : {
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.
79 }
80 });
81 }));