mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-12-11 07:46:15 +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
58 lines
2 KiB
JavaScript
58 lines
2 KiB
JavaScript
// moment.js language configuration
|
|
// language : Albanian (sq)
|
|
// author : Flakërim Ismani : https://github.com/flakerimi
|
|
// author: Menelion Elensúle: https://github.com/Oire (tests)
|
|
|
|
(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('sq', {
|
|
months : "Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),
|
|
monthsShort : "Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),
|
|
weekdays : "E Diel_E Hënë_E Marte_E Mërkure_E Enjte_E Premte_E Shtunë".split("_"),
|
|
weekdaysShort : "Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),
|
|
weekdaysMin : "D_H_Ma_Më_E_P_Sh".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 : '[Sot në] LT',
|
|
nextDay : '[Neser në] LT',
|
|
nextWeek : 'dddd [në] LT',
|
|
lastDay : '[Dje në] LT',
|
|
lastWeek : 'dddd [e kaluar në] LT',
|
|
sameElse : 'L'
|
|
},
|
|
relativeTime : {
|
|
future : "në %s",
|
|
past : "%s me parë",
|
|
s : "disa seconda",
|
|
m : "një minut",
|
|
mm : "%d minutea",
|
|
h : "një orë",
|
|
hh : "%d orë",
|
|
d : "një ditë",
|
|
dd : "%d ditë",
|
|
M : "një muaj",
|
|
MM : "%d muaj",
|
|
y : "një vit",
|
|
yy : "%d vite"
|
|
},
|
|
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.
|
|
}
|
|
});
|
|
}));
|