feat: i18n

This commit is contained in:
meilin.huang
2024-11-20 22:43:53 +08:00
parent 74ae031853
commit 99a746085b
308 changed files with 8177 additions and 3880 deletions

View File

@@ -69,7 +69,7 @@ export function convertToBytes(sizeStr: string) {
* @returns
*/
export function formatTime(time: number, unit: string = 's') {
const units = {
const units: any = {
y: 31536000,
M: 2592000,
d: 86400,