feat(admin): enhance i18n support

Fix system monitor button i18n syntax, complete coupon form i18n
This commit is contained in:
xboard
2025-06-23 11:55:17 +08:00
parent 7efc16990e
commit eff2b1f8ba
6 changed files with 257 additions and 170 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1092,7 +1092,25 @@ window.XBOARD_TRANSLATIONS['en-US'] = {
"searchOnly": "Search results: {{count}} logs containing \\\"{{keyword}}\\\"",
"levelOnly": "Filter results: {{count}} logs with level \\\"{{level}}\\\"",
"reset": "Reset Filters"
}
},
"clearLogs": "Clear Logs",
"clearDays": "Clear Days",
"clearDaysDesc": "Clear logs older than how many days (0-365 days, 0 means today)",
"clearLevel": "Log Level",
"clearLimit": "Batch Limit",
"clearLimitDesc": "Batch clear quantity limit (100-10000 records)",
"clearPreview": "Clear Preview",
"getStats": "Get Statistics",
"cutoffDate": "Cutoff Date",
"willClear": "Will Clear",
"logsUnit": " logs",
"clearWarning": "This operation cannot be undone, please proceed with caution!",
"clearing": "Clearing...",
"confirmClear": "Confirm Clear",
"clearSuccess": "Clear completed! {{count}} logs cleared",
"clearFailed": "Clear failed",
"getStatsFailed": "Failed to get clear statistics",
"clearLogsFailed": "Failed to clear logs"
},
"common": {
"refresh": "Refresh",
@@ -1354,6 +1372,17 @@ window.XBOARD_TRANSLATIONS['en-US'] = {
},
"error": {
"saveFailed": "Failed to save coupon"
},
"timeRange": {
"quickSet": "Quick Set",
"presets": {
"1week": "1 Week",
"2weeks": "2 Weeks",
"1month": "1 Month",
"3months": "3 Months",
"6months": "6 Months",
"1year": "1 Year"
}
}
},
"period": {

View File

@@ -1108,7 +1108,25 @@ window.XBOARD_TRANSLATIONS['ko-KR'] = {
"searchOnly": "검색 결과: \\\"{{keyword}}\\\"를 포함하는 로그 {{count}}개",
"levelOnly": "필터 결과: 레벨이 \\\"{{level}}\\\"인 로그 {{count}}개",
"reset": "필터 초기화"
}
},
"clearLogs": "로그 삭제",
"clearDays": "삭제 일수",
"clearDaysDesc": "며칠 전 로그를 삭제할지 (0-365일, 0은 오늘)",
"clearLevel": "로그 레벨",
"clearLimit": "배치 제한",
"clearLimitDesc": "배치 삭제 수량 제한 (100-10000건)",
"clearPreview": "삭제 미리보기",
"getStats": "통계 가져오기",
"cutoffDate": "마감일",
"willClear": "삭제 예정",
"logsUnit": "개 로그",
"clearWarning": "이 작업은 되돌릴 수 없습니다. 신중하게 진행해 주세요!",
"clearing": "삭제 중...",
"confirmClear": "삭제 확인",
"clearSuccess": "삭제 완료! {{count}}개 로그 삭제됨",
"clearFailed": "삭제 실패",
"getStatsFailed": "삭제 통계 가져오기 실패",
"clearLogsFailed": "로그 삭제 실패"
},
"common": {
"refresh": "새로고침",
@@ -1370,6 +1388,17 @@ window.XBOARD_TRANSLATIONS['ko-KR'] = {
},
"error": {
"saveFailed": "쿠폰 저장 실패"
},
"timeRange": {
"quickSet": "빠른 설정",
"presets": {
"1week": "1주",
"2weeks": "2주",
"1month": "1개월",
"3months": "3개월",
"6months": "6개월",
"1year": "1년"
}
}
},
"period": {

View File

@@ -1090,7 +1090,25 @@ window.XBOARD_TRANSLATIONS['zh-CN'] = {
"searchOnly": "搜索结果: 包含\"{{keyword}}\"的日志共 {{count}} 条",
"levelOnly": "筛选结果: 级别为\"{{level}}\"的日志共 {{count}} 条",
"reset": "重置筛选"
}
},
"clearLogs": "清理日志",
"clearDays": "清理天数",
"clearDaysDesc": "清理多少天前的日志 (0-365天0表示今天)",
"clearLevel": "日志级别",
"clearLimit": "单次限制",
"clearLimitDesc": "单次清理数量限制 (100-10000条)",
"clearPreview": "清理预览",
"getStats": "获取统计",
"cutoffDate": "截止日期",
"willClear": "将要清理",
"logsUnit": " 条日志",
"clearWarning": "此操作不可撤销,请谨慎操作!",
"clearing": "清理中...",
"confirmClear": "确认清理",
"clearSuccess": "清理完成!已清理 {{count}} 条日志",
"clearFailed": "清理失败",
"getStatsFailed": "获取清理统计失败",
"clearLogsFailed": "清理日志失败"
},
"common": {
"refresh": "刷新",
@@ -1346,6 +1364,17 @@ window.XBOARD_TRANSLATIONS['zh-CN'] = {
},
"error": {
"saveFailed": "保存优惠券失败"
},
"timeRange": {
"quickSet": "快速设置",
"presets": {
"1week": "1周",
"2weeks": "2周",
"1month": "1个月",
"3months": "3个月",
"6months": "6个月",
"1year": "1年"
}
}
},
"period": {