框架升级及修复升级后的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
@@ -2,6 +2,7 @@
//! locale : Ukrainian [uk]
//! author : zemlanin : https://github.com/zemlanin
//! Author : Menelion Elensúle : https://github.com/Oire
//! Author : Oleksandr Trukhnii : https://github.com/JohnJunior
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
@@ -17,8 +18,8 @@
return num % 10 === 1 && num % 100 !== 11
? forms[0]
: num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
? forms[1]
: forms[2];
? forms[1]
: forms[2];
}
function relativeTimeWithPlural(number, withoutSuffix, key) {
var format = {
@@ -40,15 +41,15 @@
function weekdaysCaseReplace(m, format) {
var weekdays = {
nominative:
'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(
'неділя_понеділок_вівторок_середа_четвер_пʼятниця_субота'.split(
'_'
),
accusative:
'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(
'неділю_понеділок_вівторок_середу_четвер_пʼятницю_суботу'.split(
'_'
),
genitive:
'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(
'неділі_понеділка_вівторка_середи_четверга_пʼятниці_суботи'.split(
'_'
),
},
@@ -66,8 +67,8 @@
nounCase = /(\[[ВвУу]\]) ?dddd/.test(format)
? 'accusative'
: /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format)
? 'genitive'
: 'nominative';
? 'genitive'
: 'nominative';
return weekdays[nounCase][m.day()];
}
function processHoursFunction(str) {
@@ -169,7 +170,7 @@
},
week: {
dow: 1, // Monday is the first day of the week.
doy: 7, // The week that contains Jan 7th is the first week of the year.
doy: 4, // The week that contains Jan 4th is the first week of the year.
},
});