fix translation

This commit is contained in:
henrygd
2025-02-27 01:07:37 -05:00
parent 81d3d8ba5c
commit ac1b408d5b
3 changed files with 3 additions and 3 deletions

View File

@@ -160,7 +160,7 @@ export function SystemAlertGlobal({
function AlertContent({ data }: { data: AlertData }) {
const { key } = data
const singleDescription = data.alert?.singleDesc
const singleDescription = data.alert.singleDesc?.()
const [checked, setChecked] = useState(data.checked || false)
const [min, setMin] = useState(data.min || 10)

View File

@@ -303,7 +303,7 @@ export const alertInfo: Record<string, AlertInfo> = {
icon: ServerIcon,
desc: () => t`Triggers when status switches between up and down`,
/** "for x minutes" is appended to desc when only one value */
singleDesc: t`System` + " " + t`Down`,
singleDesc: () => t`System` + " " + t`Down`,
},
CPU: {
name: () => t`CPU Usage`,

View File

@@ -202,5 +202,5 @@ interface AlertInfo {
desc: () => string
max?: number
/** Single value description (when there's only one value, like status) */
singleDesc?: string
singleDesc?: () => string
}