aboutsummaryrefslogtreecommitdiffstats
path: root/resources/lib/moment/locale/en-il.js
diff options
context:
space:
mode:
authorJames D. Forrester <jforrester@wikimedia.org>2020-05-04 11:45:09 -0700
committerJames D. Forrester <jforrester@wikimedia.org>2020-05-12 12:07:48 -0700
commit5ae0192d60a5abc97d80cb926fe33d1d9f699bf6 (patch)
treec9492cc4c633f0fc3ec80b2878285a6da3d25e29 /resources/lib/moment/locale/en-il.js
parente25e5ec7386f3334ac97c1171d327cb2b12b85ed (diff)
downloadmediawikicore-5ae0192d60a5abc97d80cb926fe33d1d9f699bf6.tar.gz
mediawikicore-5ae0192d60a5abc97d80cb926fe33d1d9f699bf6.zip
resources: Upgrade moment from 2.24.0 to 2.25.2; hook in gom-deva & zh-mo
We don't have en-IN, oc-LNC, or fil (Filipino) at all; we have tl-pl already hooked up, but that should probably change to just tl. Bug: T251696 Change-Id: Ic508615a270a90df4828f0946a06672da42f7ae9
Diffstat (limited to 'resources/lib/moment/locale/en-il.js')
-rw-r--r--resources/lib/moment/locale/en-il.js92
1 files changed, 53 insertions, 39 deletions
diff --git a/resources/lib/moment/locale/en-il.js b/resources/lib/moment/locale/en-il.js
index b18eab86ad28..e52503ce8349 100644
--- a/resources/lib/moment/locale/en-il.js
+++ b/resources/lib/moment/locale/en-il.js
@@ -1,4 +1,6 @@
//! moment.js locale configuration
+//! locale : English (Israel) [en-il]
+//! author : Chris Gedrim : https://github.com/chrisgedrim
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,53 +9,65 @@
factory(global.moment)
}(this, (function (moment) { 'use strict';
+ //! moment.js locale configuration
var enIl = moment.defineLocale('en-il', {
- months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
- monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
- weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
- weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
- weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
- longDateFormat : {
- LT : 'HH:mm',
- LTS : 'HH:mm:ss',
- L : 'DD/MM/YYYY',
- LL : 'D MMMM YYYY',
- LLL : 'D MMMM YYYY HH:mm',
- LLLL : 'dddd, D MMMM YYYY HH:mm'
+ months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
+ '_'
+ ),
+ monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
+ weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
+ '_'
+ ),
+ weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
+ weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
+ longDateFormat: {
+ LT: 'HH:mm',
+ LTS: 'HH:mm:ss',
+ L: 'DD/MM/YYYY',
+ LL: 'D MMMM YYYY',
+ LLL: 'D MMMM YYYY HH:mm',
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
},
- calendar : {
- sameDay : '[Today at] LT',
- nextDay : '[Tomorrow at] LT',
- nextWeek : 'dddd [at] LT',
- lastDay : '[Yesterday at] LT',
- lastWeek : '[Last] dddd [at] LT',
- sameElse : 'L'
+ calendar: {
+ sameDay: '[Today at] LT',
+ nextDay: '[Tomorrow at] LT',
+ nextWeek: 'dddd [at] LT',
+ lastDay: '[Yesterday at] LT',
+ lastWeek: '[Last] dddd [at] LT',
+ sameElse: 'L',
},
- relativeTime : {
- future : 'in %s',
- past : '%s ago',
- s : 'a few seconds',
- m : 'a minute',
- mm : '%d minutes',
- h : 'an hour',
- hh : '%d hours',
- d : 'a day',
- dd : '%d days',
- M : 'a month',
- MM : '%d months',
- y : 'a year',
- yy : '%d years'
+ relativeTime: {
+ future: 'in %s',
+ past: '%s ago',
+ s: 'a few seconds',
+ ss: '%d seconds',
+ m: 'a minute',
+ mm: '%d minutes',
+ h: 'an hour',
+ hh: '%d hours',
+ d: 'a day',
+ dd: '%d days',
+ M: 'a month',
+ MM: '%d months',
+ y: 'a year',
+ yy: '%d years',
},
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
- ordinal : function (number) {
+ ordinal: function (number) {
var b = number % 10,
- output = (~~(number % 100 / 10) === 1) ? 'th' :
- (b === 1) ? 'st' :
- (b === 2) ? 'nd' :
- (b === 3) ? 'rd' : 'th';
+ output =
+ ~~((number % 100) / 10) === 1
+ ? 'th'
+ : b === 1
+ ? 'st'
+ : b === 2
+ ? 'nd'
+ : b === 3
+ ? 'rd'
+ : 'th';
return number + output;
- }
+ },
});
return enIl;