summaryrefslogtreecommitdiff
path: root/resources/lib/moment/locale/pt.js
diff options
context:
space:
mode:
Diffstat (limited to 'resources/lib/moment/locale/pt.js')
-rw-r--r--resources/lib/moment/locale/pt.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/lib/moment/locale/pt.js b/resources/lib/moment/locale/pt.js
index aced692e..4afd5643 100644
--- a/resources/lib/moment/locale/pt.js
+++ b/resources/lib/moment/locale/pt.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('pt', {
@@ -19,6 +19,7 @@
weekdaysMin : 'dom_2ª_3ª_4ª_5ª_6ª_sáb'.split('_'),
longDateFormat : {
LT : 'HH:mm',
+ LTS : 'LT:ss',
L : 'DD/MM/YYYY',
LL : 'D [de] MMMM [de] YYYY',
LLL : 'D [de] MMMM [de] YYYY LT',
@@ -51,6 +52,7 @@
y : 'um ano',
yy : '%d anos'
},
+ ordinalParse: /\d{1,2}º/,
ordinal : '%dº',
week : {
dow : 1, // Monday is the first day of the week.