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
57 lines
2 KiB
JavaScript
57 lines
2 KiB
JavaScript
// moment.js language configuration
|
|
// language : faroese (fo)
|
|
// author : Ragnar Johannesen : https://github.com/ragnar123
|
|
|
|
(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('fo', {
|
|
months : "januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),
|
|
monthsShort : "jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),
|
|
weekdays : "sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),
|
|
weekdaysShort : "sun_mán_týs_mik_hós_frí_ley".split("_"),
|
|
weekdaysMin : "su_má_tý_mi_hó_fr_le".split("_"),
|
|
longDateFormat : {
|
|
LT : "HH:mm",
|
|
L : "DD/MM/YYYY",
|
|
LL : "D MMMM YYYY",
|
|
LLL : "D MMMM YYYY LT",
|
|
LLLL : "dddd D. MMMM, YYYY LT"
|
|
},
|
|
calendar : {
|
|
sameDay : '[Í dag kl.] LT',
|
|
nextDay : '[Í morgin kl.] LT',
|
|
nextWeek : 'dddd [kl.] LT',
|
|
lastDay : '[Í gjár kl.] LT',
|
|
lastWeek : '[síðstu] dddd [kl] LT',
|
|
sameElse : 'L'
|
|
},
|
|
relativeTime : {
|
|
future : "um %s",
|
|
past : "%s síðani",
|
|
s : "fá sekund",
|
|
m : "ein minutt",
|
|
mm : "%d minuttir",
|
|
h : "ein tími",
|
|
hh : "%d tímar",
|
|
d : "ein dagur",
|
|
dd : "%d dagar",
|
|
M : "ein mánaði",
|
|
MM : "%d mánaðir",
|
|
y : "eitt ár",
|
|
yy : "%d ár"
|
|
},
|
|
ordinal : '%d.',
|
|
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.
|
|
}
|
|
});
|
|
}));
|