aboutsummaryrefslogtreecommitdiffstats
path: root/resources/lib/moment/locale/fa.js
diff options
context:
space:
mode:
authorpaladox <thomasmulhall410@yahoo.com>2014-11-20 18:58:28 +0000
committerTimo Tijhof <krinklemail@gmail.com>2015-01-09 19:49:46 +0000
commitf3f1498f8084993bdd9a0311b82a8df3fa3e0e98 (patch)
tree1520fe07e5e98d7b87ac09c81678da1fb58a26b0 /resources/lib/moment/locale/fa.js
parent364ed8c1beb336e81c6e5534bd433dce801071f5 (diff)
downloadmediawikicore-f3f1498f8084993bdd9a0311b82a8df3fa3e0e98.tar.gz
mediawikicore-f3f1498f8084993bdd9a0311b82a8df3fa3e0e98.zip
Update Moment.js from 2.8.3 to 2.8.4
Project site * http://momentjs.com * https://github.com/moment/moment/ File source * https://github.com/moment/moment/tree/2.8.4 Changelog * https://github.com/moment/moment/blob/2.8.4/CHANGELOG.md Difference between 2.8.3 and 2.8.4 2.8.4 Features * #2000 Add LTS localised format that includes seconds * #1960 added formatToken 'x' for unix offset in milliseconds #1938 * #1965 Support 24:00:00.000 to mean next day, at midnight. * #2002 Accept 'date' key when creating moment with object * #2009 Use native toISOString when we can Bugfixes * #2004 Fix makeAs to work with zoned moments * #2001 moment.utc(string) falling back to Date works properly * #1928 IE11 module == null * #1952 New implementation of isBefore/isSame/isAfter * #1992 Fix strict month parsing of abbreviated/full months * #2003 Detect hours above 12 with h/hh tokens * #1974 Locale export for meteor server environment * #1925 Fix duration as getters (years and months convert to whole days) * #2008 Fix endOf handling of no-arg and ms * #2010 Update deprecation warning for moment().lang() Locale improvements * #2015 remove Uhr from german format * #1933 improved russian lastWeek translations * #2013 changed month abbreviations in russian * #1971 Fix italian calendar time * #1967 Fix catalan ordinals * #1898 Bosnian translation of August * #1771 Update greek seconds string * #1961 Add a script to prepare moment for npm publish * #2016 Fix long date format for Czech Change-Id: I136a08194476ac01af7495c8f8e1e7ea1e140973
Diffstat (limited to 'resources/lib/moment/locale/fa.js')
-rw-r--r--resources/lib/moment/locale/fa.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/lib/moment/locale/fa.js b/resources/lib/moment/locale/fa.js
index b1151bdd3814..ad2087a2ee78 100644
--- a/resources/lib/moment/locale/fa.js
+++ b/resources/lib/moment/locale/fa.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) {
var symbolMap = {
@@ -43,6 +43,7 @@
weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'),
longDateFormat : {
LT : 'HH:mm',
+ LTS : 'LT:ss',
L : 'DD/MM/YYYY',
LL : 'D MMMM YYYY',
LLL : 'D MMMM YYYY LT',
@@ -88,6 +89,7 @@
return symbolMap[match];
}).replace(/,/g, '،');
},
+ ordinalParse: /\d{1,2}م/,
ordinal : '%dم',
week : {
dow : 6, // Saturday is the first day of the week.