框架升级及修复升级后的bug

This commit is contained in:
Dev
2026-10-16 18:13:09 +08:00
parent dafb0c96c0
commit 2d342bcbd7
537 changed files with 49836 additions and 40933 deletions
+56 -14
View File
@@ -11,6 +11,46 @@
//! moment.js locale configuration
var relativeTime = {
ss: 'sekunde %d',
m: 'dakika moja',
mm: 'dakika %d',
h: 'saa moja',
hh: 'saa %d',
d: 'siku moja',
dd: 'siku %d',
M: 'mwezi mmoja',
MM: 'miezi %d',
y: 'mwaka mmoja',
yy: 'miaka %d',
};
function relativeTimeWithSuffix(number, withoutSuffix, key, isFuture) {
var output = relativeTime[key].replace(/%d/i, number);
if (withoutSuffix || isFuture) {
return output;
}
switch (key) {
case 'ss':
case 'mm':
case 'hh':
case 'dd':
return output + (number === 1 ? ' iliyopita' : ' zilizopita');
case 'm':
case 'h':
case 'd':
return output + ' iliyopita';
case 'M':
case 'y':
return output + ' uliopita';
case 'MM':
case 'yy':
return output + ' iliyopita';
}
}
var sw = moment.defineLocale('sw', {
months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(
'_'
@@ -34,26 +74,28 @@
calendar: {
sameDay: '[leo saa] LT',
nextDay: '[kesho saa] LT',
nextWeek: '[wiki ijayo] dddd [saat] LT',
nextWeek: 'dddd [ijayo saa] LT',
lastDay: '[jana] LT',
lastWeek: '[wiki iliyopita] dddd [saat] LT',
lastWeek: 'dddd [iliyopita saa] LT',
sameElse: 'L',
},
relativeTime: {
future: '%s baadaye',
past: 'tokea %s',
past: function (output) {
return output === 'hivi punde' ? 'tokea ' + output : output;
},
s: 'hivi punde',
ss: 'sekunde %d',
m: 'dakika moja',
mm: 'dakika %d',
h: 'saa limoja',
hh: 'masaa %d',
d: 'siku moja',
dd: 'siku %d',
M: 'mwezi mmoja',
MM: 'miezi %d',
y: 'mwaka mmoja',
yy: 'miaka %d',
ss: relativeTimeWithSuffix,
m: relativeTimeWithSuffix,
mm: relativeTimeWithSuffix,
h: relativeTimeWithSuffix,
hh: relativeTimeWithSuffix,
d: relativeTimeWithSuffix,
dd: relativeTimeWithSuffix,
M: relativeTimeWithSuffix,
MM: relativeTimeWithSuffix,
y: relativeTimeWithSuffix,
yy: relativeTimeWithSuffix,
},
week: {
dow: 1, // Monday is the first day of the week.