mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 04:57:42 +03:00
Fix i18n page titles
This commit is contained in:
parent
c91c6970de
commit
5647142f96
@ -6,9 +6,10 @@
|
|||||||
"classification": "Classification Settings - Frigate",
|
"classification": "Classification Settings - Frigate",
|
||||||
"masksAndZones": "Mask and Zone Editor - Frigate",
|
"masksAndZones": "Mask and Zone Editor - Frigate",
|
||||||
"motionTuner": "Motion Tuner - Frigate",
|
"motionTuner": "Motion Tuner - Frigate",
|
||||||
"object": "Object Settings - Frigate",
|
"object": "Debug - Frigate",
|
||||||
"general": "General Settings - Frigate",
|
"general": "General Settings - Frigate",
|
||||||
"frigatePlus": "Frigate+ Settings - Frigate"
|
"frigatePlus": "Frigate+ Settings - Frigate",
|
||||||
|
"notifications": "Notification Settings - Frigate"
|
||||||
},
|
},
|
||||||
"menu": {
|
"menu": {
|
||||||
"ui": "UI",
|
"ui": "UI",
|
||||||
|
|||||||
@ -251,8 +251,8 @@ export default function CameraSettingsView({
|
|||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
document.title = "Camera Settings - Frigate";
|
document.title = t("documentTitle.camera");
|
||||||
}, []);
|
}, [t]);
|
||||||
|
|
||||||
if (!cameraConfig && !selectedCamera) {
|
if (!cameraConfig && !selectedCamera) {
|
||||||
return <ActivityIndicator />;
|
return <ActivityIndicator />;
|
||||||
|
|||||||
@ -299,6 +299,10 @@ export default function NotificationView({
|
|||||||
saveToConfig(values as NotificationSettingsValueType);
|
saveToConfig(values as NotificationSettingsValueType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
document.title = t("documentTitle.notifications");
|
||||||
|
}, [t]);
|
||||||
|
|
||||||
if (!("Notification" in window) || !window.isSecureContext) {
|
if (!("Notification" in window) || !window.isSecureContext) {
|
||||||
return (
|
return (
|
||||||
<div className="scrollbar-container order-last mb-10 mt-2 flex h-full w-full flex-col overflow-y-auto rounded-lg border-[1px] border-secondary-foreground bg-background_alt p-2 md:order-none md:mb-0 md:mr-2 md:mt-0">
|
<div className="scrollbar-container order-last mb-10 mt-2 flex h-full w-full flex-col overflow-y-auto rounded-lg border-[1px] border-secondary-foreground bg-background_alt p-2 md:order-none md:mb-0 md:mr-2 md:mt-0">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user