mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-09-14 10:47:36 +00:00
i18n: upravené systémové záznamy
This commit is contained in:
@@ -29,7 +29,7 @@ import {
|
||||
} from "lucide-react"
|
||||
import { useState, useEffect, useMemo } from "react"
|
||||
import { API_PORT, fetchApi, getApiUrl, getAuthToken } from "@/lib/api-config"
|
||||
import { useT } from "@/lib/i18n/provider"
|
||||
import { useI18n } from "@/lib/i18n/provider"
|
||||
|
||||
interface Backup {
|
||||
volid: string
|
||||
@@ -89,7 +89,7 @@ interface CombinedLogEntry {
|
||||
}
|
||||
|
||||
export function SystemLogs() {
|
||||
const t = useT()
|
||||
const { language, t } = useI18n()
|
||||
const [logs, setLogs] = useState<SystemLog[]>([])
|
||||
const [backups, setBackups] = useState<Backup[]>([])
|
||||
const [events, setEvents] = useState<Event[]>([])
|
||||
@@ -607,7 +607,7 @@ export function SystemLogs() {
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<div className="text-2xl font-bold text-foreground">
|
||||
{(logsCounts?.total ?? 0).toLocaleString("fr-FR")}
|
||||
{(logsCounts?.total ?? 0).toLocaleString(language)}
|
||||
</div>
|
||||
<p className="text-xs text-muted-foreground mt-2">{t("systemLogs.cards.selectedRange")}</p>
|
||||
</CardContent>
|
||||
@@ -619,7 +619,7 @@ export function SystemLogs() {
|
||||
<XCircle className="h-4 w-4 text-red-500" />
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<div className="text-2xl font-bold text-red-500">{(logsCounts?.errors ?? 0).toLocaleString("fr-FR")}</div>
|
||||
<div className="text-2xl font-bold text-red-500">{(logsCounts?.errors ?? 0).toLocaleString(language)}</div>
|
||||
<p className="text-xs text-muted-foreground mt-2">{t("systemLogs.cards.requiresAttention")}</p>
|
||||
</CardContent>
|
||||
</Card>
|
||||
@@ -630,7 +630,7 @@ export function SystemLogs() {
|
||||
<AlertTriangle className="h-4 w-4 text-yellow-500" />
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<div className="text-2xl font-bold text-yellow-500">{(logsCounts?.warnings ?? 0).toLocaleString("fr-FR")}</div>
|
||||
<div className="text-2xl font-bold text-yellow-500">{(logsCounts?.warnings ?? 0).toLocaleString(language)}</div>
|
||||
<p className="text-xs text-muted-foreground mt-2">{t("systemLogs.cards.monitorClosely")}</p>
|
||||
</CardContent>
|
||||
</Card>
|
||||
@@ -641,7 +641,7 @@ export function SystemLogs() {
|
||||
<Database className="h-4 w-4 text-blue-500" />
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<div className="text-2xl font-bold text-blue-500">{backupStats.total.toLocaleString("fr-FR")}</div>
|
||||
<div className="text-2xl font-bold text-blue-500">{backupStats.total.toLocaleString(language)}</div>
|
||||
<p className="text-xs text-muted-foreground mt-2">{formatBytes(backupStats.totalSize)}</p>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
"hardware": "Hardvér",
|
||||
"backup": "Záloha",
|
||||
"terminal": "Terminál",
|
||||
"systemLogs": "Systémové logy",
|
||||
"systemLogs": "Systémové záznamy",
|
||||
"security": "Bezpečnosť",
|
||||
"settings": "Nastavenia",
|
||||
"about": "O projekte",
|
||||
@@ -3093,15 +3093,15 @@
|
||||
}
|
||||
},
|
||||
"systemLogs": {
|
||||
"title": "Systémové logy a udalosti",
|
||||
"title": "Systémové záznamy a udalosti",
|
||||
"sections": "Časti",
|
||||
"loading": {
|
||||
"title": "Načítavam logy…",
|
||||
"description": "Získavam systémové logy a udalosti"
|
||||
"title": "Načítavam záznamy…",
|
||||
"description": "Získavam systémové záznamy a udalosti"
|
||||
},
|
||||
"errors": {
|
||||
"connectFailed": "Nepodarilo sa pripojiť k serveru.",
|
||||
"loadFailed": "Logy sa nepodarilo načítať. Skúste to znova."
|
||||
"loadFailed": "Záznamy sa nepodarilo načítať. Skúste to znova."
|
||||
},
|
||||
"cards": {
|
||||
"totalEntries": "Všetky záznamy",
|
||||
@@ -3109,17 +3109,17 @@
|
||||
"errors": "Chyby",
|
||||
"requiresAttention": "Vyžadujú pozornosť",
|
||||
"warnings": "Upozornenia",
|
||||
"monitorClosely": "Treba ich sledovať",
|
||||
"monitorClosely": "Skontrolujte ich",
|
||||
"backups": "Zálohy"
|
||||
},
|
||||
"tabs": {
|
||||
"logs": "Logy",
|
||||
"logs": "Záznamy",
|
||||
"events": "Udalosti",
|
||||
"backups": "Zálohy",
|
||||
"notifications": "Notifikácie"
|
||||
},
|
||||
"filters": {
|
||||
"searchPlaceholder": "Hľadať v logoch a udalostiach…",
|
||||
"searchPlaceholder": "Hľadať v záznamoch a udalostiach…",
|
||||
"timeRange": "Časové obdobie",
|
||||
"oneDay": "Posledný deň",
|
||||
"threeDays": "Posledné 3 dni",
|
||||
@@ -3147,8 +3147,8 @@
|
||||
"debug": "Ladenie"
|
||||
},
|
||||
"export": {
|
||||
"button": "Exportovať logy",
|
||||
"title": "Export systémových logov a udalostí Proxmoxu",
|
||||
"button": "Exportovať záznamy",
|
||||
"title": "Export systémových záznamov a udalostí Proxmoxu",
|
||||
"filtersApplied": "Použité filtre"
|
||||
},
|
||||
"fields": {
|
||||
@@ -3181,7 +3181,7 @@
|
||||
"event": "Udalosť"
|
||||
},
|
||||
"empty": {
|
||||
"logs": "Vybraným filtrom nezodpovedajú žiadne logy.",
|
||||
"logs": "Vybraným filtrom nezodpovedajú žiadne záznamy.",
|
||||
"backups": "Nenašli sa žiadne zálohy.",
|
||||
"notifications": "Nenašli sa žiadne notifikácie."
|
||||
},
|
||||
@@ -3192,7 +3192,7 @@
|
||||
"totalSize": "Celková veľkosť"
|
||||
},
|
||||
"modals": {
|
||||
"logTitle": "Podrobnosti logu",
|
||||
"logTitle": "Podrobnosti záznamu",
|
||||
"logDescription": "Všetky informácie o tomto zázname",
|
||||
"eventTitle": "Podrobnosti udalosti",
|
||||
"eventDescription": "Všetky informácie o tejto udalosti",
|
||||
@@ -3202,8 +3202,8 @@
|
||||
"notificationDescription": "Všetky informácie o tejto notifikácii"
|
||||
},
|
||||
"download": {
|
||||
"taskLog": "Log úlohy Proxmoxu",
|
||||
"completeTaskLog": "Celý log úlohy",
|
||||
"taskLog": "Záznam úlohy Proxmoxu",
|
||||
"completeTaskLog": "Celý záznam úlohy",
|
||||
"completeMessage": "Celá správa",
|
||||
"completeMessageButton": "Stiahnuť celú správu"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user