框架升级及修复升级后的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
+14 -4
View File
@@ -1,6 +1,7 @@
//! moment.js locale configuration
//! locale : Bosnian [bs]
//! author : Nedim Cholich : https://github.com/frontyard
//! author : Rasid Redzic : https://github.com/rasidre
//! based on (hr) translation by Bojan Marković
;(function (global, factory) {
@@ -12,6 +13,17 @@
//! moment.js locale configuration
function processRelativeTime(number, withoutSuffix, key, isFuture) {
switch (key) {
case 'm':
return withoutSuffix
? 'jedna minuta'
: isFuture
? 'jednu minutu'
: 'jedne minute';
}
}
function translate(number, withoutSuffix, key) {
var result = number + ' ';
switch (key) {
@@ -24,8 +36,6 @@
result += 'sekundi';
}
return result;
case 'm':
return withoutSuffix ? 'jedna minuta' : 'jedne minute';
case 'mm':
if (number === 1) {
result += 'minuta';
@@ -36,7 +46,7 @@
}
return result;
case 'h':
return withoutSuffix ? 'jedan sat' : 'jednog sata';
return withoutSuffix ? 'jedan sat' : 'jedan sat';
case 'hh':
if (number === 1) {
result += 'sat';
@@ -137,7 +147,7 @@
past: 'prije %s',
s: 'par sekundi',
ss: translate,
m: translate,
m: processRelativeTime,
mm: translate,
h: translate,
hh: translate,