settings i18n fixes

This commit is contained in:
Josh Hawkins 2025-05-08 14:48:22 -05:00
parent 31051e4835
commit d3821fc706
6 changed files with 15 additions and 7 deletions

View File

@ -84,6 +84,7 @@
}, },
"classification": { "classification": {
"title": "Classification Settings", "title": "Classification Settings",
"unsavedChanges": "Unsaved Classification settings changes",
"birdClassification": { "birdClassification": {
"title": "Bird Classification", "title": "Bird Classification",
"desc": "Bird classification identifies known birds using a quantized Tensorflow model. When a known bird is recognized, its common name will be added as a sub_label. This information is included in the UI, filters, as well as in notifications." "desc": "Bird classification identifies known birds using a quantized Tensorflow model. When a known bird is recognized, its common name will be added as a sub_label. This information is included in the UI, filters, as well as in notifications."
@ -168,11 +169,12 @@
"notSelectDetections": "All {{detectionsLabels}} objects detected in {{zone}} on {{cameraName}} not categorized as Alerts will be shown as Detections regardless of which zone they are in.", "notSelectDetections": "All {{detectionsLabels}} objects detected in {{zone}} on {{cameraName}} not categorized as Alerts will be shown as Detections regardless of which zone they are in.",
"regardlessOfZoneObjectDetectionsTips": "All {{detectionsLabels}} objects not categorized on {{cameraName}} will be shown as Detections regardless of which zone they are in." "regardlessOfZoneObjectDetectionsTips": "All {{detectionsLabels}} objects not categorized on {{cameraName}} will be shown as Detections regardless of which zone they are in."
}, },
"unsavedChanges": "Unsaved Review Classification settings for {{camera}}",
"selectAlertsZones": "Select zones for Alerts", "selectAlertsZones": "Select zones for Alerts",
"selectDetectionsZones": "Select zones for Detections", "selectDetectionsZones": "Select zones for Detections",
"limitDetections": "Limit detections to specific zones", "limitDetections": "Limit detections to specific zones",
"toast": { "toast": {
"success": "Review classification configuration has been saved. Restart Frigate to apply changes." "success": "Review Classification configuration has been saved. Restart Frigate to apply changes."
} }
} }
}, },
@ -338,6 +340,7 @@
}, },
"motionDetectionTuner": { "motionDetectionTuner": {
"title": "Motion Detection Tuner", "title": "Motion Detection Tuner",
"unsavedChanges": "Unsaved Motion Tuner changes ({{camera}})",
"desc": { "desc": {
"title": "Frigate uses motion detection as a first line check to see if there is anything happening in the frame worth checking with object detection.", "title": "Frigate uses motion detection as a first line check to see if there is anything happening in the frame worth checking with object detection.",
"documentation": "Read the Motion Tuning Guide" "documentation": "Read the Motion Tuning Guide"
@ -527,6 +530,8 @@
"registerDevice": "Register This Device", "registerDevice": "Register This Device",
"unregisterDevice": "Unregister This Device", "unregisterDevice": "Unregister This Device",
"sendTestNotification": "Send a test notification", "sendTestNotification": "Send a test notification",
"unsavedRegistrations": "Unsaved Notification registrations",
"unsavedChanges": "Unsaved Notification changes",
"active": "Notifications Active", "active": "Notifications Active",
"suspended": "Notifications suspended {{time}}", "suspended": "Notifications suspended {{time}}",
"suspendTime": { "suspendTime": {
@ -587,6 +592,7 @@
"loadingAvailableModels": "Loading available models…", "loadingAvailableModels": "Loading available models…",
"modelSelect": "Your available models on Frigate+ can be selected here. Note that only models compatible with your current detector configuration can be selected." "modelSelect": "Your available models on Frigate+ can be selected here. Note that only models compatible with your current detector configuration can be selected."
}, },
"unsavedChanges": "Unsaved Frigate+ settings changes",
"restart_required": "Restart required (Frigate+ model changed)", "restart_required": "Restart required (Frigate+ model changed)",
"toast": { "toast": {
"success": "Frigate+ settings have been saved. Restart Frigate to apply changes.", "success": "Frigate+ settings have been saved. Restart Frigate to apply changes.",

View File

@ -230,7 +230,9 @@ export default function CameraSettingsView({
if (changedValue) { if (changedValue) {
addMessage( addMessage(
"camera_settings", "camera_settings",
`Unsaved review classification settings for ${capitalizeFirstLetter(selectedCamera)}`, t("camera.reviewClassification.unsavedChanges", {
camera: selectedCamera,
}),
undefined, undefined,
`review_classification_settings_${selectedCamera}`, `review_classification_settings_${selectedCamera}`,
); );

View File

@ -220,7 +220,7 @@ export default function ClassificationSettingsView({
if (changedValue) { if (changedValue) {
addMessage( addMessage(
"search_settings", "search_settings",
`Unsaved Classification settings changes`, t("classification.unsavedChanges"),
undefined, undefined,
"search_settings", "search_settings",
); );

View File

@ -176,7 +176,7 @@ export default function FrigatePlusSettingsView({
if (changedValue) { if (changedValue) {
addMessage( addMessage(
"plus_settings", "plus_settings",
`Unsaved Frigate+ settings changes`, t("frigatePlus.unsavedChanges"),
undefined, undefined,
"plus_settings", "plus_settings",
); );

View File

@ -167,7 +167,7 @@ export default function MotionTunerView({
if (changedValue) { if (changedValue) {
addMessage( addMessage(
"motion_tuner", "motion_tuner",
`Unsaved motion tuner changes (${selectedCamera})`, t("motionDetectionTuner.unsavedChanges", { camera: selectedCamera }),
undefined, undefined,
`motion_tuner_${selectedCamera}`, `motion_tuner_${selectedCamera}`,
); );

View File

@ -105,7 +105,7 @@ export default function NotificationView({
if (changedValue) { if (changedValue) {
addMessage( addMessage(
"notification_settings", "notification_settings",
`Unsaved notification settings`, t("notification.unsavedChanges"),
undefined, undefined,
`notification_settings`, `notification_settings`,
); );
@ -128,7 +128,7 @@ export default function NotificationView({
if (registration) { if (registration) {
addMessage( addMessage(
"notification_settings", "notification_settings",
"Unsaved Notification Registrations", t("notification.unsavedRegistrations"),
undefined, undefined,
"registration", "registration",
); );