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
56 lines
2.6 KiB
JavaScript
56 lines
2.6 KiB
JavaScript
// moment.js language configuration
|
||
// language : Morocco Central Atlas Tamaziɣt (tzm)
|
||
// author : Abdel Said : https://github.com/abdelsaid
|
||
|
||
(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('tzm', {
|
||
months : "ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),
|
||
monthsShort : "ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),
|
||
weekdays : "ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),
|
||
weekdaysShort : "ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),
|
||
weekdaysMin : "ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".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: "[ⴰⵙⴷⵅ ⴴ] LT",
|
||
nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
|
||
nextWeek: 'dddd [ⴴ] LT',
|
||
lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
|
||
lastWeek: 'dddd [ⴴ] LT',
|
||
sameElse: 'L'
|
||
},
|
||
relativeTime : {
|
||
future : "ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",
|
||
past : "ⵢⴰⵏ %s",
|
||
s : "ⵉⵎⵉⴽ",
|
||
m : "ⵎⵉⵏⵓⴺ",
|
||
mm : "%d ⵎⵉⵏⵓⴺ",
|
||
h : "ⵙⴰⵄⴰ",
|
||
hh : "%d ⵜⴰⵙⵙⴰⵄⵉⵏ",
|
||
d : "ⴰⵙⵙ",
|
||
dd : "%d oⵙⵙⴰⵏ",
|
||
M : "ⴰⵢoⵓⵔ",
|
||
MM : "%d ⵉⵢⵢⵉⵔⵏ",
|
||
y : "ⴰⵙⴳⴰⵙ",
|
||
yy : "%d ⵉⵙⴳⴰⵙⵏ"
|
||
},
|
||
week : {
|
||
dow : 6, // Saturday is the first day of the week.
|
||
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
||
}
|
||
});
|
||
}));
|