mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-17 21:04:11 +00:00
5d419682f5
Add moment.js ( http://momentjs.com/ ) as a ResourceLoader module and use it to parse and format date strings. Moment.js seems to be the least bad option right now; eventually it should be replaced by i18n functionality in core Javascript modules. Change-Id: I332655778be3d694781b83fa5dea1e59770d8866
61 lines
2.2 KiB
JavaScript
61 lines
2.2 KiB
JavaScript
// moment.js language configuration
|
|
// language : euskara (eu)
|
|
// author : Eneko Illarramendi : https://github.com/eillarra
|
|
|
|
(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(window.moment); // Browser global
|
|
}
|
|
}(function (moment) {
|
|
return moment.lang('eu', {
|
|
months : "urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),
|
|
monthsShort : "urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),
|
|
weekdays : "igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),
|
|
weekdaysShort : "ig._al._ar._az._og._ol._lr.".split("_"),
|
|
weekdaysMin : "ig_al_ar_az_og_ol_lr".split("_"),
|
|
longDateFormat : {
|
|
LT : "HH:mm",
|
|
L : "YYYY-MM-DD",
|
|
LL : "YYYY[ko] MMMM[ren] D[a]",
|
|
LLL : "YYYY[ko] MMMM[ren] D[a] LT",
|
|
LLLL : "dddd, YYYY[ko] MMMM[ren] D[a] LT",
|
|
l : "YYYY-M-D",
|
|
ll : "YYYY[ko] MMM D[a]",
|
|
lll : "YYYY[ko] MMM D[a] LT",
|
|
llll : "ddd, YYYY[ko] MMM D[a] LT"
|
|
},
|
|
calendar : {
|
|
sameDay : '[gaur] LT[etan]',
|
|
nextDay : '[bihar] LT[etan]',
|
|
nextWeek : 'dddd LT[etan]',
|
|
lastDay : '[atzo] LT[etan]',
|
|
lastWeek : '[aurreko] dddd LT[etan]',
|
|
sameElse : 'L'
|
|
},
|
|
relativeTime : {
|
|
future : "%s barru",
|
|
past : "duela %s",
|
|
s : "segundo batzuk",
|
|
m : "minutu bat",
|
|
mm : "%d minutu",
|
|
h : "ordu bat",
|
|
hh : "%d ordu",
|
|
d : "egun bat",
|
|
dd : "%d egun",
|
|
M : "hilabete bat",
|
|
MM : "%d hilabete",
|
|
y : "urte bat",
|
|
yy : "%d urte"
|
|
},
|
|
ordinal : '%d.',
|
|
week : {
|
|
dow : 1, // Monday is the first day of the week.
|
|
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
|
}
|
|
});
|
|
}));
|