summaryrefslogtreecommitdiffstats
path: root/js/vendor/momentjs/locale/cy.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/vendor/momentjs/locale/cy.js')
-rw-r--r--js/vendor/momentjs/locale/cy.js38
1 files changed, 19 insertions, 19 deletions
diff --git a/js/vendor/momentjs/locale/cy.js b/js/vendor/momentjs/locale/cy.js
index 72b2f91da..64dfe43f5 100644
--- a/js/vendor/momentjs/locale/cy.js
+++ b/js/vendor/momentjs/locale/cy.js
@@ -1,17 +1,16 @@
-// moment.js locale configuration
-// locale : Welsh (cy)
-// author : Robert Allen
+//! moment.js locale configuration
+//! locale : Welsh (cy)
+//! author : Robert Allen
-(function (factory) {
- if (typeof define === 'function' && define.amd) {
- define(['moment'], factory); // AMD
- } else if (typeof exports === 'object') {
- module.exports = factory(require('../moment')); // Node
- } else {
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
- }
-}(function (moment) {
- return moment.defineLocale('cy', {
+;(function (global, factory) {
+ typeof exports === 'object' && typeof module !== 'undefined'
+ && typeof require === 'function' ? factory(require('../moment')) :
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
+ factory(global.moment)
+}(this, function (moment) { 'use strict';
+
+
+ var cy = moment.defineLocale('cy', {
months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
@@ -20,11 +19,11 @@
// time formats are the same as en-gb
longDateFormat: {
LT: 'HH:mm',
- LTS : 'LT:ss',
+ LTS : 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
- LLL: 'D MMMM YYYY LT',
- LLLL: 'dddd, D MMMM YYYY LT'
+ LLL: 'D MMMM YYYY HH:mm',
+ LLLL: 'dddd, D MMMM YYYY HH:mm'
},
calendar: {
sameDay: '[Heddiw am] LT',
@@ -58,7 +57,6 @@
'', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
];
-
if (b > 20) {
if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
output = 'fed'; // not 30ain, 70ain or 90ain
@@ -68,7 +66,6 @@
} else if (b > 0) {
output = lookup[b];
}
-
return number + output;
},
week : {
@@ -76,4 +73,7 @@
doy : 4 // The week that contains Jan 4th is the first week of the year.
}
});
-}));
+
+ return cy;
+
+})); \ No newline at end of file