summaryrefslogtreecommitdiffstats
path: root/js/vendor/momentjs/locale/ca.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/vendor/momentjs/locale/ca.js')
-rw-r--r--js/vendor/momentjs/locale/ca.js15
1 files changed, 13 insertions, 2 deletions
diff --git a/js/vendor/momentjs/locale/ca.js b/js/vendor/momentjs/locale/ca.js
index fd41ff54d..4f0d3fe00 100644
--- a/js/vendor/momentjs/locale/ca.js
+++ b/js/vendor/momentjs/locale/ca.js
@@ -8,7 +8,7 @@
} else if (typeof exports === 'object') {
module.exports = factory(require('../moment')); // Node
} else {
- factory(window.moment); // Browser global
+ factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
}
}(function (moment) {
return moment.defineLocale('ca', {
@@ -19,6 +19,7 @@
weekdaysMin : 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'),
longDateFormat : {
LT : 'H:mm',
+ LTS : 'LT:ss',
L : 'DD/MM/YYYY',
LL : 'D MMMM YYYY',
LLL : 'D MMMM YYYY LT',
@@ -57,7 +58,17 @@
y : 'un any',
yy : '%d anys'
},
- ordinal : '%dº',
+ ordinalParse: /\d{1,2}(r|n|t|è|a)/,
+ ordinal : function (number, period) {
+ var output = (number === 1) ? 'r' :
+ (number === 2) ? 'n' :
+ (number === 3) ? 'r' :
+ (number === 4) ? 't' : 'è';
+ if (period === 'w' || period === 'W') {
+ output = 'a';
+ }
+ return number + output;
+ },
week : {
dow : 1, // Monday is the first day of the week.
doy : 4 // The week that contains Jan 4th is the first week of the year.