mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-27 06:09:01 +03:00
i18n miscellaneous fixes (#21614)
CI / AMD64 Build (push) Waiting to run
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
CI / Assemble and push default build (push) Blocked by required conditions
CI / AMD64 Build (push) Waiting to run
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
CI / Assemble and push default build (push) Blocked by required conditions
* fix: fix face library unknown label i18n wrong * fix: fix review genai threat level i18n * fix: fix preview unknown label i18n * fix: fix AM/PM i18n display issue
This commit is contained in:
@@ -57,7 +57,7 @@ export function GenAISummaryDialog({
|
||||
!aiAnalysis ||
|
||||
(!aiAnalysis.potential_threat_level && !aiAnalysis.other_concerns)
|
||||
) {
|
||||
return "None";
|
||||
return t("label.none", { ns: "common" });
|
||||
}
|
||||
|
||||
let concerns = "";
|
||||
@@ -74,7 +74,9 @@ export function GenAISummaryDialog({
|
||||
label = t("securityConcern", { ns: "views/events" });
|
||||
break;
|
||||
default:
|
||||
label = THREAT_LEVEL_LABELS[threatLevel as ThreatLevel] || "Unknown";
|
||||
label =
|
||||
THREAT_LEVEL_LABELS[threatLevel as ThreatLevel] ||
|
||||
t("details.unknown", { ns: "views/classificationModel" });
|
||||
}
|
||||
concerns = `• ${label}\n`;
|
||||
}
|
||||
@@ -83,7 +85,7 @@ export function GenAISummaryDialog({
|
||||
concerns += `• ${c}\n`;
|
||||
});
|
||||
|
||||
return concerns || "None";
|
||||
return concerns || t("label.none", { ns: "common" });
|
||||
}, [aiAnalysis, t]);
|
||||
|
||||
// layout
|
||||
|
||||
Reference in New Issue
Block a user