diff --git a/web/public/locales/en/audio.json b/web/public/locales/en/audio.json
new file mode 100644
index 000000000..38dea5f2c
--- /dev/null
+++ b/web/public/locales/en/audio.json
@@ -0,0 +1,8 @@
+{
+ "crying": "Crying",
+ "laughter": "Laughter",
+ "scream": "Scream",
+ "speech": "Speech",
+ "yell": "Yell",
+ "fire_alarm": "Fire alarm"
+}
diff --git a/web/public/locales/en/common.json b/web/public/locales/en/common.json
new file mode 100644
index 000000000..48ce0edbe
--- /dev/null
+++ b/web/public/locales/en/common.json
@@ -0,0 +1,116 @@
+{
+ "time": {
+ "ago": "{{timeAgo}} ago",
+ "justNow": "Just now",
+ "today": "Today",
+ "yesterday": "Yesterday",
+ "last7": "Last 7 days",
+ "last14": "Last 14 days",
+ "last30": "Last 30 days",
+ "thisWeek": "This Week",
+ "lastWeek": "Last Week",
+ "thisMonth": "This Month",
+ "lastMonth": "Last Month",
+ "pm": "pm",
+ "am": "am",
+ "yr": "{{time}}yr",
+ "year": "{{time}} years",
+ "mo": "{{time}}mo",
+ "month": "{{time}} months",
+ "d": "{{time}}d",
+ "day": "{{time}} days",
+ "h": "{{time}}h",
+ "hour": "{{time}} hours",
+ "m": "{{time}}m",
+ "minute": "{{time}} minutes",
+ "s": "s",
+ "second": "{{time}} seconds",
+ "formattedTimestamp": "%b %-d, %I:%M:%S %p",
+ "formattedTimestamp.24hour": "%b %-d, %H:%M:%S",
+ "formattedTimestampExcludeSeconds": "%b %-d, %I:%M %p",
+ "formattedTimestampExcludeSeconds.24hour": "%b %-d, %H:%M",
+ "formattedTimestampWithYear": "%b %-d %Y, %I:%M %p",
+ "formattedTimestampWithYear.24hour": "%b %-d %Y, %H:%M",
+ "formattedTimestampOnlyMonthAndDay": "%b %-d"
+ },
+ "unit": {
+ "speed": {
+ "mph": "mph",
+ "kph": "kph"
+ }
+ },
+ "button": {
+ "apply": "Apply",
+ "reset": "Reset",
+ "enabled": "Enabled",
+ "save": "Save",
+ "saving": "Saving...",
+ "cancel": "Cancel",
+ "close": "Close",
+ "copy": "Copy",
+ "back": "Back",
+ "history": "History",
+ "fullscreen": "Fullscreen",
+ "exitFullscreen": "Exit Fullscreen",
+ "pictureInPicture": "Picture in Picture",
+ "on": "ON",
+ "off": "OFF",
+ "edit": "Edit",
+ "copyCoordinates": "Copy coordinates",
+ "delete": "Delete",
+ "yes": "Yes",
+ "no": "No",
+ "download": "Download",
+ "info": "Info"
+ },
+ "menu": {
+ "systemMetrics": "System metrics",
+ "configuration": "Configuration",
+ "systemLogs": "System logs",
+ "settings": "Settings",
+ "configurationEditor": "Configuration Editor",
+ "languages": "Languages",
+ "language": {
+ "en": "English",
+ "zhCN": "简体中文(Simplified Chinese)"
+ },
+ "appearance": "Appearance",
+ "darkMode": {
+ "label": "Dark Mode",
+ "light": "Light",
+ "dark": "Dark"
+ },
+ "withSystem": "System",
+ "theme": {
+ "label": "Theme",
+ "blue": "Blue",
+ "green": "Green",
+ "nord": "Nord",
+ "red": "Red",
+ "contrast": "High Contrast",
+ "default": "Default"
+ },
+ "help": "Help",
+ "documentation.label": "Frigate documentation",
+ "documentation": "Documentation",
+ "restart": "Restart Frigate",
+ "live": "Live",
+ "live.allCameras": "All Cameras",
+ "review": "Review",
+ "explore": "Explore",
+ "export": "Export",
+ "uiPlayground": "UI Playground",
+ "faceLibrary": "Face Library",
+ "user": {
+ "current": "Current User: {{user}}",
+ "anonymous": "anonymous",
+ "logout": "Logout"
+ }
+ },
+ "toast": {
+ "save": {
+ "error": "Failed to save config changes: {{errorMessage}}",
+ "error.noMessage": "Failed to save config changes"
+ }
+ }
+}
diff --git a/web/public/locales/en/components/camera.json b/web/public/locales/en/components/camera.json
new file mode 100644
index 000000000..ff511f914
--- /dev/null
+++ b/web/public/locales/en/components/camera.json
@@ -0,0 +1,61 @@
+{
+ "group": {
+ "label": "Camera Groups",
+ "add": "Add camera groups",
+ "edit": "Edit camera groups",
+ "delete": {
+ "confirm": "Confirm Delete",
+ "confirm.desc": "Are you sure you want to delete the camera group {{name}} ?"
+ },
+ "name": {
+ "label": "Name",
+ "placeholder": "Enter a name...",
+ "error": {
+ "mustLeastCharacters": "Camera group name must be at least 2 characters.",
+ "exists": "Camera group name already exists.",
+ "nameMustNotPeriod": "Camera group name must not contain a period.",
+ "invalid": "Invalid camera group name."
+ }
+ },
+ "cameras": {
+ "label": "Cameras",
+ "desc": "Select cameras for this group."
+ },
+ "icon": "Icon",
+ "success": "Camera group ({{name}}) has been saved.",
+ "camera": {
+ "setting": {
+ "title": "{{cameraName}} Streaming Settings",
+ "desc": "Change the live streaming options for this camera group's dashboard. These settings are device/browser-specific. ",
+ "audioIsAvailable": "Audio is available for this stream",
+ "audioIsUnavailable": "Audio is available for this stream",
+ "audio": {
+ "tips": "Audio must be output from your camera and configured in go2rtc for this stream.",
+ "tips.document": "Read the documentation "
+ },
+ "streamMethod": {
+ "label": "Streaming Method",
+ "method": {
+ "noStreaming": {
+ "label": "No Streaming",
+ "desc": "Camera images will only update once per minute and no live streaming will occur."
+ },
+ "smartStreaming": {
+ "label": "Smart Streaming (recommended)",
+ "desc": "Smart streaming will update your camera image once per minute when no detectable activity is occurring to conserve bandwidth and resources. When activity is detected, the image seamlessly switches to a live stream."
+ },
+ "continuousStreaming": {
+ "label": "Continuous Streaming",
+ "desc": "Camera image will always be a live stream when visible on the dashboard, even if no activity is being detected.",
+ "desc.warning": "Continuous streaming may cause high bandwidth usage and performance issues. Use with caution."
+ }
+ }
+ },
+ "compatibilityMode": {
+ "label": "Compatibility mode",
+ "desc": "Enable this option only if your camera's live stream is displaying color artifacts and has a diagonal line on the right side of the image."
+ }
+ }
+ }
+ }
+}
diff --git a/web/public/locales/en/components/dialog.json b/web/public/locales/en/components/dialog.json
new file mode 100644
index 000000000..07dbc31ff
--- /dev/null
+++ b/web/public/locales/en/components/dialog.json
@@ -0,0 +1,58 @@
+{
+ "restart": {
+ "title": "Are you sure you want to restart Frigate?",
+ "button": "Restart",
+ "restarting": {
+ "title": "Frigate is Restarting",
+ "content": "This page will reload in {{countdown}} seconds.",
+ "button": "Force Reload Now"
+ }
+ },
+ "export": {
+ "time": {
+ "fromTimeline": "Select from Timeline",
+ "lastHour_one": "Last Hour",
+ "lastHour_other": "Last {{count}} Hours",
+ "custom": "Custom"
+ },
+ "name": {
+ "placeholder": "Name the Export"
+ },
+ "select": "Select",
+ "export": "Export",
+ "toast": {
+ "success": "Successfully started export. View the file in the /exports folder.",
+ "error": {
+ "failed": "Failed to start export: {{error}}",
+ "endTimeMustAfterStartTime": "End time must be after start time",
+ "noVaildTimeSelected": "No valid time range selected"
+ }
+ },
+ "fromTimeline": {
+ "saveExport": "Save Export",
+ "previewExport": "Preview Export"
+ }
+ },
+ "streaming": {
+ "label": "Stream",
+ "restreaming": {
+ "NotEnabled": "Restreaming is not enabled for this camera.",
+ "desc": "Set up go2rtc for additional live view options and audio for this camera.",
+ "desc.readTheDocumentation": "Read the documentation "
+ },
+ "showStats": {
+ "label": "Show stream stats",
+ "desc": "Enable this option to show stream statistics as an overlay on the camera feed."
+ },
+ "debugView": "Debug View"
+ },
+ "search": {
+ "saveSearch": {
+ "label": "Save Search",
+ "desc": "Provide a name for this saved search.",
+ "placeholder": "Enter a name for your search",
+ "overwrite": "{{searchName}} already exists. Saving will overwrite the existing value.",
+ "success": "Search ({{searchName}}) has been saved."
+ }
+ }
+}
diff --git a/web/public/locales/en/components/filter.json b/web/public/locales/en/components/filter.json
new file mode 100644
index 000000000..e33718ad8
--- /dev/null
+++ b/web/public/locales/en/components/filter.json
@@ -0,0 +1,51 @@
+{
+ "label": "Filter",
+ "labels": {
+ "all": "All Labels",
+ "all.short": "Labels",
+ "count": "{{count}} Labels"
+ },
+ "zones": {
+ "all": "All Zones",
+ "all.short": "Zones"
+ },
+ "dates": {
+ "all": "All Dates",
+ "all.short": "Dates"
+ },
+ "more": "More Filters",
+ "timeRange": "Time Range",
+ "zones.label": "Zones",
+ "subLabels": {
+ "label": "Sub Labels",
+ "all": "All Sub Labels"
+ },
+ "score": "Score",
+ "estimatedSpeed": "Estimated Speed ({{unit}})",
+ "features": {
+ "label": "Features",
+ "hasSnapshot": "Has a snapshot",
+ "hasVideoClip": "Has a video clip",
+ "submittedToFrigatePlus": {
+ "label": "Submitted to Frigate+",
+ "tips": "You must first filter on tracked objects that have a snapshot. Tracked objects without a snapshot cannot be submitted to Frigate+."
+ }
+ },
+ "sort": {
+ "label": "Sort",
+ "dateAsc": "Date (Ascending)",
+ "dateDesc": "Date (Descending)",
+ "scoreAsc": "Object Score (Ascending)",
+ "scoreDesc": "Object Score (Descending)",
+ "speedAsc": "Estimated Speed (Ascending)",
+ "speedDesc": "Estimated Speed (Descending)",
+ "relevance": "Relevance"
+ },
+ "cameras": {
+ "all": "All Cameras",
+ "all.short": "Cameras"
+ },
+ "review": {
+ "showReviewed": "Show Reviewed"
+ }
+}
diff --git a/web/public/locales/en/components/icons.json b/web/public/locales/en/components/icons.json
new file mode 100644
index 000000000..22ef67e97
--- /dev/null
+++ b/web/public/locales/en/components/icons.json
@@ -0,0 +1,8 @@
+{
+ "iconPicker": {
+ "selectIcon": "Select an icon",
+ "search": {
+ "placeholder": "Search for an icon..."
+ }
+ }
+}
\ No newline at end of file
diff --git a/web/public/locales/en/components/player.json b/web/public/locales/en/components/player.json
new file mode 100644
index 000000000..90b197826
--- /dev/null
+++ b/web/public/locales/en/components/player.json
@@ -0,0 +1,5 @@
+{
+ "noRecordingsFoundForThisTime": "No recordings found for this time",
+ "noPreviewFound": "No Preview Found",
+ "noPreviewFoundFor": "No Preview Found for {{cameraName}}"
+}
\ No newline at end of file
diff --git a/web/public/locales/en/objects.json b/web/public/locales/en/objects.json
new file mode 100644
index 000000000..01e6d428a
--- /dev/null
+++ b/web/public/locales/en/objects.json
@@ -0,0 +1,104 @@
+{
+ "person": "Person",
+ "bicycle": "Bicycle",
+ "car": "Car",
+ "motorcycle": "Motorcycle",
+ "airplane": "Airplane",
+ "bus": "Bus",
+ "train": "Train",
+ "boat": "Boat",
+ "traffic_light": "Traffic Light",
+ "fire_hydrant": "Fire Hydrant",
+ "street_sign": "Street Sign",
+ "stop_sign": "Stop Sign",
+ "parking_meter": "Parking Meter",
+ "bench": "Bench",
+ "bird": "Bird",
+ "cat": "Cat",
+ "dog": "Dog",
+ "horse": "Horse",
+ "sheep": "Sheep",
+ "cow": "Cow",
+ "elephant": "Elephant",
+ "bear": "Bear",
+ "zebra": "Zebra",
+ "giraffe": "Giraffe",
+ "hat": "Hat",
+ "backpack": "Backpack",
+ "umbrella": "Umbrella",
+ "shoe": "Shoe",
+ "eye_glasses": "Eye Glasses",
+ "handbag": "Handbag",
+ "tie": "Tie",
+ "suitcase": "Suitcase",
+ "frisbee": "Frisbee",
+ "skis": "Skis",
+ "snowboard": "Snowboard",
+ "sports_ball": "Sports Ball",
+ "kite": "Kite",
+ "baseball_bat": "Baseball Bat",
+ "baseball_glove": "Baseball Glove",
+ "skateboard": "Skateboard",
+ "surfboard": "Surfboard",
+ "tennis_racket": "Tennis Racket",
+ "bottle": "Bottle",
+ "plate": "Plate",
+ "wine_glass": "Wine Glass",
+ "cup": "Cup",
+ "fork": "Fork",
+ "knife": "Knife",
+ "spoon": "Spoon",
+ "bowl": "Bowl",
+ "banana": "Banana",
+ "apple": "Apple",
+ "sandwich": "Sandwich",
+ "orange": "Orange",
+ "broccoli": "Broccoli",
+ "carrot": "Carrot",
+ "hot_dog": "Hot Dog",
+ "pizza": "Pizza",
+ "donut": "Donut",
+ "cake": "Cake",
+ "chair": "Chair",
+ "couch": "Couch",
+ "potted_plant": "Potted Plant",
+ "bed": "Bed",
+ "mirror": "Mirror",
+ "dining_table": "Dining Table",
+ "window": "Window",
+ "desk": "Desk",
+ "toilet": "Toilet",
+ "door": "Door",
+ "tv": "TV",
+ "laptop": "Laptop",
+ "mouse": "Mouse",
+ "remote": "Remote",
+ "keyboard": "Keyboard",
+ "cell_phone": "Cell Phone",
+ "microwave": "Microwave",
+ "oven": "Oven",
+ "toaster": "Toaster",
+ "sink": "Sink",
+ "refrigerator": "Refrigerator",
+ "blender": "Blender",
+ "book": "Book",
+ "clock": "Clock",
+ "vase": "Vase",
+ "scissors": "Scissors",
+ "teddy_bear": "Teddy Bear",
+ "hair_dryer": "Hair Dryer",
+ "toothbrush": "Toothbrush",
+ "hair_brush": "Hair Brush",
+ "vehicle": "Vehicle",
+ "squirrel": "Squirrel",
+ "deer": "Deer",
+ "animal": "Animal",
+ "bark": "Bark",
+ "fox": "Fox",
+ "goat": "Goat",
+ "rabbit": "Rabbit",
+ "raccoon": "Raccoon",
+ "robot_lawnmower": "Robot Lawnmower",
+ "waste_bin": "Waste bin",
+ "on_demand": "On_demand"
+}
diff --git a/web/public/locales/en/views/configEditor.json b/web/public/locales/en/views/configEditor.json
new file mode 100644
index 000000000..417448147
--- /dev/null
+++ b/web/public/locales/en/views/configEditor.json
@@ -0,0 +1,6 @@
+{
+ "configEditor": "Config Editor",
+ "copyConfig": "Copy Config",
+ "saveAndRestart": "Save & Restart",
+ "saveOnly": "Save Only"
+}
\ No newline at end of file
diff --git a/web/public/locales/en/views/events.json b/web/public/locales/en/views/events.json
new file mode 100644
index 000000000..85a8bdde2
--- /dev/null
+++ b/web/public/locales/en/views/events.json
@@ -0,0 +1,26 @@
+{
+ "alerts": "Alerts",
+ "detections": "Detections",
+ "motion": {
+ "label": "Motion",
+ "only": "Motion only"
+ },
+ "allCameras": "All Cameras",
+ "empty": {
+ "alert": "There are no alerts to review",
+ "detection": "There are no detections to review",
+ "motion": "No motion data found"
+ },
+ "timeline": "Timeline",
+ "events": {
+ "label": "Events",
+ "noFoundForTimePeriod": "No events found for this time period."
+ },
+ "documentTitle": "Review - Frigate",
+ "recordings": {
+ "documentTitle": "Recordings - Frigate"
+ },
+ "calendarFilter": {
+ "last24Hours": "Last 24 Hours"
+ }
+}
diff --git a/web/public/locales/en/views/explore.json b/web/public/locales/en/views/explore.json
new file mode 100644
index 000000000..41a325118
--- /dev/null
+++ b/web/public/locales/en/views/explore.json
@@ -0,0 +1,63 @@
+{
+ "trackedObjectDetails": "Tracked Object Details",
+ "type": {
+ "details": "details",
+ "snapshot": "snapshot",
+ "video": "video",
+ "object_lifecycle": "object lifecycle"
+ },
+ "details": {
+ "label": "Label",
+ "editSubLable": "Edit sub label",
+ "editSubLable.desc": "Enter a new sub label for this {{label}}",
+ "editSubLable.desc.noLabel": "Enter a new sub label for this tracked object",
+ "topScore": "Top Score",
+ "topScore.info": "The top score is the highest median score for the tracked object, so this may differ from the score shown on the search result thumbnail.",
+ "estimatedSpeed": "Estimated Speed",
+ "camera": "Camera",
+ "timestamp": "Timestamp",
+ "button": {
+ "findSimilar": "Find Similar"
+ },
+ "description": {
+ "label": "Description",
+ "placeholder": "Description of the tracked object",
+ "aiTips": "Frigate will not request a description from your Generative AI provider until the tracked object's lifecycle has ended."
+ },
+ "button.regenerate": "Regenerate",
+ "regenerateFromSnapshot": "Regenerate from Snapshot",
+ "regenerateFromThumbnails": "Regenerate from Thumbnails",
+ "tips": {
+ "descriptionSaved": "Successfully saved description",
+ "saveDescriptionFailed": "Failed to update the description"
+ }
+ },
+ "itemMenu": {
+ "downloadVideo": {
+ "label": "Download video",
+ "aria": "Download video"
+ },
+ "downloadSnapshot": {
+ "label": "Download snapshot",
+ "aria": "Download snapshot"
+ },
+ "viewObjectLifecycle": {
+ "label": "View object lifecycle",
+ "aria": "Show the object lifecycle"
+ },
+ "findSimilar": {
+ "label": "Find similar",
+ "aria": "Find similar tracked objects"
+ },
+ "submitToPlus": {
+ "label": "Submit to Frigate+",
+ "aria": "Submit to Frigate Plus"
+ }
+ },
+ "dialog": {
+ "confirmDelete": {
+ "title": "Confirm Delete",
+ "desc": "Deleting this tracked object removes the snapshot, any saved embeddings, and any associated object lifecycle entries. Recorded footage of this tracked object in History view will NOT be deleted. Are you sure you want to proceed?"
+ }
+ }
+}
diff --git a/web/public/locales/en/views/exports.json b/web/public/locales/en/views/exports.json
new file mode 100644
index 000000000..bf2b228af
--- /dev/null
+++ b/web/public/locales/en/views/exports.json
@@ -0,0 +1,7 @@
+{
+ "documentTitle": "Export - Frigate",
+ "search": "Search",
+ "noExports": "No exports found",
+ "deleteExport": "Delete Export",
+ "deleteExport.desc": "Are you sure you want to delete {{exportName}}?"
+}
\ No newline at end of file
diff --git a/web/public/locales/en/views/live.json b/web/public/locales/en/views/live.json
new file mode 100644
index 000000000..e1ebaa159
--- /dev/null
+++ b/web/public/locales/en/views/live.json
@@ -0,0 +1,70 @@
+{
+ "documentTitle": "Live - Frigate",
+ "documentTitle.withCamera": "{{camera}} - Live - Frigate",
+ "twoWayTalk": {
+ "enable": "Enable Two Way Talk",
+ "disable": "Disable Two Way Talk"
+ },
+ "cameraAudio": {
+ "enable": "Enable Camera Audio",
+ "disable": "Disable Camera Audio"
+ },
+ "ptz": {
+ "move": {
+ "left": {
+ "label": "Move PTZ camera to the left"
+ },
+ "up": {
+ "label": "Move PTZ camera up"
+ },
+ "down": {
+ "label": "Move PTZ camera down"
+ },
+ "right": {
+ "label": "Move PTZ camera to the right"
+ }
+ },
+ "zoom": {
+ "in": {
+ "label": "Zoom PTZ camera in"
+ },
+ "out": {
+ "label": "Zoom PTZ camera out"
+ }
+ },
+ "frame": {
+ "center": {
+ "label": "Click in the frame to center the PTZ camera"
+ }
+ }
+ },
+ "detect": {
+ "enable": "Enable Detect",
+ "disable": "Disable Detect"
+ },
+ "recording": {
+ "enable": "Enable Recording",
+ "disable": "Disable Recording"
+ },
+ "snapshots": {
+ "enable": "Enable Snapshots",
+ "disable": "Disable Snapshots"
+ },
+ "audioDetect": {
+ "enable": "Enable Audio Detect",
+ "disable": "Disable Audio Detect"
+ },
+ "autotracking": {
+ "enable": "Enable Autotracking",
+ "disable": "Disable Autotracking"
+ },
+ "manualRecording": {
+ "start": "Start on-demand recording",
+ "started": "Started manual on-demand recording.",
+ "failedToStart": "Failed to start manual on-demand recording.",
+ "recordDisabledTips": "Since recording is disabled or restricted in the config for this camera, only a snapshot will be saved.",
+ "end": "End on-demand recording",
+ "ended": "Ended manual on-demand recording.",
+ "failedToEnd": "Failed to end manual on-demand recording."
+ }
+}
diff --git a/web/public/locales/en/views/settings.json b/web/public/locales/en/views/settings.json
new file mode 100644
index 000000000..dacde1ffa
--- /dev/null
+++ b/web/public/locales/en/views/settings.json
@@ -0,0 +1,258 @@
+{
+ "menu": {
+ "uiSettings": "UI Settings",
+ "exploreSettings": "Explore Settings",
+ "cameraSettings": "Camera Settings",
+ "masksAndZones": "Masks / Zones",
+ "motionTuner": "Motion Tuner",
+ "debug": "Debug",
+ "users": "Users",
+ "notifications": "Notifications"
+ },
+ "general": {
+ "title": "General Settings",
+ "liveDashboard": {
+ "title": "Live Dashboard",
+ "automaticLiveView": {
+ "label": "Automatic Live View",
+ "desc": "Automatically switch to a camera's live view when activity is detected. Disabling this option causes static camera images on the Live dashboard to only update once per minute."
+ },
+ "playAlertVideos": {
+ "label": "Play Alert Videos",
+ "desc": "By default, recent alerts on the Live dashboard play as small looping videos. Disable this option to only show a static image of recent alerts on this device/browser."
+ }
+ },
+ "storedLayouts": {
+ "title": "Stored Layouts",
+ "desc": "The layout of cameras in a camera group can be dragged/resized. The positions are stored in your browser's local storage.",
+ "clearAll": "Clear All Layouts"
+ },
+ "cameraGroupStreaming": {
+ "title": "Camera Group Streaming Settings",
+ "desc": "Streaming settings for each camera group are stored in your browser's local storage.",
+ "clearAll": "Clear All Streaming Settings"
+ },
+ "recordingsViewer": {
+ "title": "Recordings Viewer",
+ "defaultPlaybackRate": {
+ "label": "Default Playback Rate",
+ "desc": "Default playback rate for recordings playback."
+ }
+ },
+ "calendar": {
+ "title": "Calendar",
+ "firstWeekday": {
+ "label": "First Weekday",
+ "desc": "The day that the weeks of the review calendar begin on.",
+ "sunday": "Sunday",
+ "monday": "Monday"
+ }
+ }
+ },
+ "explore": {
+ "title": "Explore Settings",
+ "semanticSearch": {
+ "title": "Semantic Search",
+ "desc": "Semantic Search in Frigate allows you to find tracked objects within your review items using either the image itself, a user-defined text description, or an automatically generated one.",
+ "readTheDocumentation": "Read the Documentation",
+ "reindexOnStartup": {
+ "label": "Re-Index On Startup",
+ "desc": "Re-indexing will reprocess all thumbnails and descriptions (if enabled) and apply the embeddings on each startup. Don't forget to disable the option after restarting! "
+ },
+ "modelSize": {
+ "label": "Model Size",
+ "desc": "The size of the model used for semantic search embeddings.",
+ "small": "small",
+ "large": "large",
+ "small.desc": "Using small employs a quantized version of the model that uses less RAM and runs faster on CPU with a very negligible difference in embedding quality.",
+ "large.desc": "Using large employs the full Jina model and will automatically run on the GPU if applicable."
+ }
+ },
+ "toast": {
+ "success": "Explore settings have been saved."
+ }
+ },
+ "camera": {
+ "title": "Camera Settings",
+ "streams": {
+ "title": "Streams",
+ "desc": "Disabling a camera completely stops Frigate's processing of this camera's streams. Detection, recording, and debugging will be unavailable. Note: This does not disable go2rtc restreams. "
+ },
+ "review": {
+ "title": "Review",
+ "desc": "Enable/disable alerts and detections for this camera. When disabled, no new review items will be generated.",
+ "alerts": "Alerts ",
+ "detections": "Detections "
+ },
+ "reviewClassification": {
+ "title": "Review Classification",
+ "desc": "Frigate categorizes review items as Alerts and Detections. By default, all person and car objects are considered Alerts. You can refine categorization of your review items by configuring required zones for them.",
+ "readTheDocumentation": "Read the Documentation",
+ "noDefinedZones": "No zones are defined for this camera.",
+ "objectAlertsTips": "All {{alertsLabels}} objects on {{cameraName}} will be shown as Alerts.",
+ "zoneObjectAlertsTips": "All {{alertsLabels}} objects detected in {{zone}} on {{cameraName}} will be shown as Alerts.",
+ "selectAlertsZones": "Select zones for Alerts",
+ "selectDetectionsZones": "Select zones for Detections",
+ "limitDetections": "Limit detections to specific zones",
+ "toast": {
+ "success": "Review classification configuration has been saved. Restart Frigate to apply changes."
+ }
+ }
+ },
+ "masksAndZones": {
+ "filter": {
+ "all": "All Masks and Zones"
+ },
+ "polygonDrawing": {
+ "error": {
+ "mustBeFinished": "多边形绘制必须完成闭合后才能保存。"
+ }
+ },
+ "zones": {
+ "label": "Zones",
+ "documentTitle": "Edit Zone - Frigate",
+ "desc": "Zones allow you to define a specific area of the frame so you can determine whether or not an object is within a particular area.",
+ "desc.documentation": "Documentation",
+ "add": "Add Zone",
+ "edit": "Edit Zone",
+ "point_one": "{{count}} point",
+ "point_other": "{{count}} points",
+ "clickDrawPolygon": "Click to draw a polygon on the image.",
+ "name": "Name",
+ "name.inputPlaceHolder": "Enter a name...",
+ "name.tips": "Name must be at least 2 characters and must not be the name of a camera or another zone.",
+ "inertia": "Inertia",
+ "inertia.desc": "Specifies how many frames that an object must be in a zone before they are considered in the zone. Default: 3 ",
+ "loiteringTime": "Loitering Time",
+ "loiteringTime.desc": "Sets a minimum amount of time in seconds that the object must be in the zone for it to activate. Default: 0 ",
+ "objects": "Objects",
+ "objects.desc": "List of objects that apply to this zone.",
+ "allObjects": "All Objects",
+ "speedEstimation": "Speed Estimation",
+ "speedEstimation.desc": "Enable speed estimation for objects in this zone. The zone must have exactly 4 points.",
+ "speedThreshold": "Speed Threshold ({{unit}})",
+ "speedThreshold.desc": "Specifies a minimum speed for objects to be considered in this zone.",
+ "speedThreshold.toast.error.pointLengthError": "Speed estimation has been disabled for this zone. Zones with speed estimation must have exactly 4 points.",
+ "speedThreshold.toast.error.loiteringTimeError": "Zones with loitering times greater than 0 should not be used with speed estimation.",
+ "toast.success": "Zone ({{zoneName}}) has been saved. Restart Frigate to apply changes."
+ },
+ "motionMasks": {
+ "label": "Motion Mask",
+ "documentTitle": "Edit Motion Mask - Frigate",
+ "desc": "Motion masks are used to prevent unwanted types of motion from triggering detection. Over masking will make it more difficult for objects to be tracked.",
+ "desc.documentation": "Documentation",
+ "add": "New Motion Mask",
+ "edit": "Edit Motion Mask",
+ "context": "Motion masks are used to prevent unwanted types of motion from triggering detection (example: tree branches, camera timestamps). Motion masks should be used very sparingly , over-masking will make it more difficult for objects to be tracked.",
+ "context.documentation": "Read the documentation",
+ "point_one": "{{count}} point",
+ "point_other": "{{count}} points",
+ "clickDrawPolygon": "Click to draw a polygon on the image.",
+ "polygonAreaTooLarge": "The motion mask is covering {{polygonArea}}% of the camera frame. Large motion masks are not recommended.",
+ "polygonAreaTooLarge.tips": "Motion masks do not prevent objects from being detected. You should use a required zone instead.",
+ "polygonAreaTooLarge.documentation": "Read the documentation",
+ "toast.success": "{{polygonName}} has been saved. Restart Frigate to apply changes.",
+ "toast.success.noName": "Motion Mask has been saved. Restart Frigate to apply changes."
+ },
+ "objectMasks": {
+ "label": "Object Masks",
+ "documentTitle": "Edit Object Mask - Frigate",
+ "desc": "Object filter masks are used to filter out false positives for a given object type based on location.",
+ "documentation": "Documentation",
+ "add": "Add Object Mask",
+ "edit": "Edit Object Mask",
+ "context": "Object filter masks are used to filter out false positives for a given object type based on location.",
+ "point_one": "{{count}} point",
+ "point_other": "{{count}} points",
+ "clickDrawPolygon": "Click to draw a polygon on the image.",
+ "objects": "Objects",
+ "objects.desc": "The object type that that applies to this object mask.",
+ "objects.allObjectTypes": "All object types",
+ "toast.success": "{{polygonName}} has been saved. Restart Frigate to apply changes.",
+ "toast.success.noName": "Object Mask has been saved. Restart Frigate to apply changes."
+ }
+ },
+ "motionDetectionTuner": {
+ "title": "Motion Detection Tuner",
+ "desc": "Frigate uses motion detection as a first line check to see if there is anything happening in the frame worth checking with object detection.",
+ "desc.documentation": "Read the Motion Tuning Guide",
+ "Threshold": "Threshold",
+ "Threshold.desc": "The threshold value dictates how much of a change in a pixel's luminance is required to be considered motion. Default: 30 ",
+ "contourArea": "Contour Area",
+ "contourArea.desc": "The contour area value is used to decide which groups of changed pixels qualify as motion. Default: 10 ",
+ "improveContrast": "Improve Contrast",
+ "improveContrast.desc": "Improve contrast for darker scenes. Default: ON ",
+ "toast.success": "Motion settings have been saved.",
+ },
+ "debug": {
+ "title": "Debug",
+ "detectorDesc": "Frigate uses your detectors ({{detectors}}) to detect objects in your camera's video stream.",
+ "desc": "Debugging view shows a real-time view of tracked objects and their statistics. The object list shows a time-delayed summary of detected objects.",
+ "debugging": "Debugging",
+ "objectList": "Object List",
+ "noObjects": "No objects",
+ "boundingBoxes": {
+ "title": "Bounding boxes",
+ "desc": "Show bounding boxes around tracked objects",
+ "colors": {
+ "label": "Object Bounding Box Colors",
+ "info": "
At startup, different colors will be assigned to each object label A dark blue thin line indicates that object is not detected at this current point in time A gray thin line indicates that object is detected as being stationary A thick line indicates that object is the subject of autotracking (when enabled) "
+ }
+ },
+ "timestamp": {
+ "title": "Timestamp",
+ "desc": "Overlay a timestamp on the image"
+ },
+ "zones": {
+ "title": "Zones",
+ "desc": "Show an outline of any defined zones"
+ },
+ "mask": {
+ "title": "Motion masks",
+ "desc": "Show motion mask polygons"
+ },
+ "motion": {
+ "title": "Motion boxes",
+ "desc": "Show boxes around areas where motion is detected",
+ "tips": "Motion Boxes
Red boxes will be overlaid on areas of the frame where motion is currently being detected
"
+ },
+ "regions": {
+ "title": "Regions",
+ "desc": "Show a box of the region of interest sent to the object detector",
+ "tips": "Region Boxes
Bright green boxes will be overlaid on areas of interest in the frame that are being sent to the object detector.
"
+ },
+ "objectShapeFilterDrawing": {
+ "title": "Object Shape Filter Drawing",
+ "desc": "Draw a rectangle on the image to view area and ratio details",
+ "tips": "Enable this option to draw a rectangle on the camera image to show its area and ratio. These values can then be used to set object shape filter parameters in your config.",
+ "document": "Read the documentation "
+ }
+ },
+ "users": {
+ "title": "Users",
+ "addUser": "Add User",
+ "updatePassword": "Update Password",
+ "toast": {
+ "error": {
+ "setPasswordFailed": "Error setting password",
+ "createUserFailed": "Error creating user. Check server logs.",
+ "deleteUserFailed": "Error deleting user. Check server logs."
+ }
+ },
+ "dialog": {
+ "createUser": {
+ "title": "Create User",
+ "user": "user",
+ "password": "password",
+ "usernameOnlyInclude": "Username may only include letters, numbers, . or _"
+ },
+ "deleteUser": {
+ "title": "Delete User",
+ "warn": "Are you sure?"
+ },
+ "setPassword": {
+ "title": "Set Password"
+ }
+ }
+ }
+}
diff --git a/web/public/locales/en/views/system.json b/web/public/locales/en/views/system.json
new file mode 100644
index 000000000..882b5ee05
--- /dev/null
+++ b/web/public/locales/en/views/system.json
@@ -0,0 +1,74 @@
+{
+ "title": "System",
+ "metrics": "System metrics",
+ "logs": "System logs",
+ "general": {
+ "title": "General",
+ "detector": {
+ "title": "Detectors",
+ "inferenceSpeed": "Detector Inference Speed",
+ "cpuUsage": "Detector CPU Usage",
+ "memoryUsage": "Detector Memory Usage"
+ },
+ "hardwareInfo": {
+ "title": "Hardware Info",
+ "gpuUsage": "GPU Usage",
+ "gpuMemory": "GPU Memory",
+ "gpuEncoder": "GPU Encoder",
+ "gpuDecoder": "GPU Decoder"
+ },
+ "otherProcesses": {
+ "title": "Other Processes",
+ "processCpuUsage": "Process CPU Usage",
+ "processMemoryUsage": "Process Memory Usage"
+ }
+ },
+ "storage": {
+ "title": "Storage",
+ "overview": "Overview",
+ "recordings": {
+ "title": "Recordings",
+ "tips": "This value represents the total storage used by the recordings in Frigate's database. Frigate does not track storage usage for all files on your disk."
+ },
+ "cameraStorage": {
+ "title": "Camera Storage",
+ "camera": "Camera",
+ "unused": "Unused",
+ "storageUsed": "Storage Used",
+ "percentageOfTotalUsed": "Percentage of Total Used",
+ "bandwidth": "Bandwidth",
+ "unused.tips": "This value may not accurately represent the free space available to Frigate if you have other files stored on your drive beyond Frigate's recordings. Frigate does not track storage usage outside of its recordings."
+ }
+ },
+ "cameras": {
+ "title": "Cameras",
+ "overview": "Overview",
+ "info": {
+ "cameraProbeInfo": "{{camera}} Camera Probe Info",
+ "streamDataFromFFPROBE": "Stream data is obtained with ffprobe.",
+ "fetching": "Fetching Camera Data",
+ "stream": "Stream {{idx}}",
+ "video": "Video:",
+ "codec": "Codec:",
+ "resolution": "Resolution:",
+ "fps": "FPS:",
+ "unknown": "Unknown",
+ "audio": "Audio:",
+ "error": "Error: {{error}}"
+ },
+ "framesAndDetections": "Frames / Detections",
+ "label": {
+ "camera": "camera",
+ "detect": "detect",
+ "skipped": "skipped",
+ "ffmpeg": "ffmpeg",
+ "capture": "capture"
+ }
+ },
+ "lastRefreshed": "Last refreshed: ",
+ "stats": {
+ "ffmpegHighCpuUsage": "{{camera}} has high FFMPEG CPU usage ({{ffmpegAvg}}%)",
+ "detectHighCpuUsage": "{{camera}} has high detect CPU usage ({{detectAvg}}%)",
+ "healthy": "System is healthy"
+ }
+}
diff --git a/web/public/locales/zh-CN/audio.json b/web/public/locales/zh-CN/audio.json
new file mode 100644
index 000000000..f9438a747
--- /dev/null
+++ b/web/public/locales/zh-CN/audio.json
@@ -0,0 +1,8 @@
+{
+ "crying": "哭泣",
+ "laughter": "笑声",
+ "scream": "尖叫",
+ "speech": "谈话",
+ "yell": "大喊",
+ "fire_alarm": "火灾警报器"
+}
diff --git a/web/public/locales/zh-CN/common.json b/web/public/locales/zh-CN/common.json
new file mode 100644
index 000000000..2f8b5f602
--- /dev/null
+++ b/web/public/locales/zh-CN/common.json
@@ -0,0 +1,116 @@
+{
+ "time": {
+ "ago": "{{timeAgo}} 前",
+ "justNow": "刚才",
+ "today": "今天",
+ "yesterday": "昨天",
+ "last7": "最后 7 天",
+ "last14": "最后 14 天",
+ "last30": "最后 30 天",
+ "thisWeek": "本周",
+ "lastWeek": "上个周",
+ "thisMonth": "本月",
+ "lastMonth": "上个月",
+ "pm": "上午",
+ "am": "下午",
+ "yr": "{{time}}年",
+ "year": "{{time}}年",
+ "mo": "{{time}}月",
+ "month": "{{time}}月",
+ "d": "{{time}}天",
+ "day": "{{time}}天",
+ "h": "{{time}}小时",
+ "hour": "{{time}}小时",
+ "m": "{{time}}分钟",
+ "minute": "{{time}}分钟",
+ "s": "{{time}}秒",
+ "second": "{{time}}秒",
+ "formattedTimestamp": "%m月%-d日 %I:%M:%S %p",
+ "formattedTimestamp.24hour": "%m月%-d日 %H:%M:%S",
+ "formattedTimestampExcludeSeconds": "%m月%-d日 %I:%M %p",
+ "formattedTimestampExcludeSeconds.24hour": "%m月%-d日 %H:%M",
+ "formattedTimestampWithYear": "%Y年%m月%-d日 %I:%M:%S %p",
+ "formattedTimestampWithYear.24hour": "%Y年%m月%-d日 %H:%M",
+ "formattedTimestampOnlyMonthAndDay": "%m月%-d日"
+ },
+ "unit": {
+ "speed": {
+ "mph": "公里/小时",
+ "kph": "英里/小时"
+ }
+ },
+ "button": {
+ "apply": "应用",
+ "reset": "重置",
+ "enabled": "启用",
+ "save": "保存",
+ "saving": "保存中……",
+ "cancel": "取消",
+ "close": "关闭",
+ "copy": "复制",
+ "back": "返回",
+ "history": "历史",
+ "fullscreen": "全屏",
+ "exitFullscreen": "全屏",
+ "pictureInPicture": "画中画",
+ "on": "开",
+ "off": "关",
+ "edit": "编辑",
+ "copyCoordinates": "复制坐标",
+ "delete": "删除",
+ "yes": "是",
+ "no": "否",
+ "download": "下载",
+ "info": "信息"
+ },
+ "menu": {
+ "systemMetrics": "系统信息",
+ "configuration": "配置",
+ "systemLogs": "系统日志",
+ "settings": "设置",
+ "configurationEditor": "配置编辑器",
+ "languages": "languages / 语言",
+ "language": {
+ "en": "English",
+ "zhCN": "简体中文"
+ },
+ "appearance": "外观",
+ "darkMode": {
+ "label": "深色模式",
+ "light": "浅色",
+ "dark": "深色"
+ },
+ "withSystem": "跟随系统",
+ "theme": {
+ "label": "主题",
+ "blue": "蓝色",
+ "green": "绿色",
+ "nord": "Nord",
+ "red": "红色",
+ "contrast": "高对比度",
+ "default": "默认"
+ },
+ "help": "帮助",
+ "documentation.label": "Frigate 的官方文档",
+ "documentation": "文档",
+ "live": "实时监控",
+ "live.allCameras": "所有摄像头",
+ "review": "回放",
+ "explore": "探测",
+ "export": "导出",
+ "uiPlayground": "UI Playground",
+ "faceLibrary": "人脸管理",
+ "user": {
+ "current": "当前用户:{{user}}",
+ "anonymous": "匿名",
+ "logout": "登出"
+ },
+ "restart": "重启 Frigate"
+ },
+ "toast": {
+ "save": {
+ "error": "保存配置信息失败: {{errorMessage}}",
+ "error.noMessage": "保存配置信息失败"
+ }
+ }
+}
diff --git a/web/public/locales/zh-CN/components/camera.json b/web/public/locales/zh-CN/components/camera.json
new file mode 100644
index 000000000..756c8f79d
--- /dev/null
+++ b/web/public/locales/zh-CN/components/camera.json
@@ -0,0 +1,61 @@
+{
+ "group": {
+ "label": "摄像头组",
+ "add": "添加摄像头组",
+ "edit": "编辑摄像头组",
+ "delete": {
+ "confirm": "确认删除",
+ "confirm.desc": "你确定要删除摄像头组 {{name}} 吗?"
+ },
+ "name": {
+ "label": "名称",
+ "placeholder": "请输入名称",
+ "error": {
+ "mustLeastCharacters": "摄像头组的名称必须至少有 2 个字符。",
+ "exists": "摄像头组名称已存在。",
+ "nameMustNotPeriod": "摄像头组名称不能包含英文句号(.)。",
+ "invalid": "无效的摄像头组名称。"
+ }
+ },
+ "cameras": {
+ "label": "摄像头",
+ "desc": "选择添加至该组的摄像头。"
+ },
+ "icon": "图标",
+ "success": "摄像头组({{name}})保存成功。",
+ "camera": {
+ "setting": {
+ "title": "{{cameraName}} 视频流设置",
+ "desc": "更改此摄像头组仪表板的实时视频流选项。这些设置特定于设备/浏览器。 ",
+ "audioIsAvailable": "此视频流支持音频",
+ "audioIsUnavailable": "此视频流不支持音频",
+ "audio": {
+ "tips": "音频必须从您的摄像头输出并在 go2rtc 中配置此流。",
+ "tips.document": "阅读文档(英文) "
+ },
+ "streamMethod": {
+ "label": "视频流方法",
+ "method": {
+ "noStreaming": {
+ "label": "无视频流",
+ "desc": "摄像头图像每分钟仅更新一次,不会进行实时视频流播放。"
+ },
+ "smartStreaming": {
+ "label": "智能视频流(推荐)",
+ "desc": "智能视频流在没有检测到活动时,每分钟更新一次摄像头图像,以节省带宽和资源。当检测到活动时,图像会无缝切换到实时视频流。"
+ },
+ "continuousStreaming": {
+ "label": "持续视频流",
+ "desc": "当摄像头画面在仪表板上可见时,始终为实时视频流,即使未检测到活动。",
+ "desc.warning": "持续视频流可能会导致高带宽使用和性能问题,请谨慎使用。"
+ }
+ }
+ },
+ "compatibilityMode": {
+ "label": "兼容模式",
+ "desc": "仅在摄像头的实时视频流显示颜色伪影,并且图像右侧有一条对角线时启用此选项。"
+ }
+ }
+ }
+ }
+}
diff --git a/web/public/locales/zh-CN/components/dialog.json b/web/public/locales/zh-CN/components/dialog.json
new file mode 100644
index 000000000..bf14f3542
--- /dev/null
+++ b/web/public/locales/zh-CN/components/dialog.json
@@ -0,0 +1,58 @@
+{
+ "restart": {
+ "title": "你确定要重启 Frigate?",
+ "button": "重启",
+ "restarting": {
+ "title": "Frigate 正在重启",
+ "content": "该页面将会在 {{countdown}} 秒后自动刷新。",
+ "button": "强制刷新"
+ }
+ },
+ "export": {
+ "time": {
+ "fromTimeline": "从时间线选择",
+ "lastHour_one": "最后1小时",
+ "lastHour_other": "最后 {{count}} 小时",
+ "custom": "自定义"
+ },
+ "name": {
+ "placeholder": "导出项目的名字"
+ },
+ "select": "选择",
+ "export": "导出",
+ "toast": {
+ "success": "导出成功。进入 /exports 目录查看文件。",
+ "error": {
+ "failed": "导出失败:{{error}}",
+ "endTimeMustAfterStartTime": "结束时间必须在开始时间之后",
+ "noVaildTimeSelected": "未选择有效的时间范围"
+ }
+ },
+ "fromTimeline": {
+ "saveExport": "保存导出",
+ "previewExport": "预览导出"
+ }
+ },
+ "streaming": {
+ "label": "视频流",
+ "restreaming": {
+ "NotEnabled": "重新流式传输未启用。",
+ "desc": "为此摄像头设置 go2rtc,以获取额外的实时预览选项和音频支持。",
+ "desc.readTheDocumentation": "阅读文档(英文) "
+ },
+ "showStats": {
+ "label": "显示视频流统计信息",
+ "desc": "启用后将在摄像头画面上叠加显示视频流统计信息。"
+ },
+ "debugView": "调试界面"
+ },
+ "search": {
+ "saveSearch": {
+ "label": "保存搜索",
+ "desc": "请为此已保存的搜索提供一个名称。",
+ "placeholder": "请输入搜索名称",
+ "overwrite": "{{searchName}} 已存在。保存将覆盖现有值。",
+ "success": "搜索 ({{searchName}}) 已保存。"
+ }
+ }
+}
diff --git a/web/public/locales/zh-CN/components/filter.json b/web/public/locales/zh-CN/components/filter.json
new file mode 100644
index 000000000..b64f1c737
--- /dev/null
+++ b/web/public/locales/zh-CN/components/filter.json
@@ -0,0 +1,65 @@
+{
+ "label": "过滤器",
+ "labels": {
+ "all": "所有标签",
+ "all.short": "标签",
+ "count": "{{count}} 个标签"
+ },
+ "zones": {
+ "all": "所有区域",
+ "all.short": "区域"
+ },
+ "dates": {
+ "all": "所有日期",
+ "all.short": "日期"
+ },
+ "more": "更多筛选项",
+ "timeRange": "时间范围",
+ "zones.label": "区域",
+ "subLabels": {
+ "label": "子标签",
+ "all": "所有子标签"
+ },
+ "score": "分值",
+ "estimatedSpeed": "预计速度({{unit}})",
+ "features": {
+ "label": "特性",
+ "hasSnapshot": "包含快照",
+ "hasVideoClip": "包含视频片段",
+ "submittedToFrigatePlus": {
+ "label": "提交至 Frigate+",
+ "tips": "你必须要先筛选具有快照的探测对象。 没有快照的跟踪对象无法提交至 Frigate+."
+ }
+ },
+ "sort": {
+ "label": "排序",
+ "dateAsc": "日期 (正序)",
+ "dateDesc": "日期 (倒序)",
+ "scoreAsc": "对象分值 (正序)",
+ "scoreDesc": "对象分值 (倒序)",
+ "speedAsc": "预计速度 (正序)",
+ "speedDesc": "预计速度 (倒序)",
+ "relevance": "关联性"
+ },
+ "cameras": {
+ "all": "所有摄像头",
+ "all.short": "摄像头"
+ },
+ "review": {
+ "showReviewed": "显示已查看的项目"
+ },
+ "explore": {
+ "settings": {
+ "title": "设置",
+ "defaultView": "默认视图",
+ "defaultView.desc": "当未选择任何过滤器时,显示每个标签最近跟踪对象的摘要,或显示未过滤的网格。",
+ "defaultView.summary": "摘要",
+ "defaultView.unfilteredGrid": "未过滤网格",
+ "gridColumns": "网格列数",
+ "gridColumns.desc": "选择网格视图中的列数。",
+ "searchSource": "搜索源",
+ "searchSource.desc": "选择是搜索缩略图还是跟踪对象的描述。"
+ }
+ }
+
+}
diff --git a/web/public/locales/zh-CN/components/icons.json b/web/public/locales/zh-CN/components/icons.json
new file mode 100644
index 000000000..93b486319
--- /dev/null
+++ b/web/public/locales/zh-CN/components/icons.json
@@ -0,0 +1,8 @@
+{
+ "iconPicker": {
+ "selectIcon": "选择图标",
+ "search": {
+ "placeholder": "搜索图标..."
+ }
+ }
+}
\ No newline at end of file
diff --git a/web/public/locales/zh-CN/components/player.json b/web/public/locales/zh-CN/components/player.json
new file mode 100644
index 000000000..c706a15e3
--- /dev/null
+++ b/web/public/locales/zh-CN/components/player.json
@@ -0,0 +1,5 @@
+{
+ "noRecordingsFoundForThisTime": "找不到此次录制",
+ "noPreviewFound": "没有找到预览",
+ "noPreviewFoundFor": "没有在 {{cameraName}} 下找到预览"
+}
\ No newline at end of file
diff --git a/web/public/locales/zh-CN/objects.json b/web/public/locales/zh-CN/objects.json
new file mode 100644
index 000000000..6c0fe7fbd
--- /dev/null
+++ b/web/public/locales/zh-CN/objects.json
@@ -0,0 +1,104 @@
+{
+ "person": "人",
+ "bicycle": "自行车",
+ "car": "汽车",
+ "motorcycle": "摩托车",
+ "airplane": "飞机",
+ "bus": "公交车",
+ "train": "火车",
+ "boat": "船",
+ "traffic_light": "交通灯",
+ "fire_hydrant": "消防栓",
+ "street_sign": "路标",
+ "stop_sign": "停车标志",
+ "parking_meter": "停车计时器",
+ "bench": "长椅",
+ "bird": "鸟",
+ "cat": "猫",
+ "dog": "狗",
+ "horse": "马",
+ "sheep": "羊",
+ "cow": "牛",
+ "elephant": "大象",
+ "bear": "熊",
+ "zebra": "斑马",
+ "giraffe": "长颈鹿",
+ "hat": "帽子",
+ "backpack": "背包",
+ "umbrella": "雨伞",
+ "shoe": "鞋子",
+ "eye_glasses": "眼镜",
+ "handbag": "手提包",
+ "tie": "领带",
+ "suitcase": "手提箱",
+ "frisbee": "飞盘",
+ "skis": "滑雪板",
+ "snowboard": "滑雪板",
+ "sports_ball": "运动球",
+ "kite": "风筝",
+ "baseball_bat": "棒球棒",
+ "baseball_glove": "棒球手套",
+ "skateboard": "滑板",
+ "surfboard": "冲浪板",
+ "tennis_racket": "网球拍",
+ "bottle": "瓶子",
+ "plate": "盘子",
+ "wine_glass": "酒杯",
+ "cup": "杯子",
+ "fork": "叉子",
+ "knife": "刀",
+ "spoon": "勺子",
+ "bowl": "碗",
+ "banana": "香蕉",
+ "apple": "苹果",
+ "sandwich": "三明治",
+ "orange": "橙子",
+ "broccoli": "西兰花",
+ "carrot": "胡萝卜",
+ "hot_dog": "热狗",
+ "pizza": "披萨",
+ "donut": "甜甜圈",
+ "cake": "蛋糕",
+ "chair": "椅子",
+ "couch": "沙发",
+ "potted_plant": "盆栽植物",
+ "bed": "床",
+ "mirror": "镜子",
+ "dining_table": "餐桌",
+ "window": "窗户",
+ "desk": "桌子",
+ "toilet": "厕所",
+ "door": "门",
+ "tv": "电视",
+ "laptop": "笔记本电脑",
+ "mouse": "鼠标",
+ "remote": "遥控器",
+ "keyboard": "键盘",
+ "cell_phone": "手机",
+ "microwave": "微波炉",
+ "oven": "烤箱",
+ "toaster": "烤面包机",
+ "sink": "水槽",
+ "refrigerator": "冰箱",
+ "blender": "搅拌机",
+ "book": "书",
+ "clock": "时钟",
+ "vase": "花瓶",
+ "scissors": "剪刀",
+ "teddy_bear": "泰迪熊",
+ "hair_dryer": "吹风机",
+ "toothbrush": "牙刷",
+ "hair_brush": "发刷",
+ "vehicle": "车辆",
+ "squirrel": "松鼠",
+ "deer": "鹿",
+ "animal": "动物",
+ "bark": "树皮",
+ "fox": "狐狸",
+ "goat": "山羊",
+ "rabbit": "兔子",
+ "raccoon": "浣熊",
+ "robot_lawnmower": "自动割草机",
+ "waste_bin": "垃圾桶",
+ "on_demand": "手动"
+}
diff --git a/web/public/locales/zh-CN/views/configEditor.json b/web/public/locales/zh-CN/views/configEditor.json
new file mode 100644
index 000000000..9f3931730
--- /dev/null
+++ b/web/public/locales/zh-CN/views/configEditor.json
@@ -0,0 +1,6 @@
+{
+ "configEditor": "配置编辑器",
+ "copyConfig": "复制配置",
+ "saveAndRestart": "保存并重启",
+ "saveOnly": "只保存"
+}
\ No newline at end of file
diff --git a/web/public/locales/zh-CN/views/events.json b/web/public/locales/zh-CN/views/events.json
new file mode 100644
index 000000000..964912bb1
--- /dev/null
+++ b/web/public/locales/zh-CN/views/events.json
@@ -0,0 +1,26 @@
+{
+ "alerts": "警告",
+ "detections": "检测",
+ "motion": {
+ "label": "运动",
+ "only": "仅运动画面"
+ },
+ "allCameras": "所有摄像头",
+ "empty": {
+ "alert": "还没有“警告”类回放",
+ "detection": "还没有“探测”类回放",
+ "motion": "还没有运动类数据"
+ },
+ "timeline": "时间线",
+ "events": {
+ "label": "事件",
+ "noFoundForTimePeriod": "未找到该时间段的事件。"
+ },
+ "documentTitle": "预览 - Frigate",
+ "recordings": {
+ "documentTitle": "回放 - Frigate"
+ },
+ "calendarFilter": {
+ "last24Hours": "过去24小时"
+ }
+}
diff --git a/web/public/locales/zh-CN/views/explore.json b/web/public/locales/zh-CN/views/explore.json
new file mode 100644
index 000000000..ea3493bd8
--- /dev/null
+++ b/web/public/locales/zh-CN/views/explore.json
@@ -0,0 +1,64 @@
+{
+ "trackedObjectDetails": "探测对象详情",
+ "type": {
+ "details": "详情",
+ "snapshot": "快照",
+ "video": "视频",
+ "object_lifecycle": "对象生命周期"
+ },
+ "details": {
+ "label": "标签",
+ "editSubLable": "编辑子标签",
+ "editSubLable.desc": "为 {{label}} 输入新的子标签",
+ "editSubLable.desc.noLabel": "为此跟踪对象输入新的子标签",
+ "topScore": "最高得分",
+ "topScore.info": "最高分是跟踪对象的最高中位数得分,因此可能与搜索结果缩略图上显示的得分不同。",
+ "estimatedSpeed": "预计速度",
+ "camera": "摄像头",
+ "timestamp": "时间",
+ "button": {
+ "findSimilar": "查找相似项"
+ },
+ "description": {
+ "label": "描述",
+ "placeholder": "跟踪对象的描述",
+ "aiTips": "在跟踪对象的生命周期结束之前,Frigate 不会向您的生成式 AI 提供商请求描述。"
+ },
+ "button.regenerate": "重新生成",
+ "regenerateFromSnapshot": "从快照重新生成",
+ "regenerateFromThumbnails": "从缩略图重新生成",
+ "tips": {
+ "descriptionSaved": "已保存描述",
+ "saveDescriptionFailed": "更新描述失败"
+ }
+ },
+ "itemMenu": {
+ "downloadVideo": {
+ "label": "下载视频",
+ "aria": "下载视频"
+ },
+ "downloadSnapshot": {
+ "label": "下载快照",
+ "aria": "下载快照"
+ },
+ "viewObjectLifecycle": {
+ "label": "查看对象生命周期",
+ "aria": "显示对象的生命周期"
+ },
+ "findSimilar": {
+ "label": "查找相似项",
+ "aria": "查看相似的对象"
+ },
+ "submitToPlus": {
+ "label": "提交至 Frigate+",
+ "aria": "提交至 Frigate Plus"
+ }
+ },
+ "dialog": {
+ "confirmDelete": {
+ "title": "确认删除",
+ "desc": "删除此跟踪对象将移除快照、所有已保存的嵌入数据以及任何关联的对象生命周期条目。但在历史视图中的录制视频不会 被删除。 你确定要继续删除吗?"
+ }
+ },
+ "noTrackedObjects": "找不到探测的对象"
+}
diff --git a/web/public/locales/zh-CN/views/exports.json b/web/public/locales/zh-CN/views/exports.json
new file mode 100644
index 000000000..b88c86f49
--- /dev/null
+++ b/web/public/locales/zh-CN/views/exports.json
@@ -0,0 +1,7 @@
+{
+ "documentTitle": "导出 - Frigate",
+ "search": "搜索",
+ "noExports": "没有找到导出的项目",
+ "deleteExport": "删除导出的项目",
+ "deleteExport.desc": "你确定要删除 {{exportName}} 吗?"
+}
\ No newline at end of file
diff --git a/web/public/locales/zh-CN/views/live.json b/web/public/locales/zh-CN/views/live.json
new file mode 100644
index 000000000..401e300e7
--- /dev/null
+++ b/web/public/locales/zh-CN/views/live.json
@@ -0,0 +1,70 @@
+{
+ "documentTitle": "实时监控 - Frigate",
+ "documentTitle.withCamera": "{{camera}} - 实时监控 - Frigate",
+ "twoWayTalk": {
+ "enable": "开启双向对话",
+ "disable": "关闭双向对话"
+ },
+ "cameraAudio": {
+ "enable": "开启摄像头音频",
+ "disable": "关闭摄像头音频"
+ },
+ "ptz": {
+ "move": {
+ "left": {
+ "label": "PTZ摄像头向左移动"
+ },
+ "up": {
+ "label": "PTZ摄像头向上移动"
+ },
+ "down": {
+ "label": "PTZ摄像头向下移动"
+ },
+ "right": {
+ "label": "PTZ摄像头向右移动"
+ }
+ },
+ "zoom": {
+ "in": {
+ "label": "PTZ摄像头放大"
+ },
+ "out": {
+ "label": "PTZ摄像头缩小"
+ }
+ },
+ "frame": {
+ "center": {
+ "label": "点击将PTZ摄像头画面居中"
+ }
+ }
+ },
+ "detect": {
+ "enable": "启用检测",
+ "disable": "关闭检测"
+ },
+ "recording": {
+ "enable": "启用录制",
+ "disable": "关闭录制"
+ },
+ "snapshots": {
+ "enable": "启用快照",
+ "disable": "关闭快照"
+ },
+ "audioDetect": {
+ "enable": "启用音频检测",
+ "disable": "关闭音频检测"
+ },
+ "autotracking": {
+ "enable": "启用自动追踪",
+ "disable": "关闭自动追踪"
+ },
+ "manualRecording": {
+ "start": "开始手动按需录制",
+ "started": "已启用手动按需录制",
+ "failedToStart": "启动手动录制失败",
+ "recordDisabledTips": "由于此摄像头的配置中禁用了录制或对其进行了限制,将只会保存快照。",
+ "end": "停止手动按需录制",
+ "ended": "已完成手动按需录制",
+ "failedToEnd": "停止手动录制失败"
+ }
+}
diff --git a/web/public/locales/zh-CN/views/settings.json b/web/public/locales/zh-CN/views/settings.json
new file mode 100644
index 000000000..448119851
--- /dev/null
+++ b/web/public/locales/zh-CN/views/settings.json
@@ -0,0 +1,291 @@
+{
+ "menu": {
+ "uiSettings": "界面设置",
+ "exploreSettings": "搜索设置",
+ "cameraSettings": "摄像头设置",
+ "masksAndZones": "遮罩/ 区域",
+ "motionTuner": "运动调整器",
+ "debug": "调试",
+ "users": "用户",
+ "notifications": "通知"
+ },
+ "general": {
+ "title": "常规设置",
+ "liveDashboard": {
+ "title": "实时监控面板",
+ "automaticLiveView": {
+ "label": "自动实时预览",
+ "desc": "检测到画面活动时将自动切换至该摄像头实时画面。禁用此选项会导致实时监控页面的摄像头图像每分钟只更新一次。"
+ },
+ "playAlertVideos": {
+ "label": "播放警告视频",
+ "desc": "默认情况下,实时监控页面上的最新警告会以一小段循环的形式进行播放。禁用此选项将仅显示浏览器本地缓存的静态图片。"
+ }
+ },
+ "storedLayouts": {
+ "title": "存储监控面板布局",
+ "desc": "可以在监控面板调整或拖动摄像头的布局。这些设置将保存在浏览器的本地存储中。",
+ "clearAll": "清除所有布局"
+ },
+ "cameraGroupStreaming": {
+ "title": "摄像头组视频流设置",
+ "desc": "每个摄像头组的视频流设置将保存在浏览器的本地存储中。",
+ "clearAll": "清除所有视频流设置"
+ },
+ "recordingsViewer": {
+ "title": "回放查看",
+ "defaultPlaybackRate": {
+ "label": "默认播放速率",
+ "desc": "调整播放录像时默认的速率。"
+ }
+ },
+ "calendar": {
+ "title": "日历",
+ "firstWeekday": {
+ "label": "每周第一天",
+ "desc": "设置每周第一天是星期几。",
+ "sunday": "星期天",
+ "monday": "星期一"
+ }
+ }
+ },
+ "explore": {
+ "title": "探测设置",
+ "semanticSearch": {
+ "title": "语义搜索",
+ "desc": "Frigate的语义搜索能够让你使用自然语言根据图像本身、自定义的文本描述或自动生成的描述来搜索视频。",
+ "readTheDocumentation": "阅读文档(英文)",
+ "reindexOnStartup": {
+ "label": "启动时重新索引",
+ "desc": "每次启动将重新索引并重新处理所有缩略图和描述。关闭该设置后不要忘记重启! "
+ },
+ "modelSize": {
+ "label": "模型大小",
+ "desc": "用于语义搜索的语言模型大小",
+ "small": "小",
+ "large": "大",
+ "small.desc": "使用 小 模型。该模型将使用较少的内存,在CPU上也能较快的运行。质量较好。",
+ "large.desc": "使用 大 模型。该模型采用了完整的Jina模型,并在适用的情况下使用GPU。"
+ }
+ },
+ "toast": {
+ "success": "探测设置已保存。"
+ }
+ },
+ "camera": {
+ "title": "摄像头设置",
+ "streams": {
+ "title": "视频流",
+ "desc": "禁用摄像头将完全停止 Frigate 对该摄像头视频流的处理。检测、录制和调试功能都将不可用。注意:该选项不会禁用 go2rtc 转播。 "
+ },
+ "review": {
+ "title": "预览",
+ "desc": "启用/禁用摄像头的警报和检测。禁用后,不会生成新的预览项。",
+ "alerts": "警告 ",
+ "detections": "检测 "
+ },
+ "reviewClassification": {
+ "title": "预览分级",
+ "desc": "Frigate 将回放项目分为“警告”和“检测”。默认情况下,所有的 人 、汽车 的对象都视为警告。你可以通过修改配置文件配置区域来细分。",
+ "readTheDocumentation": "阅读文档(英文)",
+ "noDefinedZones": "该摄像头没有设置区域。",
+ "objectAlertsTips": "所有的 {{alertsLabels}} 对象在 {{cameraName}} 都将显示为警告。",
+ "zoneObjectAlertsTips": "所有的 {{alertsLabels}} 对象在 {{cameraName}} 的 {{zone}} 区域都将显示为警告。",
+ "objectDetectionsTips": "所有未在 {{cameraName}} 归类的 {{detectionsLabels}} 对象,无论它位于哪个区域,都将显示为检测。",
+ "zoneObjectDetectionsTips": "所有未在 {{cameraName}} 上归类为 {{detectionsLabels}} 的对象在 {{zone}} 区域都将显示为检测。",
+ "zoneObjectDetectionsTips.notSelectDetections": "所有在 {{cameraName}} 的 {{zone}} 上检测到的未归类为警告的 {{detectionsLabels}} 对象,无论它位于哪个区域,都将显示为检测。",
+ "zoneObjectDetectionsTips.regardlessOfZoneObjectDetectionsTips": "所有未在 {{cameraName}} 归类的 {{detectionsLabels}} 对象,无论它位于哪个区域,都将显示为检测。",
+ "selectAlertsZones": "选择要显示为警告的区域",
+ "selectDetectionsZones": "选择检测区域",
+ "limitDetections": "限制仅在特定区域内进行检测",
+ "toast": {
+ "success": "预览分级配置已保存。请重启 Frigate 以应用更改。"
+ }
+ }
+ },
+ "masksAndZones": {
+ "filter": {
+ "all": "所有遮罩和区域"
+ },
+ "form": {
+ "zoneName": {
+ "error": {
+ "mustBeAtLeastTwoCharacters": "区域名称必须至少包含 2 个字符。",
+ "mustNotBeSameWithCamera": "区域名称不能与摄像头名称相同。",
+ "alreadyExists": "该摄像头已有相同的区域名称。",
+ "mustNotContainPeriod": "区域名称不能包含句点。",
+ "hasIllegalCharacter": "区域名称包含非法字符。"
+ }
+ },
+ "distance.error": "距离必须大于或等于 0.1。",
+ "distance.error.mustBeFilled": "所有距离字段必须填写才能使用速度估算。",
+ "inertia.error.mustBeAboveZero": "惯性必须大于 0。",
+ "loiteringTime.error.mustBeGreaterOrEqualZero": "徘徊时间必须大于或等于 0。",
+ "polygonDrawing": {
+ "error": {
+ "mustBeFinished": "多边形绘制必须完成闭合后才能保存。"
+ }
+ }
+ },
+ "zones": {
+ "label": "区域",
+ "documentTitle": "编辑区域 - Frigate",
+ "desc": "该功能允许你定义特定区域,以便你可以确定特定对象是否在该区域内。",
+ "desc.documentation": "文档(英文)",
+ "add": "添加区域",
+ "edit": "编辑区域",
+ "point_one": "{{count}} 点",
+ "point_other": "{{count}} 点",
+ "clickDrawPolygon": "在图像上点击添加点绘制多边形区域。",
+ "name": "区域名称",
+ "name.inputPlaceHolder": "请输入名称",
+ "name.tips": "名称至少包含两个字符,且不能和摄像头或其他区域同名。 当前仅支持英文与数字组合",
+ "inertia": "惯性",
+ "inertia.desc": "识别指定对象前该对象必须在这个区域内出现了多少帧。默认值:3 ",
+ "loiteringTime": "停留时间",
+ "loiteringTime.desc": "设置对象必须在区域中活动的最小时间(单位为秒)。默认值:0 ",
+ "objects": "对象",
+ "objects.desc": "将在此区域应用的对象列表。",
+ "allObjects": "所有对象",
+ "speedEstimation": "速度估算",
+ "speedEstimation.desc": "启用此区域内物体的速度估算。该区域必须恰好包含 4 个点。",
+ "speedThreshold": "速度阈值 ({{unit}})",
+ "speedThreshold.desc": "指定物体在此区域内被视为有效的最低速度。",
+ "speedThreshold.toast.error.pointLengthError": "此区域的速度估算已禁用。启用速度估算的区域必须恰好包含 4 个点。",
+ "speedThreshold.toast.error.loiteringTimeError": "徘徊时间大于 0 的区域不应与速度估算一起使用。",
+ "toast.success": "区域 ({{zoneName}}) 已保存。请重启 Frigate 以应用更改。"
+ },
+ "motionMasks": {
+ "label": "运动遮罩",
+ "documentTitle": "编辑运动遮罩 - Frigate",
+ "desc": "该功能用于防止触发不必要的运动类型。过度的设置遮罩将使对象更加难以被追踪",
+ "desc.documentation": "文档(英文)",
+ "add": "添加运动遮罩",
+ "edit": "编辑运动遮罩",
+ "context": "运动遮罩用于防止不需要的运动类型触发检测(例如:树枝、摄像头显示的时间等)。运动遮罩需要谨慎使用 ,过度的遮罩会导致追踪对象变得更加困难。",
+ "context.documentation": "阅读文档(英文)",
+ "point_one": "{{count}} 点",
+ "point_other": "{{count}} 点",
+ "clickDrawPolygon": "在图像上点击添加点绘制多边形区域。",
+ "polygonAreaTooLarge": "运动遮罩的大小达到了摄像头画面的{{polygonArea}}%。不建议设置太大的运动遮罩。",
+ "polygonAreaTooLarge.tips": "运动遮罩不会阻止检测到对象,你应该使用区域来限制检测对象。",
+ "polygonAreaTooLarge.documentation": "阅读文档(英文)",
+ "toast.success": "{{polygonName}} 已保存。请重启 Frigate 以应用更改。",
+ "toast.success.noName": "运动遮罩已保存。请重启 Frigate 以应用更改。"
+ },
+ "objectMasks": {
+ "label": "对象遮罩",
+ "documentTitle": "编辑对象遮罩 - Frigate",
+ "desc": "对象过滤器用于防止特定位置的指定对象被误报。",
+ "documentation": "文档(英文)",
+ "add": "添加对象遮罩",
+ "edit": "编辑对象遮罩",
+ "context": "对象过滤器用于防止特定位置的指定对象被误报。",
+ "point_one": "{{count}} 点",
+ "point_other": "{{count}} 点",
+ "clickDrawPolygon": "在图像上点击添加点绘制多边形区域。",
+ "objects": "对象",
+ "objects.desc": "将应用于此对象遮罩的对象列表。",
+ "objects.allObjectTypes": "所有对象类型",
+ "toast.success": "{{polygonName}} 已保存。请重启 Frigate 以应用更改。",
+ "toast.success.noName": "对象遮罩已保存。请重启 Frigate 以应用更改。"
+ }
+ },
+ "motionDetectionTuner": {
+ "title": "运动检测调整器",
+ "desc": "Frigate 将使用运动检测作为首个步骤,以确认一帧画面中是否有对象需要使用对象检测。",
+ "desc.documentation": "阅读有关运动检测的文档(英文)",
+ "Threshold": "阈值",
+ "Threshold.desc": "阈值决定像素亮度高于多少时会被认为是运动。默认值:30 ",
+ "contourArea": "轮廓面积",
+ "contourArea.desc": "轮廓面积决定哪些变化的像素组符合运动条件。默认值:10 ",
+ "improveContrast": "提高对比度",
+ "improveContrast.desc": "提高较暗场景的对比度。默认值:开启"
+ },
+ "debug": {
+ "title": "调试",
+ "detectorDesc": "Frigate 将使用探测器({{detectors}})来检测摄像头视频流中的对象。",
+ "desc": "调试界面将实时显示被追踪的对象以及统计信息,对象列表将显示检测到的对象和延迟显示的概览。",
+ "debugging": "调试选项",
+ "objectList": "对象列表",
+ "noObjects": "没有对象",
+ "boundingBoxes": {
+ "title": "边界框",
+ "desc": "将在被追踪的对象周围显示边界框",
+ "colors": {
+ "label": "对象边界框颜色定义",
+ "info": "启用后,将会为每个对象标签分配不同的颜色 深蓝色细线代表该对象在当前时间点未被检测到 灰色细线代表检测到的物体静止不动 粗线表示该对象为自动跟踪的主体(在启动时) "
+ }
+ },
+ "timestamp": {
+ "title": "时间戳",
+ "desc": "在图像上显示时间戳"
+ },
+ "zones": {
+ "title": "区域",
+ "desc": "显示已定义的区域图层"
+ },
+ "mask": {
+ "title": "运动遮罩",
+ "desc": "显示运动遮罩图层"
+ },
+ "motion": {
+ "title": "运动区域框",
+ "desc": "在检测到运动的区域显示区域框",
+ "tips": "运动区域框
将在当前检测到运动的区域内显示红色区域框。
"
+ },
+ "regions": {
+ "title": "范围",
+ "desc": "显示发送到运动检测器感兴趣范围的框。",
+ "tips": "范围框
将在帧中发送到目标检测器的感兴趣范围上叠加绿色框。
"
+ },
+ "objectShapeFilterDrawing": {
+ "title": "允许绘制“对象形状过滤器”",
+ "desc": "在图像上绘制矩形,以查看区域和比例详细信息。",
+ "tips": "启用此选项,能够在摄像头图像上绘制矩形,将显示其区域和比例。然后,您可以使用这些值在配置中设置对象形状过滤器参数。",
+ "document": "阅读文档(英文)"
+ }
+ },
+ "users": {
+ "title": "用户",
+ "addUser": "添加用户",
+ "updatePassword": "修改密码",
+ "toast": {
+ "error": {
+ "setPasswordFailed": "保存密码出现错误",
+ "createUserFailed": "创建用户失败!请检查后台日志。",
+ "deleteUserFailed": "删除用户失败!请检查后台日志。"
+ }
+ },
+ "dialog": {
+ "createUser": {
+ "title": "创建用户",
+ "user": "用户",
+ "password": "密码",
+ "usernameOnlyInclude": "用户名只能包含字母、数字和 _"
+ },
+ "deleteUser": {
+ "title": "删除该用户",
+ "warn": "你确定要删除该用户吗?"
+ },
+ "setPassword": {
+ "title": "修改密码"
+ }
+ }
+ },
+ "notification": {
+ "title": "通知",
+ "notificationSettings": "通知设置",
+ "desc": "Frigate 在浏览器中运行或作为 PWA 安装时,可以原生向您的设备发送推送通知。",
+ "documentation": "阅读文档(英文)",
+ "email": "电子邮箱",
+ "email.placeholder": "例如:example@email.com",
+ "email.desc": "需要输入有效的电子邮件,在推送服务出现问题时,将使用此电子邮件进行通知。",
+ "cameras": "摄像头",
+ "cameras.noCameras": "没有可用的摄像头",
+ "cameras.desc": "选择要启用通知的摄像头。",
+ "deviceSpecific": "设备专用设置",
+ "registerDevice": "注册该设备",
+ "unregisterDevice": "取消注册该设备"
+ }
+}
diff --git a/web/public/locales/zh-CN/views/system.json b/web/public/locales/zh-CN/views/system.json
new file mode 100644
index 000000000..04082a494
--- /dev/null
+++ b/web/public/locales/zh-CN/views/system.json
@@ -0,0 +1,74 @@
+{
+ "title": "系统",
+ "metrics": "系统指标",
+ "logs": "系统日志",
+ "general": {
+ "title": "常规",
+ "detector": {
+ "title": "探测器",
+ "inferenceSpeed": "探测器推理速度",
+ "cpuUsage": "探测器CPU使用率",
+ "memoryUsage": "探测器内存使用率"
+ },
+ "hardwareInfo": {
+ "title": "硬件信息",
+ "gpuUsage": "GPU使用率",
+ "gpuMemory": "GPU显存",
+ "gpuEncoder": "GPU编码",
+ "gpuDecoder": "GPU解码"
+ },
+ "otherProcesses": {
+ "title": "其他进程",
+ "processCpuUsage": "主进程CPU使用率",
+ "processMemoryUsage": "主进程内存使用率"
+ }
+ },
+ "storage": {
+ "title": "存储",
+ "overview": "概览",
+ "recordings": {
+ "title": "录制内容",
+ "tips": "该值表示 Frigate 数据库中录制内容所使用的总存储空间。Frigate 不会追踪磁盘上所有文件的存储使用情况。"
+ },
+ "cameraStorage": {
+ "title": "摄像头存储",
+ "camera": "摄像头",
+ "unused": "未使用",
+ "storageUsed": "存储使用",
+ "percentageOfTotalUsed": "总使用率",
+ "bandwidth": "带宽",
+ "unused.tips": "如果您的驱动器上存储了除 Frigate 录制内容之外的其他文件,该值可能无法准确反映 Frigate 可用的剩余空间。Frigate 不会追踪录制内容以外的存储使用情况。"
+ }
+ },
+ "cameras": {
+ "title": "摄像头",
+ "overview": "概览",
+ "info": {
+ "cameraProbeInfo": "{{camera}} 的摄像头信息",
+ "streamDataFromFFPROBE": "流数据信息通过ffprobe获取。",
+ "fetching": "正在获取摄像头数据",
+ "stream": "视频流{{idx}}",
+ "video": "视频:",
+ "codec": "编解码器:",
+ "resolution": "分辨率:",
+ "fps": "帧率:",
+ "unknown": "未知",
+ "audio": "音频:",
+ "error": "错误:{{error}}"
+ },
+ "framesAndDetections": "帧数/检测次数",
+ "label": {
+ "camera": "摄像头",
+ "detect": "探测",
+ "skipped": "跳过",
+ "ffmpeg": "ffmpeg编码器",
+ "capture": "捕获"
+ }
+ },
+ "lastRefreshed": "最后刷新时间:",
+ "stats": {
+ "ffmpegHighCpuUsage": "{{camera}} 的 FFMPEG CPU 使用率较高({{ffmpegAvg}}%)",
+ "detectHighCpuUsage": "{{camera}} 的 探测 CPU 使用率较高({{detectAvg}}%)",
+ "healthy": "系统运行正常"
+ }
+}
diff --git a/web/src/components/Statusbar.tsx b/web/src/components/Statusbar.tsx
index 86269ab03..7a1cee4c5 100644
--- a/web/src/components/Statusbar.tsx
+++ b/web/src/components/Statusbar.tsx
@@ -130,7 +130,7 @@ export default function Statusbar() {
{Object.entries(messages).length === 0 ? (
- ui.stats.healthy
+ stats.healthy
) : (
Object.entries(messages).map(([key, messageArray]) => (
diff --git a/web/src/components/card/ReviewCard.tsx b/web/src/components/card/ReviewCard.tsx
index 63f9d44c5..b42d83af7 100644
--- a/web/src/components/card/ReviewCard.tsx
+++ b/web/src/components/card/ReviewCard.tsx
@@ -83,7 +83,7 @@ export default function ReviewCard({
)
.then((response) => {
if (response.status == 200) {
- toast.success(t("ui.dialog.export.toast.success"), {
+ toast.success(t("export.toast.success", { ns: "components/dialog"}), {
position: "top-center",
});
}
diff --git a/web/src/components/card/SearchThumbnail.tsx b/web/src/components/card/SearchThumbnail.tsx
index bf2216eb2..294873e28 100644
--- a/web/src/components/card/SearchThumbnail.tsx
+++ b/web/src/components/card/SearchThumbnail.tsx
@@ -113,7 +113,7 @@ export default function SearchThumbnail({
.filter(
(item) => item !== undefined && !item.includes("-verified"),
)
- .map((text) => t("object." + text))
+ .map((text) => t(text, { ns: "objects" }))
.sort()
.join(", ")
.replaceAll("-verified", "")}
diff --git a/web/src/components/card/SearchThumbnailFooter.tsx b/web/src/components/card/SearchThumbnailFooter.tsx
index 351d90fb3..5d01952ca 100644
--- a/web/src/components/card/SearchThumbnailFooter.tsx
+++ b/web/src/components/card/SearchThumbnailFooter.tsx
@@ -31,8 +31,8 @@ export default function SearchThumbnailFooter({
const formattedDate = useFormattedTimestamp(
searchResult.start_time,
config?.ui.time_format == "24hour"
- ? t("ui.time.formattedTimestampExcludeSeconds.24hour")
- : t("ui.time.formattedTimestampExcludeSeconds"),
+ ? t("time.formattedTimestampExcludeSeconds.24hour")
+ : t("time.formattedTimestampExcludeSeconds"),
config?.ui.timezone,
);
diff --git a/web/src/components/dynamic/TimeAgo.tsx b/web/src/components/dynamic/TimeAgo.tsx
index 9945377b3..4836dd35a 100644
--- a/web/src/components/dynamic/TimeAgo.tsx
+++ b/web/src/components/dynamic/TimeAgo.tsx
@@ -41,7 +41,7 @@ const timeAgo = ({
const elapsed: number = elapsedTime / 1000;
if (elapsed < 10) {
- return t("ui.time.justNow");
+ return t("time.justNow");
}
for (let i = 0; i < timeUnits.length; i++) {
@@ -65,9 +65,9 @@ const timeAgo = ({
if (monthDiff > 0) {
const unitAmount = monthDiff;
- return t("ui.time.ago", {
+ return t("time.ago", {
timeAgo: t(
- `ui.time.${dense ? timeUnits[i].unit : timeUnits[i].full}`,
+ `time.${dense ? timeUnits[i].unit : timeUnits[i].full}`,
{
time: unitAmount,
},
@@ -76,8 +76,8 @@ const timeAgo = ({
}
} else if (elapsed >= timeUnits[i].value) {
const unitAmount: number = Math.floor(elapsed / timeUnits[i].value);
- return t("ui.time.ago", {
- timeAgo: t(`ui.time.${dense ? timeUnits[i].unit : timeUnits[i].full}`, {
+ return t("time.ago", {
+ timeAgo: t(`time.${dense ? timeUnits[i].unit : timeUnits[i].full}`, {
time: unitAmount,
}),
});
diff --git a/web/src/components/filter/CalendarFilterButton.tsx b/web/src/components/filter/CalendarFilterButton.tsx
index 551c9e031..c463aebb5 100644
--- a/web/src/components/filter/CalendarFilterButton.tsx
+++ b/web/src/components/filter/CalendarFilterButton.tsx
@@ -48,7 +48,7 @@ export default function CalendarFilterButton({
- {day == undefined ? t("ui.calendarFilter.last24Hours") : selectedDate}
+ {day == undefined ? t("calendarFilter.last24Hours", {ns: "views/events"}) : selectedDate}
);
@@ -68,7 +68,7 @@ export default function CalendarFilterButton({
updateSelectedDay(undefined);
}}
>
- ui.reset
+ button.reset
>
@@ -100,7 +100,7 @@ export function CalendarRangeFilterButton({
const selectedDate = useFormattedRange(
range?.from == undefined ? 0 : range.from.getTime() / 1000 + 1,
range?.to == undefined ? 0 : range.to.getTime() / 1000 - 1,
- t("ui.time.formattedTimestampOnlyMonthAndDay"),
+ t("time.formattedTimestampOnlyMonthAndDay"),
);
const trigger = (
diff --git a/web/src/components/filter/CameraGroupSelector.tsx b/web/src/components/filter/CameraGroupSelector.tsx
index 629687d68..a75083fc7 100644
--- a/web/src/components/filter/CameraGroupSelector.tsx
+++ b/web/src/components/filter/CameraGroupSelector.tsx
@@ -163,7 +163,7 @@ export function CameraGroupSelector({ className }: CameraGroupSelectorProps) {
- ui.menu.live.allCameras
+ menu.live.allCameras
@@ -352,10 +352,10 @@ function NewGroupDialog({
onClose={() => setOpen(false)}
>
- ui.cameraGroup
+ group.label
- ui.cameraGroup.edit
+ group.edit
{editState == "add" ? (
- ui.cameraGroup.add
+ group.add
) : (
- ui.cameraGroup.edit
+ group.edit
)}
@@ -481,10 +481,10 @@ export function EditGroupDialog({
setOpen(false)}>
- ui.cameraGroup.edit
+ group.edit
- ui.cameraGroup.edit.desc
+ group.edit.desc
@@ -536,23 +536,23 @@ export function CameraGroupRow({
- ui.cameraGroup.delete.confirm
+ group.delete.confirm
- ui.cameraGroup.delete.confirm.desc
+ group.delete.confirm.desc
- ui.cancel
+ button.cancel
- ui.delete
+ button.delete
@@ -570,13 +570,13 @@ export function CameraGroupRow({
aria-label="Edit group"
onClick={onEditGroup}
>
- Edit
+
button.edit
setDeleteDialogOpen(true)}
>
- Delete
+ button.delete
@@ -594,7 +594,7 @@ export function CameraGroupRow({
/>
- ui.edit
+ button.edit
@@ -607,7 +607,7 @@ export function CameraGroupRow({
/>
- ui.delete
+ button.delete
@@ -653,7 +653,7 @@ export function CameraGroupEdit({
name: z
.string()
.min(2, {
- message: t("ui.cameraGroup.name.errorMessage.mustLeastCharacters"),
+ message: t("group.name.errorMessage.mustLeastCharacters", { ns: "components/camera" }),
})
.transform((val: string) => val.trim().replace(/\s+/g, "_"))
.refine(
@@ -664,7 +664,7 @@ export function CameraGroupEdit({
);
},
{
- message: t("ui.cameraGroup.name.errorMessage.exists"),
+ message: t("group.name.errorMessage.exists", { ns: "components/camera" }),
},
)
.refine(
@@ -672,11 +672,11 @@ export function CameraGroupEdit({
return !value.includes(".");
},
{
- message: t("ui.cameraGroup.name.errorMessage.nameMustNotPeriod"),
+ message: t("group.name.errorMessage.nameMustNotPeriod"),
},
)
.refine((value: string) => value.toLowerCase() !== "default", {
- message: t("ui.cameraGroup.name.errorMessage.invalid"),
+ message: t("group.name.errorMessage.invalid", { ns: "components/camera" }),
}),
cameras: z.array(z.string()),
@@ -732,7 +732,7 @@ export function CameraGroupEdit({
.then(async (res) => {
if (res.status === 200) {
toast.success(
- t("ui.cameraGroup.toast.success", { name: values.name }),
+ t("group.toast.success", { name: values.name, ns: "components/camera"}),
{
position: "top-center",
},
@@ -744,7 +744,7 @@ export function CameraGroupEdit({
setAllGroupsStreamingSettings(updatedSettings);
} else {
toast.error(
- t("ui.toast.save.error", { errorMessage: res.statusText }),
+ t("toast.save.error", { errorMessage: res.statusText }),
{
position: "top-center",
},
@@ -753,7 +753,7 @@ export function CameraGroupEdit({
})
.catch((error) => {
toast.error(
- t("ui.toast.save.error", {
+ t("toast.save.error", {
errorMessage: error.response.data.message,
}),
{ position: "top-center" },
@@ -797,12 +797,12 @@ export function CameraGroupEdit({
render={({ field }) => (
- ui.cameraGroup.name
+ group.name.label
@@ -819,10 +819,10 @@ export function CameraGroupEdit({
render={({ field }) => (
- ui.cameraGroup.cameras
+ group.cameras.label
- ui.cameraGroup.cameras.desc
+ group.cameras.desc
{[
@@ -908,7 +908,7 @@ export function CameraGroupEdit({
render={({ field }) => (
- ui.cameraGroup.icon
+ group.icon
- ui.cancel
+ button.cancel
- ui.saving
+ button.saving
) : (
- ui.save
+ button.save
)}
diff --git a/web/src/components/filter/CamerasFilterButton.tsx b/web/src/components/filter/CamerasFilterButton.tsx
index 125e34677..9c346978f 100644
--- a/web/src/components/filter/CamerasFilterButton.tsx
+++ b/web/src/components/filter/CamerasFilterButton.tsx
@@ -42,7 +42,7 @@ export function CamerasFilterButton({
}
if (!selectedCameras || selectedCameras.length == 0) {
- return t("ui.menu.live.allCameras");
+ return t("menu.live.allCameras");
}
return `${selectedCameras.includes("birdseye") ? selectedCameras.length - 1 : selectedCameras.length} Camera${selectedCameras.length !== 1 ? "s" : ""}`;
@@ -145,7 +145,7 @@ export function CamerasFilterContent({
{isMobile && (
<>
- ui.filter.allCameras.short
+ cameras.all.short
>
@@ -153,7 +153,7 @@ export function CamerasFilterContent({
{
if (isChecked) {
setCurrentCameras(undefined);
@@ -235,7 +235,7 @@ export function CamerasFilterContent({
setOpen(false);
}}
>
- ui.apply
+ button.apply
- ui.reset
+ button.reset
>
diff --git a/web/src/components/filter/ReviewFilterGroup.tsx b/web/src/components/filter/ReviewFilterGroup.tsx
index 12d9116d1..7140335a5 100644
--- a/web/src/components/filter/ReviewFilterGroup.tsx
+++ b/web/src/components/filter/ReviewFilterGroup.tsx
@@ -280,7 +280,7 @@ function ShowReviewFilter({
}
/>
- ui.reviewFilter.showReviewed
+ review.showReviewed
@@ -366,7 +366,7 @@ function GeneralFilterButton({
: "text-primary"
}`}
>
- ui.filter
+ label
);
@@ -447,7 +447,7 @@ export function GeneralFilterContent({
{currentSeverity && (
- ui.filter.allLabels
+ labels.all
- ui.filter.allZones
+ zones.all
- ui.apply
+ button.apply
- ui.reset
+ button.reset
>
@@ -613,7 +613,7 @@ function ShowMotionOnlyButton({
className="mx-2 cursor-pointer text-primary"
htmlFor="collapse-motion"
>
- ui.eventView.motion.only
+ motion.only
diff --git a/web/src/components/filter/SearchFilterGroup.tsx b/web/src/components/filter/SearchFilterGroup.tsx
index 793f64cc4..293be24f1 100644
--- a/web/src/components/filter/SearchFilterGroup.tsx
+++ b/web/src/components/filter/SearchFilterGroup.tsx
@@ -198,7 +198,7 @@ export default function SearchFilterGroup({
}
}
defaultText={
- isMobile ? t("ui.filter.allDates.short") : t("ui.filter.allDates")
+ isMobile ? t("dates.all.short", {ns: "components/filter"}) : t("dates.all", {ns: "components/filter"})
}
updateSelectedRange={onUpdateSelectedRange}
/>
@@ -240,18 +240,18 @@ function GeneralFilterButton({
const buttonText = useMemo(() => {
if (isMobile) {
- return t("ui.filter.allLabels.short");
+ return t("labels.all.short", {ns: "components/filter"});
}
if (!selectedLabels || selectedLabels.length == 0) {
- return t("ui.filter.allLabels");
+ return t("labels.all", {ns: "components/filter"});
}
if (selectedLabels.length == 1) {
- return t("object." + selectedLabels[0]);
+ return t(selectedLabels[0], { ns: "objects"});
}
- return t("ui.filter.countLabels", { count: selectedLabels.length });
+ return t("labels.count", { count: selectedLabels.length, ns: "components/filter" });
}, [selectedLabels]);
// ui
@@ -335,7 +335,7 @@ export function GeneralFilterContent({
className="mx-2 cursor-pointer text-primary"
htmlFor="allLabels"
>
- ui.filter.allLabels
+ labels.all
(
{
if (isChecked) {
@@ -387,7 +387,7 @@ export function GeneralFilterContent({
onClose();
}}
>
- ui.apply
+ button.apply
- ui.reset
+ button.reset
>
@@ -445,7 +445,7 @@ function SortTypeButton({
- ui.filter.sort
+ sort.label
);
@@ -501,13 +501,13 @@ export function SortTypeContent({
onClose,
}: SortTypeContentProps) {
const sortLabels = {
- date_asc: t("ui.filter.sort.dateAsc"),
- date_desc: t("ui.filter.sort.dateDesc"),
- score_asc: t("ui.filter.sort.scoreAsc"),
- score_desc: t("ui.filter.sort.scoreDesc"),
- speed_asc: "Estimated Speed (Ascending)",
- speed_desc: "Estimated Speed (Descending)",
- relevance: t("ui.filter.sort.relevance"),
+ date_asc: t("sort.dateAsc", {ns: "components/filter"}),
+ date_desc: t("sort.dateDesc", {ns: "components/filter"}),
+ score_asc: t("sort.scoreAsc", {ns: "components/filter"}),
+ score_desc: t("sort.scoreDesc", {ns: "components/filter"}),
+ speed_asc: t("sort.speedAsc", {ns: "components/filter"}),
+ speed_desc: t("sort.speedDesc", {ns: "components/filter"}),
+ relevance: t("sort.relevance", {ns: "components/filter"}),
};
return (
<>
@@ -561,7 +561,7 @@ export function SortTypeContent({
onClose();
}}
>
- ui.apply
+ button.apply
- ui.reset
+ button.reset
>
diff --git a/web/src/components/filter/ZoneMaskFilter.tsx b/web/src/components/filter/ZoneMaskFilter.tsx
index 1da9e10a2..4f767d8f4 100644
--- a/web/src/components/filter/ZoneMaskFilter.tsx
+++ b/web/src/components/filter/ZoneMaskFilter.tsx
@@ -30,7 +30,7 @@ export function ZoneMaskFilterButton({
- ui.filter
+ label
);
@@ -76,7 +76,7 @@ export function GeneralFilterContent({
className="mx-2 cursor-pointer text-primary"
htmlFor="allLabels"
>
- ui.settingView.masksAndZonesSettings.filter.all
+ labels.all
-
- ui.settingView.masksAndZonesSettings.
+
+ masksAndZones.
{item.replace(/_([a-z])/g, (letter) => letter.toUpperCase()) +
"s"}
diff --git a/web/src/components/graph/CameraGraph.tsx b/web/src/components/graph/CameraGraph.tsx
index a7159735f..2d887fa3b 100644
--- a/web/src/components/graph/CameraGraph.tsx
+++ b/web/src/components/graph/CameraGraph.tsx
@@ -128,7 +128,7 @@ export function CameraLineGraph({
style={{ color: GRAPH_COLORS[labelIdx] }}
/>
- {t("ui.system.cameras.label." + label)}
+ {t("cameras.label." + label, {ns: "views/settings"})}
{lastValues[labelIdx]}
diff --git a/web/src/components/graph/CombinedStorageGraph.tsx b/web/src/components/graph/CombinedStorageGraph.tsx
index 9f3f8702b..4685d19b4 100644
--- a/web/src/components/graph/CombinedStorageGraph.tsx
+++ b/web/src/components/graph/CombinedStorageGraph.tsx
@@ -179,18 +179,18 @@ export function CombinedStorageGraph({
- ui.system.storage.cameraStorage.camera
+ storage.cameraStorage.camera
- ui.system.storage.cameraStorage.storageUsed
+ storage.cameraStorage.storageUsed
-
- ui.system.storage.cameraStorage.percentageOfTotalUsed
+
+ storage.cameraStorage.percentageOfTotalUsed
- ui.system.storage.cameraStorage.bandwidth
+ storage.cameraStorage.bandwidth
@@ -204,7 +204,9 @@ export function CombinedStorageGraph({
style={{ backgroundColor: item.color }}
>
{item.name === "Unused"
- ? t("ui.system.storage.cameraStorage.unused")
+ ? t("storage.cameraStorage.unused", {
+ ns: "views/system",
+ })
: item.name.replaceAll("_", " ")}
{item.name === "Unused" && (
@@ -221,8 +223,8 @@ export function CombinedStorageGraph({
-
- ui.system.storage.cameraStorage.unused.tips
+
+ storage.cameraStorage.unused.tips
diff --git a/web/src/components/icons/IconPicker.tsx b/web/src/components/icons/IconPicker.tsx
index 97a8e10bf..db750e262 100644
--- a/web/src/components/icons/IconPicker.tsx
+++ b/web/src/components/icons/IconPicker.tsx
@@ -72,7 +72,7 @@ export default function IconPicker({
className="mt-2 w-full text-muted-foreground"
aria-label="Select an icon"
>
- ui.iconPicker.selectIcon
+ iconPicker.selectIcon
) : (
@@ -104,7 +104,7 @@ export default function IconPicker({
>
- ui.iconPicker.selectIcon
+ iconPicker.selectIcon
setSearchTerm(e.target.value)}
diff --git a/web/src/components/input/SaveSearchDialog.tsx b/web/src/components/input/SaveSearchDialog.tsx
index 8d7762781..45e2e5b65 100644
--- a/web/src/components/input/SaveSearchDialog.tsx
+++ b/web/src/components/input/SaveSearchDialog.tsx
@@ -35,8 +35,9 @@ export function SaveSearchDialog({
onSave(searchName.trim());
setSearchName("");
toast.success(
- t("ui.dialog.search.saveSearch.success", {
+ t("search.saveSearch.success", {
searchName: searchName.trim(),
+ ns: "components/dialog"
}),
{
position: "top-center",
@@ -62,28 +63,28 @@ export function SaveSearchDialog({
>
- ui.dialog.search.saveSearch
+ search.saveSearch.label
- ui.dialog.search.saveSearch.desc
+ search.saveSearch.desc
setSearchName(e.target.value)}
- placeholder={t("ui.dialog.search.saveSearch.placeholder")}
+ placeholder={t("search.saveSearch.placeholder", {ns: "components/dialog"})}
/>
{overwrite && (
-
- ui.dialog.search.saveSearch.overwrite
+
+ search.saveSearch.overwrite
)}
- ui.cancel
+ button.cancel
- ui.save
+ button.save
diff --git a/web/src/components/menu/AccountSettings.tsx b/web/src/components/menu/AccountSettings.tsx
index c50ae96d4..660097aa6 100644
--- a/web/src/components/menu/AccountSettings.tsx
+++ b/web/src/components/menu/AccountSettings.tsx
@@ -67,8 +67,8 @@ export default function AccountSettings({ className }: AccountSettingsProps) {
>
- {t("ui.menu.user.current", {
- user: profile?.username || t("ui.menu.user.anonymous"),
+ {t("menu.user.current", {
+ user: profile?.username || t("menu.user.anonymous"),
})}
@@ -81,7 +81,7 @@ export default function AccountSettings({ className }: AccountSettingsProps) {
- ui.menu.user.logout
+ menu.user.logout
diff --git a/web/src/components/menu/GeneralSettings.tsx b/web/src/components/menu/GeneralSettings.tsx
index 23817c9a1..c5899d973 100644
--- a/web/src/components/menu/GeneralSettings.tsx
+++ b/web/src/components/menu/GeneralSettings.tsx
@@ -6,7 +6,7 @@ import {
LuList,
LuLogOut,
LuMoon,
- LuSquarePen,
+ LuSquare,
LuRotateCw,
LuSettings,
LuSun,
@@ -105,7 +105,7 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
- ui.settings
+ menu.settings
@@ -151,7 +151,7 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
>
)}
- ui.system
+ system
@@ -166,7 +166,7 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
>
- ui.systemMetrics
+ menu.systemMetrics
@@ -181,13 +181,13 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
>
- ui.systemLogs
+ menu.systemLogs
- ui.configuration
+ menu.configuration
@@ -202,7 +202,7 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
>
- ui.settings
+ menu.settings
@@ -215,9 +215,9 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
}
aria-label="Configuration editor"
>
-
+
- ui.configurationEditor
+ menu.configurationEditor
@@ -231,7 +231,7 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
>
- ui.languages
+ menu.languages
@@ -253,11 +253,11 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
{language === "en" ? (
<>
- ui.language.en
+ menu.language.en
>
) : (
- ui.language.en
+ menu.language.en
)}
@@ -273,11 +273,11 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
{language === "zh-CN" ? (
<>
- ui.language.zhCN
+ menu.language.zhCN
>
) : (
- ui.language.zhCN
+ menu.language.zhCN
)}
@@ -293,11 +293,11 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
{language === systemLanguage ? (
<>
- ui.withSystem
+ menu.withSystem
>
) : (
- ui.withSystem
+ menu.withSystem
)}
@@ -305,7 +305,7 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
- ui.appearance
+ menu.appearance
@@ -318,7 +318,7 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
>
- ui.darkMode
+ menu.darkMode.label
@@ -340,11 +340,11 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
{theme === "light" ? (
<>
- ui.darkMode.light
+ menu.darkMode.light
>
) : (
- ui.darkMode.light
+ menu.darkMode.light
)}
@@ -360,11 +360,11 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
{theme === "dark" ? (
<>
- ui.darkMode.dark
+ menu.darkMode.dark
>
) : (
- ui.darkMode.dark
+ menu.darkMode.dark
)}
@@ -380,11 +380,11 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
{theme === "system" ? (
<>
- ui.withSystem
+ menu.withSystem
>
) : (
- ui.withSystem
+ menu.withSystem
)}
@@ -401,7 +401,7 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
>
- ui.theme
+ menu.theme.label
@@ -439,7 +439,7 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
- ui.help
+ menu.help
@@ -447,11 +447,11 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
className={
isDesktop ? "cursor-pointer" : "flex items-center p-2 text-sm"
}
- aria-label={t("ui.documentation.label")}
+ aria-label={t("menu.documentation.label")}
>
- ui.documentation
+ menu.documentation
@@ -474,12 +474,12 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
className={
isDesktop ? "cursor-pointer" : "flex items-center p-2 text-sm"
}
- aria-label={t("ui.restart")}
+ aria-label={t("restart")}
onClick={() => setRestartDialogOpen(true)}
>
- ui.restart
+ menu.restart
diff --git a/web/src/components/menu/LiveContextMenu.tsx b/web/src/components/menu/LiveContextMenu.tsx
index 895e3ab86..1571841a6 100644
--- a/web/src/components/menu/LiveContextMenu.tsx
+++ b/web/src/components/menu/LiveContextMenu.tsx
@@ -44,6 +44,8 @@ import {
useNotifications,
useNotificationSuspend,
} from "@/api/ws";
+import { Trans } from "react-i18next";
+import { t } from "i18next";
type LiveContextMenuProps = {
className?: string;
@@ -240,7 +242,7 @@ export default function LiveContextMenu({
time_style: "medium",
date_style: "medium",
timezone: config?.ui.timezone,
- strftime_fmt: `%b %d, ${config?.ui.time_format == "24hour" ? "%H:%M" : "%I:%M %p"}`,
+ strftime_fmt: config?.ui.time_format == "24hour" ? t("time.formattedTimestampExcludeSeconds.24hour"): t("time.formattedTimestampExcludeSeconds"),
});
};
@@ -357,7 +359,7 @@ export default function LiveContextMenu({
className="flex w-full cursor-pointer items-center justify-start gap-2"
onClick={isEnabled ? resetPreferredLiveMode : undefined}
>
- Reset
+ button
>
diff --git a/web/src/components/menu/SearchResultActions.tsx b/web/src/components/menu/SearchResultActions.tsx
index df9329d1b..09e3abff3 100644
--- a/web/src/components/menu/SearchResultActions.tsx
+++ b/web/src/components/menu/SearchResultActions.tsx
@@ -88,7 +88,7 @@ export default function SearchResultActions({
const menuItems = (
<>
{searchResult.has_clip && (
-
+
- ui.exploreView.itemMenu.downloadVideo
+ itemMenu.downloadVideo
)}
{searchResult.has_snapshot && (
- ui.exploreView.itemMenu.downloadSnapshot
+ itemMenu.downloadSnapshot.label
)}
{searchResult.data.type == "object" && (
- ui.exploreView.itemMenu.viewObjectLifecycle
+ itemMenu.viewObjectLifecycle.label
)}
{config?.semantic_search?.enabled && isContextMenu && (
- ui.exploreView.itemMenu.findSimilar
+ itemMenu.findSimilar.label
)}
@@ -146,12 +146,12 @@ export default function SearchResultActions({
searchResult.data.type == "object" &&
!searchResult.plus_id && (
- ui.exploreView.itemMenu.submitToPlus
+ itemMenu.submitToPlus
)}
@@ -161,7 +161,7 @@ export default function SearchResultActions({
>
- ui.delete
+ button.delete
>
@@ -176,21 +176,21 @@ export default function SearchResultActions({
- ui.exploreView.dialog.confirmDelete
+ dialog.confirmDelete
- ui.exploreView.dialog.confirmDelete.desc
+ dialog.confirmDelete.desc
- ui.cancel
+ button.cancel
- ui.delete
+ button.delete
@@ -211,7 +211,7 @@ export default function SearchResultActions({
onClick={findSimilar}
/>
-
Find similar
+
itemMenu.findSimilar.label
)}
@@ -228,7 +228,7 @@ export default function SearchResultActions({
onClick={showSnapshot}
/>
-
Submit to Frigate+
+
itemMenu.submitToPlus.label
)}
diff --git a/web/src/components/overlay/CameraInfoDialog.tsx b/web/src/components/overlay/CameraInfoDialog.tsx
index c38e6f263..54cbab787 100644
--- a/web/src/components/overlay/CameraInfoDialog.tsx
+++ b/web/src/components/overlay/CameraInfoDialog.tsx
@@ -74,13 +74,14 @@ export default function CameraInfoDialog({
- {t("ui.system.cameras.info.cameraProbeInfo", {
+ {t("system.cameras.info.cameraProbeInfo", {
camera: camera.name.replaceAll("_", " "),
+ ns: "views/system"
})}
- ui.system.cameras.info.streamDataFromFFPROBE
+ cameras.info.streamDataFromFFPROBE
@@ -89,7 +90,7 @@ export default function CameraInfoDialog({
{ffprobeInfo.map((stream, idx) => (
- {t("ui.system.cameras.info.stream", { idx: idx + 1 })}
+ {t("cameras.info.stream", { idx: idx + 1, ns: "views/system" })}
{stream.return_code == 0 ? (
@@ -98,11 +99,11 @@ export default function CameraInfoDialog({
{codec.width ? (
- ui.system.cameras.info.video
+ cameras.info.video
-
ui.system.cameras.info.codec
+
cameras.info.codec
{" "}
{codec.codec_long_name}
@@ -111,8 +112,8 @@ export default function CameraInfoDialog({
{codec.width && codec.height ? (
<>
-
- ui.system.cameras.info.resolution
+
+ cameras.info.resolution
{" "}
{" "}
@@ -127,8 +128,8 @@ export default function CameraInfoDialog({
>
) : (
-
- ui.system.cameras.info.resolution
+
+ cameras.info.resolution
{" "}
Unknown
@@ -137,10 +138,10 @@ export default function CameraInfoDialog({
)}
- ui.system.cameras.info.fps {" "}
+ cameras.info.fps {" "}
{codec.avg_frame_rate == "0/0"
- ? t("ui.system.cameras.info.unknown")
+ ? t("cameras.info.unknown", { ns: "views/system" })
: codec.avg_frame_rate}
@@ -150,7 +151,7 @@ export default function CameraInfoDialog({
Audio:
-
ui.system.cameras.info.codec {" "}
+
cameras.info.codec {" "}
{codec.codec_long_name}
@@ -163,8 +164,9 @@ export default function CameraInfoDialog({
) : (
- {t("ui.system.cameras.info.error", {
+ {t("cameras.info.error", {
error: stream.stderr,
+ ns: "views/system"
})}
@@ -176,7 +178,7 @@ export default function CameraInfoDialog({
- ui.system.cameras.info.fetching
+ cameras.info.fetching
)}
@@ -188,7 +190,7 @@ export default function CameraInfoDialog({
aria-label="Copy"
onClick={() => onCopyFfprobe()}
>
-
ui.copy
+
button.copy
diff --git a/web/src/components/overlay/CreateUserDialog.tsx b/web/src/components/overlay/CreateUserDialog.tsx
index 7c6649987..70ffbeda2 100644
--- a/web/src/components/overlay/CreateUserDialog.tsx
+++ b/web/src/components/overlay/CreateUserDialog.tsx
@@ -21,6 +21,7 @@ import {
DialogTitle,
} from "../ui/dialog";
import { Trans } from "react-i18next";
+import { t } from "i18next";
type CreateUserOverlayProps = {
show: boolean;
@@ -39,7 +40,7 @@ export default function CreateUserDialog({
.string()
.min(1)
.regex(/^[A-Za-z0-9._]+$/, {
- message: "Username may only include letters, numbers, . or _",
+ message: t("users.dialog.createUser.usernameOnlyInclude", {ns: "views/settings"}),
}),
password: z.string(),
});
@@ -65,7 +66,7 @@ export default function CreateUserDialog({
- ui.settingView.users.dialog.createUser
+ users.dialog.createUser.title
diff --git a/web/src/components/overlay/DeleteUserDialog.tsx b/web/src/components/overlay/DeleteUserDialog.tsx
index 4e716e786..c8a52e942 100644
--- a/web/src/components/overlay/DeleteUserDialog.tsx
+++ b/web/src/components/overlay/DeleteUserDialog.tsx
@@ -23,11 +23,11 @@ export default function DeleteUserDialog({
- ui.settingView.users.dialog.deleteUser
+ users.dialog.deleteUser
- ui.settingView.users.dialog.deleteUser.warn
+ users.dialog.deleteUser.warn
- ui.delete
+ button.delete
diff --git a/web/src/components/overlay/ExportDialog.tsx b/web/src/components/overlay/ExportDialog.tsx
index 75d01266f..b1707d3a9 100644
--- a/web/src/components/overlay/ExportDialog.tsx
+++ b/web/src/components/overlay/ExportDialog.tsx
@@ -70,14 +70,14 @@ export default function ExportDialog({
const onStartExport = useCallback(() => {
if (!range) {
- toast.error(t("ui.dialog.export.toast.error.noVaildTimeSelected"), {
+ toast.error(t("export.toast.error.noVaildTimeSelected", {ns: "components/dialog"}), {
position: "top-center",
});
return;
}
if (range.before < range.after) {
- toast.error(t("ui.dialog.export.toast.error.endTimeMustAfterStartTime"), {
+ toast.error(t("export.toast.error.endTimeMustAfterStartTime", {ns: "components/dialog"}), {
position: "top-center",
});
return;
@@ -93,7 +93,7 @@ export default function ExportDialog({
)
.then((response) => {
if (response.status == 200) {
- toast.success(t("ui.dialog.export.toast.success"), {
+ toast.success(t("export.toast.success", {ns: "components/dialog"}), {
position: "top-center",
});
setName("");
@@ -105,12 +105,12 @@ export default function ExportDialog({
if (error.response?.data?.message) {
// api error message need to be translated
toast.error(
- `${t("ui.dialog.export.toast.error.failed", { error: error.response.data.message })}`,
+ `${t("export.toast.error.failed", { error: error.response.data.message, ns: "components/dialog" })}`,
{ position: "top-center" },
);
} else {
toast.error(
- `${t("ui.dialog.export.toast.error.failed", { error: error.message })}`,
+ `${t("export.toast.error.failed", { error: error.message, ns: "components/dialog" })}`,
{
position: "top-center",
},
@@ -172,7 +172,7 @@ export default function ExportDialog({
{isDesktop && (
- ui.menu.export
+ menu.export
)}
@@ -271,7 +271,7 @@ export function ExportContent({
<>
- ui.menu.export
+ menu.export
@@ -296,10 +296,11 @@ export function ExportContent({
{isNaN(parseInt(opt))
? opt == "timeline"
- ? t("ui.dialog.export.time.fromTimeline")
- : t("ui.dialog.export.time." + opt)
- : t("ui.dialog.export.time.lastHour", {
+ ? t("export.time.fromTimeline", {ns: "components/dialog"})
+ : t("export.time." + opt, {ns: "components/dialog"})
+ : t("export.time.lastHour", {
count: parseInt(opt),
+ ns: "components/dialog"
})}
@@ -316,7 +317,7 @@ export function ExportContent({
setName(e.target.value)}
/>
@@ -328,7 +329,7 @@ export function ExportContent({
className={`cursor-pointer p-2 text-center ${isDesktop ? "" : "w-full"}`}
onClick={onCancel}
>
-
ui.cancel
+
button.cancel
{selectedOption == "timeline"
- ? t("ui.dialog.export.select")
- : t("ui.dialog.export.export")}
+ ? t("export.select", {ns: "components/dialog"})
+ : t("export.export", {ns: "components/dialog"})}
@@ -408,14 +409,14 @@ function CustomTimeSelector({
const formattedStart = useFormattedTimestamp(
startTime,
config?.ui.time_format == "24hour"
- ? t("ui.time.formattedTimestamp.24hour")
- : t("ui.time.formattedTimestamp"),
+ ? t("time.formattedTimestamp.24hour")
+ : t("time.formattedTimestamp"),
);
const formattedEnd = useFormattedTimestamp(
endTime,
config?.ui.time_format == "24hour"
- ? t("ui.time.formattedTimestamp.24hour")
- : t("ui.time.formattedTimestamp"),
+ ? t("time.formattedTimestamp.24hour")
+ : t("time.formattedTimestamp"),
);
const startClock = useMemo(() => {
@@ -603,10 +604,10 @@ export function ExportPreviewDialog({
>
- ui.dialog.export.fromTimeline.previewExport
+ export.fromTimeline.previewExport
- ui.dialog.export.fromTimeline.previewExport
+ export.fromTimeline.previewExport
diff --git a/web/src/components/overlay/MobileReviewSettingsDrawer.tsx b/web/src/components/overlay/MobileReviewSettingsDrawer.tsx
index f63da9036..825e58aa4 100644
--- a/web/src/components/overlay/MobileReviewSettingsDrawer.tsx
+++ b/web/src/components/overlay/MobileReviewSettingsDrawer.tsx
@@ -98,7 +98,7 @@ export default function MobileReviewSettingsDrawer({
)
.then((response) => {
if (response.status == 200) {
- toast.success(t("ui.dialog.export.toast.success"), {
+ toast.success(t("export.toast.success", { ns: "components/dialog"}), {
position: "top-center",
});
setName("");
@@ -247,7 +247,7 @@ export default function MobileReviewSettingsDrawer({
});
}}
>
-
ui.reset
+
button.reset
diff --git a/web/src/components/overlay/SaveExportOverlay.tsx b/web/src/components/overlay/SaveExportOverlay.tsx
index 63d207cbd..cbdfc8992 100644
--- a/web/src/components/overlay/SaveExportOverlay.tsx
+++ b/web/src/components/overlay/SaveExportOverlay.tsx
@@ -34,7 +34,7 @@ export default function SaveExportOverlay({
onClick={onCancel}
>
-
ui.cancel
+
button.cancel
- ui.dialog.export.fromTimeline.previewExport
+ export.fromTimeline.previewExport
- ui.dialog.export.fromTimeline.saveExport
+ export.fromTimeline.saveExport
diff --git a/web/src/components/overlay/SetPasswordDialog.tsx b/web/src/components/overlay/SetPasswordDialog.tsx
index a65b805e5..b42a11316 100644
--- a/web/src/components/overlay/SetPasswordDialog.tsx
+++ b/web/src/components/overlay/SetPasswordDialog.tsx
@@ -27,7 +27,7 @@ export default function SetPasswordDialog({
e.preventDefault()}>
- ui.settingView.users.dialog.setPassword
+ users.dialog.setPassword.title
- ui.save
+ button.save
diff --git a/web/src/components/overlay/detail/ReviewDetailDialog.tsx b/web/src/components/overlay/detail/ReviewDetailDialog.tsx
index d8775b04b..9f967ef28 100644
--- a/web/src/components/overlay/detail/ReviewDetailDialog.tsx
+++ b/web/src/components/overlay/detail/ReviewDetailDialog.tsx
@@ -96,8 +96,8 @@ export default function ReviewDetailDialog({
const formattedDate = useFormattedTimestamp(
review?.start_time ?? 0,
config?.ui.time_format == "24hour"
- ? t("ui.time.formattedTimestampWithYear.24hour")
- : t("ui.time.formattedTimestampWithYear"),
+ ? t("time.formattedTimestampWithYear.24hour")
+ : t("time.formattedTimestampWithYear"),
config?.ui.timezone,
);
diff --git a/web/src/components/overlay/detail/SearchDetailDialog.tsx b/web/src/components/overlay/detail/SearchDetailDialog.tsx
index a62026fcd..9eb0009a0 100644
--- a/web/src/components/overlay/detail/SearchDetailDialog.tsx
+++ b/web/src/components/overlay/detail/SearchDetailDialog.tsx
@@ -195,10 +195,10 @@ export default function SearchDetailDialog({
>
- ui.exploreView.trackedObjectDetails
+ trackedObjectDetails
- ui.exploreView.details
+ details
)}
- ui.exploreView.type.{item}
+ type.{item}
))}
@@ -314,8 +314,8 @@ function ObjectDetailsTab({
const formattedDate = useFormattedTimestamp(
search?.start_time ?? 0,
config?.ui.time_format == "24hour"
- ? t("ui.time.formattedTimestampWithYear.24hour")
- : t("ui.time.formattedTimestampWithYear"),
+ ? t("time.formattedTimestampWithYear.24hour")
+ : t("time.formattedTimestampWithYear"),
config?.ui.timezone,
);
@@ -374,7 +374,7 @@ function ObjectDetailsTab({
.post(`events/${search.id}/description`, { description: desc })
.then((resp) => {
if (resp.status == 200) {
- toast.success(t("ui.exploreView.details.tips.descriptionSaved"), {
+ toast.success(t("details.tips.descriptionSaved", {ns: "views/explore"}), {
position: "top-center",
});
}
@@ -403,7 +403,7 @@ function ObjectDetailsTab({
);
})
.catch(() => {
- toast.error(t("ui.exploreView.details.tips.saveDescriptionFailed"), {
+ toast.error(t("details.tips.saveDescriptionFailed", {ns: "views/explore"}), {
position: "top-center",
});
setDesc(search.data.description);
@@ -515,11 +515,11 @@ function ObjectDetailsTab({
- ui.exploreView.details.label
+ details.label
{getIconForLabel(search.label, "size-4 text-primary")}
-
object.{search.label}
+
{search.label}
{search.sub_label && ` (${search.sub_label})`}
@@ -534,7 +534,7 @@ function ObjectDetailsTab({
- ui.exploreView.details.editSubLable
+ details.editSubLable
@@ -543,7 +543,7 @@ function ObjectDetailsTab({
-
ui.exploreView.details.topScore
+
details.topScore
@@ -552,7 +552,7 @@ function ObjectDetailsTab({
- ui.exploreView.details.topScore.info
+ details.topScore.info
@@ -564,13 +564,13 @@ function ObjectDetailsTab({
{averageEstimatedSpeed && (
- ui.exploreView.details.estimatedSpeed
+ details.estimatedSpeed
{averageEstimatedSpeed && (
{averageEstimatedSpeed}{" "}
- {config?.ui.unit_system == "imperial" ? "mph" : "kph"}{" "}
+ {config?.ui.unit_system == "imperial" ? t("unit.speed.mph") : t("unit.speed.kph")}{" "}
{velocityAngle != undefined && (
- ui.exploreView.details.camera
+ details.camera
{search.camera.replaceAll("_", " ")}
@@ -596,7 +596,7 @@ function ObjectDetailsTab({
- ui.exploreView.details.timestamp
+ details.timestamp
{formattedDate}
@@ -649,7 +649,7 @@ function ObjectDetailsTab({
- ui.exploreView.details.description.aiTips
+ details.description.aiTips
>
@@ -658,7 +658,7 @@ function ObjectDetailsTab({
diff --git a/web/src/components/overlay/dialog/SearchFilterDialog.tsx b/web/src/components/overlay/dialog/SearchFilterDialog.tsx
index 21aa09673..5125ec46c 100644
--- a/web/src/components/overlay/dialog/SearchFilterDialog.tsx
+++ b/web/src/components/overlay/dialog/SearchFilterDialog.tsx
@@ -95,7 +95,7 @@ export default function SearchFilterDialog({
moreFiltersSelected ? "text-white" : "text-secondary-foreground",
)}
/>
-
ui.filter.more
+
more
);
const content = (
@@ -177,7 +177,7 @@ export default function SearchFilterDialog({
setOpen(false);
}}
>
-
ui.apply
+
button.apply
- ui.reset
+ button.reset
@@ -275,7 +275,7 @@ function TimeRangeFilterContent({
return (
- ui.filter.timeRange
+ timeRange
- ui.filter.zones
+ zones.label
{allZones && (
<>
@@ -384,7 +384,7 @@ export function ZoneFilterContent({
className="mx-2 cursor-pointer text-primary"
htmlFor="allZones"
>
- ui.filter.allZones
+ zones.all
- ui.filter.subLabels
+ subLabels.label
- ui.filter.allSubLabels
+ subLabels.all
- ui.filter.score
+ score
- ui.filter.estimatedSpeed
+ filter.estimatedSpeed
@@ -656,7 +657,7 @@ export function SnapshotClipFilterContent({
- ui.filter.features
+ features.label
@@ -679,7 +680,7 @@ export function SnapshotClipFilterContent({
htmlFor="snapshot-filter"
className="cursor-pointer text-sm font-medium leading-none"
>
- ui.filter.features.hasSnapshot
+ features.hasSnapshot
- ui.yes
+ button.yes
- ui.no
+ button.no
@@ -741,8 +742,8 @@ export function SnapshotClipFilterContent({
side="left"
sideOffset={5}
>
-
- ui.filter.features.submittedToFrigatePlus.tips
+
+ features.submittedToFrigatePlus.tips
)}
@@ -752,7 +753,7 @@ export function SnapshotClipFilterContent({
htmlFor="plus-filter"
className="cursor-pointer text-sm font-medium leading-none"
>
- ui.filter.features.submittedToFrigatePlus
+ features.submittedToFrigatePlus.label
- ui.yes
+ button.yes
- ui.no
+ button.no
@@ -814,7 +815,7 @@ export function SnapshotClipFilterContent({
htmlFor="clip-filter"
className="cursor-pointer text-sm font-medium leading-none"
>
- ui.filter.features.hasVideoClip
+ features.hasVideoClip
- ui.yes
+ button.yes
- ui.no
+ button.no
diff --git a/web/src/components/overlay/dialog/TextEntryDialog.tsx b/web/src/components/overlay/dialog/TextEntryDialog.tsx
index 9e816705d..821ed72d8 100644
--- a/web/src/components/overlay/dialog/TextEntryDialog.tsx
+++ b/web/src/components/overlay/dialog/TextEntryDialog.tsx
@@ -88,10 +88,10 @@ export default function TextEntryDialog({
/>
setOpen(false)}>
- ui.cancel
+ button.cancel
- ui.save
+ button.save
diff --git a/web/src/components/player/PreviewPlayer.tsx b/web/src/components/player/PreviewPlayer.tsx
index 1215c32d7..bce95ceb3 100644
--- a/web/src/components/player/PreviewPlayer.tsx
+++ b/web/src/components/player/PreviewPlayer.tsx
@@ -89,7 +89,7 @@ export default function PreviewPlayer({
className,
)}
>
-
ui.player.noPreviewFound
+
noPreviewFound
);
}
@@ -325,8 +325,8 @@ function PreviewVideoPlayer({
{cameraPreviews && !currentPreview && (
-
- ui.player.noPreviewFoundFor
+
+ noPreviewFoundFor
)}
@@ -547,8 +547,8 @@ function PreviewFramesPlayer({
/>
{previewFrames?.length === 0 && (
-
- ui.player.noPreviewFoundFor
+
+ noPreviewFoundFor
)}
diff --git a/web/src/components/player/PreviewThumbnailPlayer.tsx b/web/src/components/player/PreviewThumbnailPlayer.tsx
index b14558735..15313e0b9 100644
--- a/web/src/components/player/PreviewThumbnailPlayer.tsx
+++ b/web/src/components/player/PreviewThumbnailPlayer.tsx
@@ -169,8 +169,8 @@ export default function PreviewThumbnailPlayer({
const formattedDate = useFormattedTimestamp(
review.start_time,
config?.ui.time_format == "24hour"
- ? t("ui.time.formattedTimestampExcludeSeconds.24hour")
- : t("ui.time.formattedTimestampExcludeSeconds"),
+ ? t("time.formattedTimestampExcludeSeconds.24hour")
+ : t("time.formattedTimestampExcludeSeconds"),
config?.ui?.timezone,
);
diff --git a/web/src/components/player/dynamic/DynamicVideoPlayer.tsx b/web/src/components/player/dynamic/DynamicVideoPlayer.tsx
index 07f9eb575..31825894f 100644
--- a/web/src/components/player/dynamic/DynamicVideoPlayer.tsx
+++ b/web/src/components/player/dynamic/DynamicVideoPlayer.tsx
@@ -248,7 +248,7 @@ export default function DynamicVideoPlayer({
)}
{!isScrubbing && !isLoading && noRecording && (
- ui.player.noRecordingsFoundForThisTime
+ noRecordingsFoundForThisTime
)}
>
diff --git a/web/src/components/settings/CameraStreamingDialog.tsx b/web/src/components/settings/CameraStreamingDialog.tsx
index a5ed8a6c9..acb021800 100644
--- a/web/src/components/settings/CameraStreamingDialog.tsx
+++ b/web/src/components/settings/CameraStreamingDialog.tsx
@@ -168,12 +168,12 @@ export function CameraStreamingDialog({
-
- ui.cameraGroup.camera.setting
+
+ group.camera.setting.title
- ui.cameraGroup.camera.setting.desc
+ group.camera.setting.desc
@@ -183,17 +183,17 @@ export function CameraStreamingDialog({
- ui.dialog.streaming.restreaming.disabled
+ streaming.restreaming.disabled
- Info
+ button.info
- ui.dialog.streaming.restreaming.desc
+ streaming.restreaming.desc
-
- ui.dialog.streaming.restreaming.readTheDocumentation
+
+ streaming.restreaming.readTheDocumentation
@@ -237,8 +237,8 @@ export function CameraStreamingDialog({
<>
-
- ui.cameraGroup.camera.setting.audioIsAvailable
+
+ group.camera.setting.audioIsAvailable
>
@@ -246,8 +246,8 @@ export function CameraStreamingDialog({
<>
-
- ui.cameraGroup.camera.setting.audioIsUnavailable
+
+ group.camera.setting.audioIsUnavailable
@@ -255,13 +255,13 @@ export function CameraStreamingDialog({
- ui.info
+ button.info
-
- ui.cameraGroup.camera.setting.audio.desc
+
+ group.camera.setting.audio.desc
-
- ui.cameraGroup.camera.setting.audio.desc.document
+
+ group.camera.setting.audio.desc.document
@@ -286,7 +286,7 @@ export function CameraStreamingDialog({
)}
- ui.cameraGroup.camera.setting.streamMethod
+ group.camera.setting.streamMethod
-
- ui.cameraGroup.camera.setting.streamMethod.method.noStreaming
+
+ group.camera.setting.streamMethod.method.noStreaming
-
- ui.cameraGroup.camera.setting.streamMethod.method.smartStreaming
+
+ group.camera.setting.streamMethod.method.smartStreaming
-
- ui.cameraGroup.camera.setting.streamMethod.method.continuousStreaming
+
+ group.camera.setting.streamMethod.method.continuousStreaming
{streamType === "no-streaming" && (
-
- ui.cameraGroup.camera.setting.streamMethod.method.noStreaming.desc
+
+ group.camera.setting.streamMethod.method.noStreaming.desc
)}
{streamType === "smart" && (
-
- ui.cameraGroup.camera.setting.streamMethod.method.smartStreaming.desc
+
+ group.camera.setting.streamMethod.method.smartStreaming.desc
)}
{streamType === "continuous" && (
<>
-
- ui.cameraGroup.camera.setting.streamMethod.method.continuousStreaming.desc
+
+ group.camera.setting.streamMethod.method.continuousStreaming.desc
-
- ui.cameraGroup.camera.setting.streamMethod.method.continuousStreaming.desc.warning
+
+ group.camera.setting.streamMethod.method.continuousStreaming.desc.warning
@@ -357,13 +357,13 @@ export function CameraStreamingDialog({
htmlFor="compatibility"
className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
>
-
ui.cameraGroup.camera.setting.compatibilityMode
+
group.camera.setting.compatibilityMode
-
- ui.cameraGroup.camera.setting.compatibilityMode.desc
+
+ group.camera.setting.compatibilityMode.desc
@@ -376,7 +376,7 @@ export function CameraStreamingDialog({
aria-label="Cancel"
onClick={handleCancel}
>
- ui.cancel
+ button.cancel
- ui.saving
+ button.saving
) : (
- ui.save
+ button.save
)}
diff --git a/web/src/components/settings/MotionMaskEditPane.tsx b/web/src/components/settings/MotionMaskEditPane.tsx
index 890333f4e..c946fe86d 100644
--- a/web/src/components/settings/MotionMaskEditPane.tsx
+++ b/web/src/components/settings/MotionMaskEditPane.tsx
@@ -107,7 +107,7 @@ export default function MotionMaskEditPane({
polygon: z.object({ name: z.string(), isFinished: z.boolean() }),
})
.refine(() => polygon?.isFinished === true, {
- message: t("ui.form.message.polygonDrawing.error.mustBeFinished"),
+ message: t("masksAndZones.polygonDrawing.error.mustBeFinished", {ns: "views/settings"}),
path: ["polygon.isFinished"],
});
@@ -167,13 +167,17 @@ export default function MotionMaskEditPane({
toast.success(
polygon.name
? t(
- "ui.settingView.masksAndZonesSettings.motionMasks.toast.success",
+ "masksAndZones.motionMasks.toast.success",
{
polygonName: polygon.name,
+ ns: "views/settings"
},
)
: t(
- "ui.settingView.masksAndZonesSettings.motionMasks.toast.success.noName",
+ "masksAndZones.motionMasks.toast.success.noName",
+ {
+ ns: "views/settings"
+ }
),
{
position: "top-center",
@@ -218,7 +222,10 @@ export default function MotionMaskEditPane({
useEffect(() => {
document.title = t(
- "ui.settingView.masksAndZonesSettings.motionMasks.documentTitle",
+ "masksAndZones.motionMasks.documentTitle",
+ {
+ ns: "views/settings"
+ }
);
}, []);
@@ -231,13 +238,13 @@ export default function MotionMaskEditPane({
{polygon.name.length
- ? t("ui.settingView.masksAndZonesSettings.motionMasks.edit")
- : t("ui.settingView.masksAndZonesSettings.motionMasks.add")}
+ ? t("masksAndZones.motionMasks.edit", {ns: "views/settings"})
+ : t("masksAndZones.motionMasks.add", {ns: "views/settings"})}
-
- ui.settingView.masksAndZonesSettings.motionMasks.context
+
+ masksAndZones.motionMasks.context
@@ -248,8 +255,8 @@ export default function MotionMaskEditPane({
rel="noopener noreferrer"
className="inline"
>
-
- ui.settingView.masksAndZonesSettings.motionMasks.context.documentation
+
+ masksAndZones.motionMasks.context.documentation
{" "}
@@ -259,8 +266,9 @@ export default function MotionMaskEditPane({
{polygons && activePolygonIndex !== undefined && (
- {t("ui.settingView.masksAndZonesSettings.motionMasks.point", {
+ {t("masksAndZones.motionMasks.point", {
count: polygons[activePolygonIndex].points.length,
+ ns: "views/settings"
})}
{polygons[activePolygonIndex].isFinished && (
@@ -276,8 +284,8 @@ export default function MotionMaskEditPane({
)}
-
- ui.settingView.masksAndZonesSettings.motionMasks.clickDrawPolygon
+
+ masksAndZones.motionMasks.clickDrawPolygon
@@ -287,15 +295,16 @@ export default function MotionMaskEditPane({
<>
{t(
- "ui.settingView.masksAndZonesSettings.motionMasks.polygonAreaTooLarge",
+ "masksAndZones.motionMasks.polygonAreaTooLarge",
{
polygonArea: Math.round(polygonArea * 100),
+ ns: "views/settings"
},
)}
-
- ui.settingView.masksAndZonesSettings.motionMasks.polygonAreaTooLarge.tips
+
+ masksAndZones.motionMasks.polygonAreaTooLarge.tips
-
- ui.settingView.masksAndZonesSettings.motionMasks.polygonAreaTooLarge.documentation
+
+ masksAndZones.motionMasks.polygonAreaTooLarge.documentation
{" "}
@@ -342,7 +351,7 @@ export default function MotionMaskEditPane({
aria-label="Cancel"
onClick={onCancel}
>
- ui.cancel
+ button.cancel
- ui.saving
+ button.saving
) : (
-
ui.save
+
button.save
)}
diff --git a/web/src/components/settings/ObjectMaskEditPane.tsx b/web/src/components/settings/ObjectMaskEditPane.tsx
index 336e7b13e..dbcefda9d 100644
--- a/web/src/components/settings/ObjectMaskEditPane.tsx
+++ b/web/src/components/settings/ObjectMaskEditPane.tsx
@@ -109,7 +109,7 @@ export default function ObjectMaskEditPane({
polygon: z.object({ isFinished: z.boolean(), name: z.string() }),
})
.refine(() => polygon?.isFinished === true, {
- message: t("ui.form.message.polygonDrawing.error.mustBeFinished"),
+ message: t("masksAndZones.polygonDrawing.error.mustBeFinished", {ns: "views/settings"}),
path: ["polygon.isFinished"],
});
@@ -199,13 +199,17 @@ export default function ObjectMaskEditPane({
toast.success(
polygon.name
? t(
- "ui.settingView.masksAndZonesSettings.objectMasks.toast.success",
+ "masksAndZones.objectMasks.toast.success",
{
polygonName: polygon.name,
+ ns: "views/settings"
},
)
: t(
- "ui.settingView.masksAndZonesSettings.objectMasks.toast.success.noName",
+ "masksAndZones.objectMasks.toast.success.noName",
+ {
+ ns: "views/settings"
+ }
),
{
position: "top-center",
@@ -214,7 +218,7 @@ export default function ObjectMaskEditPane({
updateConfig();
} else {
toast.error(
- t("ui.toast.save.error", {
+ t("toast.save.error", {
errorMessage: res.statusText,
}),
{
@@ -225,7 +229,7 @@ export default function ObjectMaskEditPane({
})
.catch((error) => {
toast.error(
- t("ui.toast.save.error", {
+ t("toast.save.error", {
errorMessage: error.response.data.message,
}),
{ position: "top-center" },
@@ -259,7 +263,10 @@ export default function ObjectMaskEditPane({
useEffect(() => {
document.title = t(
- "ui.settingView.masksAndZonesSettings.objectMasks.documentTitle",
+ "masksAndZones.objectMasks.documentTitle",
+ {
+ ns: "views/settings"
+ }
);
}, []);
@@ -272,13 +279,17 @@ export default function ObjectMaskEditPane({
{polygon.name.length
- ? t("ui.settingView.masksAndZonesSettings.objectMasks.edit")
- : t("ui.settingView.masksAndZonesSettings.objectMasks.add")}
+ ? t("masksAndZones.objectMasks.edit", {
+ ns: "views/settings"
+ })
+ : t("masksAndZones.objectMasks.add", {
+ ns: "views/settings"
+ })}
-
- ui.settingView.masksAndZonesSettings.objectMasks.context
+
+ masksAndZones.objectMasks.context
@@ -286,8 +297,9 @@ export default function ObjectMaskEditPane({
{polygons && activePolygonIndex !== undefined && (
- {t("ui.settingView.masksAndZonesSettings.objectMasks.point", {
+ {t("masksAndZones.objectMasks.point", {
count: polygons[activePolygonIndex].points.length,
+ ns: "views/settings"
})}
{polygons[activePolygonIndex].isFinished && (
@@ -303,8 +315,8 @@ export default function ObjectMaskEditPane({
)}
-
- ui.settingView.masksAndZonesSettings.objectMasks.clickDrawPolygon
+
+ masksAndZones.objectMasks.clickDrawPolygon
@@ -331,8 +343,8 @@ export default function ObjectMaskEditPane({
render={({ field }) => (
-
- ui.settingView.masksAndZonesSettings.objectMasks.objects
+
+ masksAndZones.objectMasks.objects
-
- ui.settingView.masksAndZonesSettings.objectMasks.objects.desc
+
+ masksAndZones.objectMasks.objects.desc
@@ -375,7 +387,7 @@ export default function ObjectMaskEditPane({
aria-label="Cancel"
onClick={onCancel}
>
- ui.cancel
+ button.cancel
- ui.saving
+ button.saving
) : (
- ui.save
+ button.save
)}
@@ -452,14 +464,14 @@ export function ZoneObjectSelector({ camera }: ZoneObjectSelectorProps) {
<>
-
- ui.settingView.masksAndZonesSettings.objectMasks.objects.allObjectTypes
+
+ masksAndZones.objectMasks.objects.allObjectTypes
{allLabels.map((item) => (
- {t("object." + item)}
+ {t(item, {ns: "objects"})}
))}
diff --git a/web/src/components/settings/PolygonItem.tsx b/web/src/components/settings/PolygonItem.tsx
index 0a3639134..23ba884c8 100644
--- a/web/src/components/settings/PolygonItem.tsx
+++ b/web/src/components/settings/PolygonItem.tsx
@@ -316,7 +316,7 @@ export default function PolygonItem({
/>
- ui.edit
+ button.edit
@@ -331,7 +331,7 @@ export default function PolygonItem({
/>
- ui.copyCoordinates
+ button.copyCoordinates
@@ -347,7 +347,7 @@ export default function PolygonItem({
/>
- ui.delete
+ button.delete
diff --git a/web/src/components/settings/SearchSettings.tsx b/web/src/components/settings/SearchSettings.tsx
index b5c0bbf60..e938136a4 100644
--- a/web/src/components/settings/SearchSettings.tsx
+++ b/web/src/components/settings/SearchSettings.tsx
@@ -52,7 +52,7 @@ export default function ExploreSettings({
size="sm"
>
-
ui.searchView.settings
+
explore.settings.title
);
const content = (
@@ -60,10 +60,10 @@ export default function ExploreSettings({
- ui.searchView.settings.defaultView
+ explore.settings.defaultView
- ui.searchView.settings.defaultView.desc
+ explore.settings.defaultView.desc
{defaultView == "summary"
- ? t("ui.searchView.settings.defaultView.summary")
- : t("ui.searchView.settings.defaultView.unfilteredGrid")}
+ ? t("explore.settings.defaultView.summary", {ns: "components/filter"})
+ : t("explore.settings.defaultView.unfilteredGrid", {ns: "components/filter"})}
@@ -84,8 +84,8 @@ export default function ExploreSettings({
value={value}
>
{value == "summary"
- ? t("ui.searchView.settings.defaultView.summary")
- : t("ui.searchView.settings.defaultView.unfilteredGrid")}
+ ? t("explore.settings.defaultView.summary", {ns: "components/filter"})
+ : t("explore.settings.defaultView.unfilteredGrid", {ns: "components/filter"})}
))}
@@ -98,10 +98,10 @@ export default function ExploreSettings({
- ui.searchView.settings.gridColumns
+ explore.settings.gridColumns
- ui.searchView.settings.gridColumns.desc
+ explore.settings.gridColumns.desc
@@ -163,10 +163,10 @@ export function SearchTypeContent({
- ui.searchView.settings.searchSource
+ explore.settings.searchSource
- ui.searchView.settings.searchSource.desc
+ explore.settings.searchSource.desc
diff --git a/web/src/components/settings/ZoneEditPane.tsx b/web/src/components/settings/ZoneEditPane.tsx
index 6b57a7b18..d9aa764c1 100644
--- a/web/src/components/settings/ZoneEditPane.tsx
+++ b/web/src/components/settings/ZoneEditPane.tsx
@@ -105,7 +105,8 @@ export default function ZoneEditPane({
.string()
.min(2, {
message: t(
- "ui.form.message.zoneName.error.mustBeAtLeastTwoCharacters",
+ "masksAndZones.form.zoneName.error.mustBeAtLeastTwoCharacters",
+ { ns: "views/settings"}
),
})
.transform((val: string) => val.trim().replace(/\s+/g, "_"))
@@ -115,7 +116,8 @@ export default function ZoneEditPane({
},
{
message: t(
- "ui.form.message.zoneName.error.mustNotBeSameWithCamera",
+ "masksAndZones.form.zoneName.error.mustNotBeSameWithCamera",
+ { ns: "views/settings"}
),
},
)
@@ -129,7 +131,9 @@ export default function ZoneEditPane({
return !otherPolygonNames.includes(value);
},
{
- message: t("ui.form.message.zoneName.error.alreadyExists"),
+ message: t("masksAndZones.form.zoneName.error.alreadyExists",
+ { ns: "views/settings"}
+ ),
},
)
.refine(
@@ -137,29 +141,36 @@ export default function ZoneEditPane({
return !value.includes(".");
},
{
- message: t("ui.form.message.zoneName.error.mustNotContainPeriod"),
+ message: t("masksAndZones.form.zoneName.error.mustNotContainPeriod",
+ { ns: "views/settings"}
+ ),
},
)
.refine((value: string) => /^[a-zA-Z0-9_-]+$/.test(value), {
- message: t("ui.form.message.zoneName.error.hasIllegalCharacter"),
+ message: t("masksAndZones.form.zoneName.error.hasIllegalCharacter",
+ { ns: "views/settings"}
+ ),
}),
inertia: z.coerce
.number()
.min(1, {
- message: t("ui.form.message.inertia.error.mustBeAboveZero"),
+ message: t("masksAndZones.form.inertia.error.mustBeAboveZero",
+ { ns: "views/settings"}
+ ),
})
.or(z.literal("")),
loitering_time: z.coerce
.number()
.min(0, {
message: t(
- "ui.form.message.loiteringTime.error.mustBeGreaterOrEqualZero",
+ "masksAndZones.form.loiteringTime.error.mustBeGreaterOrEqualZero",
+ { ns: "views/settings"}
),
})
.optional()
.or(z.literal("")),
isFinished: z.boolean().refine(() => polygon?.isFinished === true, {
- message: t("ui.form.message.polygonDrawing.error.mustBeFinished"),
+ message: t("masksAndZones.polygonDrawing.error.mustBeFinished", { ns: "views/settings" }),
}),
objects: z.array(z.string()).optional(),
review_alerts: z.boolean().default(false).optional(),
@@ -168,28 +179,28 @@ export default function ZoneEditPane({
lineA: z.coerce
.number()
.min(0.1, {
- message: t("ui.form.message.distance.error"),
+ message: t("masksAndZones.form.distance.error", { ns: "views/settings"}),
})
.optional()
.or(z.literal("")),
lineB: z.coerce
.number()
.min(0.1, {
- message: t("ui.form.message.distance.error"),
+ message: t("masksAndZones.form.distance.error", { ns: "views/settings"}),
})
.optional()
.or(z.literal("")),
lineC: z.coerce
.number()
.min(0.1, {
- message: t("ui.form.message.distance.error"),
+ message: t("masksAndZones.form.distance.error", { ns: "views/settings"}),
})
.optional()
.or(z.literal("")),
lineD: z.coerce
.number()
.min(0.1, {
- message: t("ui.form.message.distance.error"),
+ message: t("masksAndZones.form.distance.error", { ns: "views/settings"}),
})
.optional()
.or(z.literal("")),
@@ -209,7 +220,7 @@ export default function ZoneEditPane({
return true;
},
{
- message: t("ui.form.message.distance.error.mustBeFilled"),
+ message: t("masksAndZones.form.distance.error.mustBeFilled", { ns: "views/settings"}),
path: ["speedEstimation"],
},
)
@@ -224,7 +235,10 @@ export default function ZoneEditPane({
},
{
message: t(
- "ui.settingView.masksAndZonesSettings.zones.speedThreshold.toast.error.loiteringTimeError",
+ "masksAndZones.zones.speedThreshold.toast.error.loiteringTimeError",
+ {
+ ns: "views/settings"
+ }
),
path: ["loitering_time"],
},
@@ -265,7 +279,10 @@ export default function ZoneEditPane({
) {
toast.error(
t(
- "ui.settingView.masksAndZonesSettings.zones.speedThreshold.toast.error.pointLengthError",
+ "masksAndZones.zones.speedThreshold.toast.error.pointLengthError",
+ {
+ ns: "views/settings"
+ }
),
);
form.setValue("speedEstimation", false);
@@ -330,7 +347,7 @@ export default function ZoneEditPane({
// Wait for the config to be updated
mutatedConfig = await updateConfig();
} catch (error) {
- toast.error(t("ui.toast.save.error.noMessage"), {
+ toast.error(t("toast.save.error.noMessage"), {
position: "top-center",
});
return;
@@ -412,8 +429,9 @@ export default function ZoneEditPane({
.then((res) => {
if (res.status === 200) {
toast.success(
- t("ui.settingView.masksAndZonesSettings.zones.toast.success", {
+ t("masksAndZones.zones.toast.success", {
zoneName,
+ ns: "views/settings",
}),
{
position: "top-center",
@@ -422,7 +440,7 @@ export default function ZoneEditPane({
updateConfig();
} else {
toast.error(
- t("ui.toast.save.error", { errorMessage: res.statusText }),
+ t("toast.save.error", { errorMessage: res.statusText }),
{
position: "top-center",
},
@@ -431,7 +449,7 @@ export default function ZoneEditPane({
})
.catch((error) => {
toast.error(
- t("ui.toast.save.error", {
+ t("toast.save.error", {
errorMessage: error.response.data.message,
}),
{ position: "top-center" },
@@ -470,7 +488,10 @@ export default function ZoneEditPane({
useEffect(() => {
document.title = t(
- "ui.settingView.masksAndZonesSettings.zones.documentTitle",
+ "masksAndZones.zones.documentTitle",
+ {
+ ns: "views/settings"
+ }
);
}, []);
@@ -483,20 +504,25 @@ export default function ZoneEditPane({
{polygon.name.length
- ? t("ui.settingView.masksAndZonesSettings.zones.edit")
- : t("ui.settingView.masksAndZonesSettings.zones.add")}
+ ? t("masksAndZones.zones.edit",{
+ ns: "views/settings"
+ })
+ : t("masksAndZones.zones.add",{
+ ns: "views/settings"
+ })}
- ui.settingView.masksAndZonesSettings.zones.desc
+ masksAndZones.zones.desc
{polygons && activePolygonIndex !== undefined && (
- {t("ui.settingView.masksAndZonesSettings.zones.point", {
+ {t("masksAndZones.zones.point", {
count: polygons[activePolygonIndex].points.length,
+ ns: "views/settings"
})}
{polygons[activePolygonIndex].isFinished && (
@@ -513,8 +539,8 @@ export default function ZoneEditPane({
)}
-
- ui.settingView.masksAndZonesSettings.zones.clickDrawPolygon
+
+ masksAndZones.zones.clickDrawPolygon
@@ -528,20 +554,23 @@ export default function ZoneEditPane({
render={({ field }) => (
- ui.settingView.masksAndZonesSettings.zones.name
+ masksAndZones.zones.name
-
- ui.settingView.masksAndZonesSettings.zones.name.tips
+
+ masksAndZones.zones.name.tips
@@ -555,8 +584,8 @@ export default function ZoneEditPane({
render={({ field }) => (
-
- ui.settingView.masksAndZonesSettings.zones.inertia
+
+ masksAndZones.zones.inertia
@@ -567,8 +596,8 @@ export default function ZoneEditPane({
/>
-
- ui.settingView.masksAndZonesSettings.zones.inertia.desc
+
+ masksAndZones.zones.inertia.desc
@@ -582,8 +611,8 @@ export default function ZoneEditPane({
render={({ field }) => (
-
- ui.settingView.masksAndZonesSettings.zones.loiteringTime
+
+ masksAndZones.zones.loiteringTime
@@ -594,8 +623,8 @@ export default function ZoneEditPane({
/>
-
- ui.settingView.masksAndZonesSettings.zones.loiteringTime.desc
+
+ masksAndZones.zones.loiteringTime.desc
@@ -605,11 +634,11 @@ export default function ZoneEditPane({
- ui.settingView.masksAndZonesSettings.zones.objects
+ masksAndZones.zones.objects
-
- ui.settingView.masksAndZonesSettings.zones.objects.desc
+
+ masksAndZones.zones.objects.desc
-
- ui.settingView.masksAndZonesSettings.zones.speedEstimation
+
+ masksAndZones.zones.speedEstimation
0) {
toast.error(
t(
- "ui.settingView.masksAndZonesSettings.zones.speedEstimation.loiteringTimeError",
+ "masksAndZones.zones.speedEstimation.loiteringTimeError",
+ {
+ ns: "views/settings"
+ }
),
);
}
@@ -681,8 +716,8 @@ export default function ZoneEditPane({
-
- ui.settingView.masksAndZonesSettings.zones.speedEstimation.desc
+
+ masksAndZones.zones.speedEstimation.desc
@@ -799,11 +834,12 @@ export default function ZoneEditPane({
values={{
unit:
config?.ui.unit_system == "imperial"
- ? t("ui.unit.speed.mph")
- : t("ui.unit.speed.kph"),
+ ? t("unit.speed.mph")
+ : t("unit.speed.kph"),
}}
+ ns="views/settings"
>
- ui.settingView.masksAndZonesSettings.zones.speedThreshold
+ masksAndZones.zones.speedThreshold
@@ -813,8 +849,8 @@ export default function ZoneEditPane({
/>
-
- ui.settingView.masksAndZonesSettings.zones.speedThreshold.desc
+
+ masksAndZones.zones.speedThreshold.desc
@@ -839,7 +875,7 @@ export default function ZoneEditPane({
aria-label="Cancel"
onClick={onCancel}
>
-
ui.cancel
+
button.cancel
- ui.saving
+ button.saving
) : (
-
ui.save
+
button.save
)}
@@ -936,7 +972,7 @@ export function ZoneObjectSelector({
- ui.settingView.masksAndZonesSettings.zones.allObjects
+ masksAndZones.zones.allObjects
- {t("object." + item)}
+ {t(item, {ns: "objects"})}
- ui.apply
+ button.apply
{
@@ -442,7 +442,7 @@ export function DateRangePicker({
variant="ghost"
aria-label="Reset"
>
- ui.reset
+ button.reset
diff --git a/web/src/context/theme-provider.tsx b/web/src/context/theme-provider.tsx
index 84bccda97..2fe14ee66 100644
--- a/web/src/context/theme-provider.tsx
+++ b/web/src/context/theme-provider.tsx
@@ -23,7 +23,7 @@ export const colorSchemes: ColorScheme[] = [
// eslint-disable-next-line react-refresh/only-export-components
export const friendlyColorSchemeName = (className: string): string => {
const words = className.split("-").slice(1); // Exclude the first word (e.g., 'theme')
- return "ui.theme." + words.join(".");
+ return "menu.theme." + words.join(".");
};
type ThemeProviderProps = {
diff --git a/web/src/hooks/use-navigation.ts b/web/src/hooks/use-navigation.ts
index 9f773888d..9bb780a2e 100644
--- a/web/src/hooks/use-navigation.ts
+++ b/web/src/hooks/use-navigation.ts
@@ -31,35 +31,35 @@ export default function useNavigation(
id: ID_LIVE,
variant,
icon: FaVideo,
- title: "ui.menu.live",
+ title: "menu.live",
url: "/",
},
{
id: ID_REVIEW,
variant,
icon: MdVideoLibrary,
- title: "ui.menu.review",
+ title: "menu.review",
url: "/review",
},
{
id: ID_EXPLORE,
variant,
icon: IoSearch,
- title: "ui.menu.explore",
+ title: "menu.explore",
url: "/explore",
},
{
id: ID_EXPORT,
variant,
icon: FaCompactDisc,
- title: "ui.menu.export",
+ title: "menu.export",
url: "/export",
},
{
id: ID_PLAYGROUND,
variant,
icon: LuConstruction,
- title: "ui.menu.uiPlayground",
+ title: "menu.uiPlayground",
url: "/playground",
enabled: ENV !== "production",
},
@@ -67,7 +67,7 @@ export default function useNavigation(
id: ID_FACE_LIBRARY,
variant,
icon: TbFaceId,
- title: "Face Library",
+ title: "menu.faceLibrary",
url: "/faces",
enabled: isDesktop && config?.face_recognition.enabled,
},
diff --git a/web/src/hooks/use-stats.ts b/web/src/hooks/use-stats.ts
index 95c64b616..af305bc4e 100644
--- a/web/src/hooks/use-stats.ts
+++ b/web/src/hooks/use-stats.ts
@@ -73,9 +73,10 @@ export default function useStats(stats: FrigateStats | undefined) {
if (!isNaN(ffmpegAvg) && ffmpegAvg >= CameraFfmpegThreshold.error) {
problems.push({
- text: t("ui.stats.ffmpegHighCpuUsage", {
+ text: t("stats.ffmpegHighCpuUsage", {
camera: capitalizeFirstLetter(name.replaceAll("_", " ")),
ffmpegAvg,
+ ns: "views/system"
}), //`${capitalizeFirstLetter(name.replaceAll("_", " "))} has high FFMPEG CPU usage (${ffmpegAvg}%)`,
color: "text-danger",
relevantLink: "/system#cameras",
@@ -84,9 +85,10 @@ export default function useStats(stats: FrigateStats | undefined) {
if (!isNaN(detectAvg) && detectAvg >= CameraDetectThreshold.error) {
problems.push({
- text: t("ui.stats.detectHighCpuUsage", {
+ text: t("stats.detectHighCpuUsage", {
camera: capitalizeFirstLetter(name.replaceAll("_", " ")),
detectAvg,
+ ns: "views/system"
}), //`${capitalizeFirstLetter(name.replaceAll("_", " "))} has high detect CPU usage (${detectAvg}%)`,
color: "text-danger",
relevantLink: "/system#cameras",
diff --git a/web/src/pages/ConfigEditor.tsx b/web/src/pages/ConfigEditor.tsx
index 6efee3201..28cf2c466 100644
--- a/web/src/pages/ConfigEditor.tsx
+++ b/web/src/pages/ConfigEditor.tsx
@@ -190,7 +190,7 @@ function ConfigEditor() {
- ui.configEditorView.configEditor
+ configEditor
- ui.configEditorView.copyConfig
+ copyConfig
- ui.configEditorView.saveAndRestart
+ saveAndRestart
- ui.configEditorView.saveOnly
+ saveOnly
diff --git a/web/src/pages/Events.tsx b/web/src/pages/Events.tsx
index 5e38747a7..4ddda3f94 100644
--- a/web/src/pages/Events.tsx
+++ b/web/src/pages/Events.tsx
@@ -78,9 +78,9 @@ export default function Events() {
useEffect(() => {
if (recording) {
- document.title = t("ui.review.recordings.documentTitle");
+ document.title = t("recordings.documentTitle", {ns: "views/events"});
} else {
- document.title = t("ui.review.documentTitle");
+ document.title = t("documentTitle", {ns: "views/events"});
}
}, [recording, severity]);
diff --git a/web/src/pages/Exports.tsx b/web/src/pages/Exports.tsx
index a4f21d4d1..853d4e80e 100644
--- a/web/src/pages/Exports.tsx
+++ b/web/src/pages/Exports.tsx
@@ -29,7 +29,7 @@ function Exports() {
const { data: exports, mutate } = useSWR
("exports");
useEffect(() => {
- document.title = t("ui.exportView.documentTitle");
+ document.title = t("documentTitle", { ns: "views/exports" });
}, []);
// Search
@@ -121,17 +121,17 @@ function Exports() {
- ui.exportView.deleteExport
+ deleteExport
-
- ui.exportView.deleteExport.desc
+
+ deleteExport.desc
- ui.cancel
+ button.cancel
onHandleDelete()}
>
- ui.delete
+ button.delete
@@ -187,7 +187,7 @@ function Exports() {
setSearch(e.target.value)}
/>
@@ -215,7 +215,7 @@ function Exports() {
) : (
- ui.exportView.noExports
+
)}
diff --git a/web/src/pages/Live.tsx b/web/src/pages/Live.tsx
index 6e9c66c82..1622853f3 100644
--- a/web/src/pages/Live.tsx
+++ b/web/src/pages/Live.tsx
@@ -65,15 +65,17 @@ function Live() {
.split("_")
.filter((text) => text)
.map((text) => text[0].toUpperCase() + text.substring(1));
- document.title = t("ui.live.documentTitle.withCamera", {
+ document.title = t("documentTitle.withCamera", {
camera: capitalized.join(" "),
+ ns: "views/live"
});
} else if (cameraGroup && cameraGroup != "default") {
- document.title = t("ui.live.documentTitle.withCamera", {
+ document.title = t("documentTitle.withCamera", {
camera: `${cameraGroup[0].toUpperCase()}${cameraGroup.substring(1)}`,
+ ns: "views/live"
});
} else {
- document.title = t("ui.live.documentTitle");
+ document.title = t("documentTitle", {ns: "views/live"});
}
}, [cameraGroup, selectedCameraName]);
diff --git a/web/src/pages/Settings.tsx b/web/src/pages/Settings.tsx
index 1d27d337f..0ce1f8c41 100644
--- a/web/src/pages/Settings.tsx
+++ b/web/src/pages/Settings.tsx
@@ -194,7 +194,7 @@ export default function Settings() {
aria-label={`Select ${item}`}
>
- {t("ui.settingView.menu." + item)}
+ {t("menu." + item, { ns: "views/settings" })}
))}
diff --git a/web/src/pages/System.tsx b/web/src/pages/System.tsx
index 3a590f5cd..c97293d7b 100644
--- a/web/src/pages/System.tsx
+++ b/web/src/pages/System.tsx
@@ -94,7 +94,7 @@ function System() {
{item == "storage" && }
{item == "cameras" && }
{isDesktop && (
- {t("ui.system." + item)}
+ {t(item+".title", {ns:"views/system"})}
)}
))}
@@ -103,14 +103,14 @@ function System() {
{lastUpdated && (
- ui.system.lastRefreshed
+ lastRefreshed
)}
-
System
+
title
{statsSnapshot && (
{statsSnapshot.service.version}
diff --git a/web/src/utils/i18n.ts b/web/src/utils/i18n.ts
index 4ccfc326d..aae43d1d1 100644
--- a/web/src/utils/i18n.ts
+++ b/web/src/utils/i18n.ts
@@ -7,14 +7,30 @@ i18n
.use(HttpBackend)
.init({
fallbackLng: "en", // use en if detected lng is not available
- //lng: "zh-Hans", // language to use, more information here: https://www.i18next.com/overview/configuration-options#languages-namespaces-resources
- // you can use the i18n.changeLanguage function to change the language manually: https://www.i18next.com/overview/api#changelanguage
- // if you're using a language detector, do not define the lng option
backend: {
loadPath: "/locales/{{lng}}/{{ns}}.json",
},
+ ns: [
+ 'common',
+ 'objects',
+ 'audio',
+ 'components/camera',
+ 'components/dialog',
+ 'components/filter',
+ 'components/icons',
+ 'components/player',
+ 'views/events',
+ 'views/explore',
+ 'views/live',
+ 'views/settings',
+ 'views/system',
+ 'views/exports',
+ 'views/explore'
+ ],
+ defaultNS: 'common',
+
react: {
transSupportBasicHtmlNodes: true,
transKeepBasicHtmlNodesFor: [
@@ -30,19 +46,32 @@ i18n
interpolation: {
escapeValue: false, // react already safes from xss
},
- keySeparator: false,
+ keySeparator: ".",
parseMissingKeyHandler: (key: string) => {
const parts = key.split(".");
- if (parts.length > 1) {
- if (parts[0] === "object" || parts[0] === "audio") {
- return (
- parts[1].replaceAll("_", " ").charAt(0).toUpperCase() +
- parts[1].slice(1)
- );
- }
- return parts[parts.length - 1];
+
+ // Handle special cases for objects and audio
+ if (parts[0] === "object" || parts[0] === "audio") {
+ return parts[1]
+ ?.split("_")
+ .map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
+ .join(" ") || key;
}
- return key;
+
+ // For nested keys, try to make them more readable
+ if (parts.length > 1) {
+ const lastPart = parts[parts.length - 1];
+ return lastPart
+ .split("_")
+ .map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
+ .join(" ");
+ }
+
+ // For single keys, just capitalize and format
+ return key
+ .split("_")
+ .map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
+ .join(" ");
},
});
diff --git a/web/src/views/events/EventView.tsx b/web/src/views/events/EventView.tsx
index af07fee85..705bdd5c9 100644
--- a/web/src/views/events/EventView.tsx
+++ b/web/src/views/events/EventView.tsx
@@ -199,7 +199,7 @@ export default function EventView({
)
.then((response) => {
if (response.status == 200) {
- toast.success(t("ui.dialog.export.toast.success"), {
+ toast.success(t("export.toast.success", { ns: "components/dialog"}), {
position: "top-center",
});
}
@@ -207,11 +207,11 @@ export default function EventView({
.catch((error) => {
if (error.response?.data?.message) {
toast.error(
- `Failed to start export: ${error.response.data.message}`,
+ t("export.toast.error", { ns: "components/dialog", message: error.response.data.message }),
{ position: "top-center" },
);
} else {
- toast.error(`Failed to start export: ${error.message}`, {
+ toast.error(t("export.toast.error", { ns: "components/dialog", message: error.message }), {
position: "top-center",
});
}
@@ -289,7 +289,7 @@ export default function EventView({
<>
-
ui.eventView.alerts
+
alerts
{reviewCounts.alert > -1 ? (
` ∙ ${reviewCounts.alert}`
) : (
@@ -325,7 +325,7 @@ export default function EventView({
<>
-
ui.eventView.detections
+
detections
{reviewCounts.detection > -1 ? (
` ∙ ${reviewCounts.detection}`
) : (
@@ -349,7 +349,7 @@ export default function EventView({
<>
- ui.eventView.motion
+ motion.label
>
)}
@@ -718,7 +718,7 @@ function DetectionReview({
{!loading && currentItems?.length === 0 && (
- ui.eventView.empty.{severity.replace(/_/g, " ")}
+ empty.{severity.replace(/_/g, " ")}
)}
@@ -1052,7 +1052,7 @@ function MotionReview({
return (
- ui.eventView.empty.motion
+ empty.motion
);
}
diff --git a/web/src/views/live/DraggableGridLayout.tsx b/web/src/views/live/DraggableGridLayout.tsx
index d2170dc99..a3d14aded 100644
--- a/web/src/views/live/DraggableGridLayout.tsx
+++ b/web/src/views/live/DraggableGridLayout.tsx
@@ -695,7 +695,7 @@ export default function DraggableGridLayout({
- {fullscreen ? t("ui.exitFullscreen") : t("ui.fullscreen")}
+ {fullscreen ? t("button.exitFullscreen") : t("button.fullscreen")}
>
diff --git a/web/src/views/live/LiveCameraView.tsx b/web/src/views/live/LiveCameraView.tsx
index 170ec35f0..e2ff25bd7 100644
--- a/web/src/views/live/LiveCameraView.tsx
+++ b/web/src/views/live/LiveCameraView.tsx
@@ -435,7 +435,7 @@ export default function LiveCameraView({
{isDesktop && (
- ui.back
+ button.back
)}
@@ -459,7 +459,7 @@ export default function LiveCameraView({
{isDesktop && (
- ui.history
+ button.history
)}
@@ -481,7 +481,7 @@ export default function LiveCameraView({
{isDesktop && (
- ui.back
+ button.back
)}
@@ -492,7 +492,7 @@ export default function LiveCameraView({
variant={fullscreen ? "overlay" : "primary"}
Icon={fullscreen ? FaCompress : FaExpand}
isActive={fullscreen}
- title={fullscreen ? t("ui.close") : t("ui.fullscreen")}
+ title={fullscreen ? t("button.close") : t("button.fullscreen")}
onClick={toggleFullscreen}
/>
)}
@@ -502,7 +502,7 @@ export default function LiveCameraView({
variant={fullscreen ? "overlay" : "primary"}
Icon={LuPictureInPicture}
isActive={pip}
- title={pip ? t("ui.close") : t("ui.pictureInPicture")}
+ title={pip ? t("button.close") : t("button.pictureInPicture")}
onClick={() => {
if (!pip) {
setPip(true);
@@ -763,7 +763,7 @@ function PtzControlPanel({
{ptz?.features?.includes("pt") && (
<>
{
e.preventDefault();
sendPtz("MOVE_LEFT");
@@ -778,7 +778,7 @@ function PtzControlPanel({
{
e.preventDefault();
sendPtz("MOVE_UP");
@@ -793,7 +793,7 @@ function PtzControlPanel({
{
e.preventDefault();
sendPtz("MOVE_DOWN");
@@ -808,7 +808,7 @@ function PtzControlPanel({
{
e.preventDefault();
sendPtz("MOVE_RIGHT");
@@ -827,7 +827,7 @@ function PtzControlPanel({
{ptz?.features?.includes("zoom") && (
<>
{
e.preventDefault();
sendPtz("ZOOM_IN");
@@ -842,7 +842,7 @@ function PtzControlPanel({
{
e.preventDefault();
sendPtz("ZOOM_OUT");
@@ -1018,11 +1018,11 @@ function FrigateCameraFeatures({
const toastId = toast.success(
- ui.live.manualRecording.started
+ manualRecording.started
{!camera.record.enabled || camera.record.retain.days == 0 ? (
- ui.live.manualRecording.recordDisabledTips
+ manualRecording.recordDisabledTips
) : (
@@ -1036,7 +1036,7 @@ function FrigateCameraFeatures({
setActiveToastId(toastId);
}
} catch (error) {
- toast.error(t("ui.live.manualRecording.failedToStart"), {
+ toast.error(t("manualRecording.failedToStart", { ns: "views/live"}), {
position: "top-center",
});
}
@@ -1053,12 +1053,12 @@ function FrigateCameraFeatures({
});
recordingEventIdRef.current = null;
setIsRecording(false);
- toast.success(t("ui.live.manualRecording.ended"), {
+ toast.success(t("manualRecording.ended", { ns: "views/live"}), {
position: "top-center",
});
}
} catch (error) {
- toast.error(t("ui.live.manualRecording.failedToEnd"), {
+ toast.error(t("manualRecording.failedToEnd", { ns: "views/live"}), {
position: "top-center",
});
}
@@ -1107,8 +1107,8 @@ function FrigateCameraFeatures({
isActive={detectState == "ON"}
title={
detectState == "ON"
- ? t("ui.live.detect.disable")
- : t("ui.live.detect.enable")
+ ? t("detect.disable", { ns: "views/live"})
+ : t("detect.enable", { ns: "views/live"})
}
onClick={() => sendDetect(detectState == "ON" ? "OFF" : "ON")}
disabled={!cameraEnabled}
@@ -1120,8 +1120,8 @@ function FrigateCameraFeatures({
isActive={recordState == "ON"}
title={
recordState == "ON"
- ? t("ui.live.recording.disable")
- : t("ui.live.recording.enable")
+ ? t("recording.disable", { ns: "views/live"})
+ : t("recording.enable", { ns: "views/live"})
}
onClick={() => sendRecord(recordState == "ON" ? "OFF" : "ON")}
disabled={!cameraEnabled}
@@ -1133,8 +1133,8 @@ function FrigateCameraFeatures({
isActive={snapshotState == "ON"}
title={
snapshotState == "ON"
- ? t("ui.live.snapshots.disable")
- : t("ui.live.snapshots.enable")
+ ? t("snapshots.disable", { ns: "views/live"})
+ : t("snapshots.enable", { ns: "views/live"})
}
onClick={() => sendSnapshot(snapshotState == "ON" ? "OFF" : "ON")}
disabled={!cameraEnabled}
@@ -1147,8 +1147,8 @@ function FrigateCameraFeatures({
isActive={audioState == "ON"}
title={
audioState == "ON"
- ? t("ui.live.audioDetect.disable")
- : t("ui.live.audioDetect.enable")
+ ? t("audioDetect.disable", { ns: "views/live"})
+ : t("audioDetect.enable", { ns: "views/live"})
}
onClick={() => sendAudio(audioState == "ON" ? "OFF" : "ON")}
disabled={!cameraEnabled}
@@ -1162,8 +1162,8 @@ function FrigateCameraFeatures({
isActive={autotrackingState == "ON"}
title={
autotrackingState == "ON"
- ? t("ui.live.autotracking.disable")
- : t("ui.live.autotracking.enable")
+ ? t("autotracking.disable", { ns: "views/live"})
+ : t("autotracking.enable", { ns: "views/live"})
}
onClick={() =>
sendAutotracking(autotrackingState == "ON" ? "OFF" : "ON")
@@ -1180,8 +1180,8 @@ function FrigateCameraFeatures({
Icon={isRecording ? TbRecordMail : TbRecordMailOff}
isActive={isRecording}
title={t(
- "ui.live.manualRecording." + (isRecording ? "stop" : "start"),
- )}
+ "manualRecording." + (isRecording ? "stop" : "start"), { ns: "views/live"})
+ }
onClick={handleEventButtonClick}
disabled={!cameraEnabled}
/>
@@ -1203,12 +1203,12 @@ function FrigateCameraFeatures({
{!isRestreamed && (
- ui.dialog.streaming
+ streaming
- ui.dialog.streaming.restreaming.disabled
+ streaming.restreaming.disabled
@@ -1218,7 +1218,7 @@ function FrigateCameraFeatures({
- ui.dialog.streaming.restreaming.desc
+ streaming.restreaming.desc
-
- ui.dialog.streaming.restreaming.readTheDocumentation
+
+ streaming.restreaming.readTheDocumentation
@@ -1409,7 +1409,7 @@ function FrigateCameraFeatures({
className="mx-0 cursor-pointer text-primary"
htmlFor="showstats"
>
- ui.dialog.streaming.showStats
+ streaming.showStats
- ui.dialog.streaming.showStats.desc
+ streaming.showStats.desc
-
ui.dialog.streaming.debugView
+
streaming.debugView
navigate(`/settings?page=debug&camera=${camera.name}`)
@@ -1511,12 +1511,12 @@ function FrigateCameraFeatures({
{!isRestreamed && (
- ui.dialog.streaming
+ streaming
- ui.dialog.streaming.restreaming.disabled
+ streaming.restreaming.disabled
@@ -1526,7 +1526,7 @@ function FrigateCameraFeatures({
- ui.dialog.streaming.restreaming.desc
+ streaming.restreaming.desc
-
- ui.dialog.streaming.restreaming.readTheDocumentation
+
+ streaming.restreaming.readTheDocumentation
@@ -1689,8 +1689,8 @@ function FrigateCameraFeatures({
isRecording && "animate-pulse bg-red-500 hover:bg-red-600",
)}
>
-
- ui.live.manualRecording.{isRecording ? "end" : "start"}
+
+ manualRecording.{isRecording ? "end" : "start"}
diff --git a/web/src/views/live/LiveDashboardView.tsx b/web/src/views/live/LiveDashboardView.tsx
index 32879788b..c4f897694 100644
--- a/web/src/views/live/LiveDashboardView.tsx
+++ b/web/src/views/live/LiveDashboardView.tsx
@@ -563,7 +563,7 @@ export default function LiveDashboardView({
- {fullscreen ? t("ui.exitFullscreen") : t("ui.fullscreen")}
+ {fullscreen ? t("button.exitFullscreen") : t("button.fullscreen")}
diff --git a/web/src/views/recording/RecordingView.tsx b/web/src/views/recording/RecordingView.tsx
index 477b9ab63..947139f6e 100644
--- a/web/src/views/recording/RecordingView.tsx
+++ b/web/src/views/recording/RecordingView.tsx
@@ -401,7 +401,7 @@ export function RecordingView({
{isDesktop && (
- ui.back
+ button.back
)}
@@ -416,7 +416,7 @@ export function RecordingView({
{isDesktop && (
- ui.menu.live
+ menu.live
)}
@@ -494,7 +494,7 @@ export function RecordingView({
aria-label="Select timeline"
>
- ui.review.timeline
+ timeline
- ui.review.events
+ events.label
@@ -811,7 +811,7 @@ function Timeline({
>
{mainCameraReviewItems.length === 0 ? (
- ui.review.events.noFoundForTimePeriod
+ events.noFoundForTimePeriod
) : (
mainCameraReviewItems.map((review) => {
diff --git a/web/src/views/search/SearchView.tsx b/web/src/views/search/SearchView.tsx
index df08abaa1..cee1c15e1 100644
--- a/web/src/views/search/SearchView.tsx
+++ b/web/src/views/search/SearchView.tsx
@@ -521,7 +521,7 @@ export default function SearchView({
{uniqueResults?.length == 0 && !isLoading && (
- ui.searchView.noTrackedObjects
+ noTrackedObjects
)}
diff --git a/web/src/views/settings/AuthenticationView.tsx b/web/src/views/settings/AuthenticationView.tsx
index f51cb32e2..772908239 100644
--- a/web/src/views/settings/AuthenticationView.tsx
+++ b/web/src/views/settings/AuthenticationView.tsx
@@ -16,6 +16,7 @@ import { HiTrash } from "react-icons/hi";
import { FaUserEdit } from "react-icons/fa";
import { LuPlus } from "react-icons/lu";
import { Trans } from "react-i18next";
+import { t } from "i18next";
export default function AuthenticationView() {
const { data: config } = useSWR("config");
@@ -42,7 +43,7 @@ export default function AuthenticationView() {
}
})
.catch((_error) => {
- toast.error("Error setting password", {
+ toast.error(t("users.toast.error.setPasswordFailed", {ns: "views/settings"}), {
position: "top-center",
});
});
@@ -60,7 +61,7 @@ export default function AuthenticationView() {
return users;
}, false);
} catch (error) {
- toast.error("Error creating user. Check server logs.", {
+ toast.error(t("users.toast.error.createUserFailed", {ns: "views/settings"}), {
position: "top-center",
});
}
@@ -76,7 +77,7 @@ export default function AuthenticationView() {
});
}, false);
} catch (error) {
- toast.error("Error deleting user. Check server logs.", {
+ toast.error(t("users.toast.error.deleteUserFailed", {ns: "views/settings"}), {
position: "top-center",
});
}
@@ -92,7 +93,7 @@ export default function AuthenticationView() {
- ui.settingView.users
+ users.title
- ui.settingView.users.addUser
+ users.addUser
@@ -125,7 +126,7 @@ export default function AuthenticationView() {
>
- ui.settingView.users.updatePassword
+ users.updatePassword
- ui.delete
+ button.delete
diff --git a/web/src/views/settings/CameraSettingsView.tsx b/web/src/views/settings/CameraSettingsView.tsx
index 1657ea7b2..893eae2c3 100644
--- a/web/src/views/settings/CameraSettingsView.tsx
+++ b/web/src/views/settings/CameraSettingsView.tsx
@@ -78,7 +78,7 @@ export default function CameraSettingsView({
const alertsLabels = useMemo(() => {
return cameraConfig?.review.alerts.labels
? cameraConfig.review.alerts.labels
- .map((label) => t("object." + label))
+ .map((label) => t(label, {ns: "objects"}))
.join(", ")
: "";
}, [cameraConfig]);
@@ -86,7 +86,7 @@ export default function CameraSettingsView({
const detectionsLabels = useMemo(() => {
return cameraConfig?.review.detections.labels
? cameraConfig.review.detections.labels
- .map((label) => t("object." + label))
+ .map((label) => t(label, {ns: "objects"}))
.join(", ")
: "";
}, [cameraConfig]);
@@ -161,7 +161,7 @@ export default function CameraSettingsView({
if (res.status === 200) {
toast.success(
t(
- "ui.settingView.cameraSettings.reviewClassification.toast.success",
+ "camera.reviewClassification.toast.success",
),
{
position: "top-center",
@@ -170,7 +170,7 @@ export default function CameraSettingsView({
updateConfig();
} else {
toast.error(
- t("ui.toast.save.error", { errorMessage: res.statusText }),
+ t("toast.save.error", { errorMessage: res.statusText }),
{
position: "top-center",
},
@@ -179,7 +179,7 @@ export default function CameraSettingsView({
})
.catch((error) => {
toast.error(
- t("ui.toast.save.error", {
+ t("toast.save.error", {
errorMessage: error.response.data.message,
}),
{ position: "top-center" },
@@ -258,13 +258,13 @@ export default function CameraSettingsView({
- ui.settingView.cameraSettings
+ camera.title
- ui.settingView.cameraSettings.streams
+ camera.streams.title
@@ -278,17 +278,17 @@ export default function CameraSettingsView({
/>
- ui.enabled
+ button.enabled
- ui.settingView.cameraSettings.streams.desc
+ camera.streams.desc
- ui.settingView.cameraSettings.review
+ camera.review.title
@@ -303,7 +303,7 @@ export default function CameraSettingsView({
/>
- ui.settingView.cameraSettings.review.alerts
+ camera.review.alerts
@@ -319,14 +319,14 @@ export default function CameraSettingsView({
/>
-
- ui.settingView.cameraSettings.review.detections
+
+ camera.review.detections
- ui.settingView.cameraSettings.review.desc
+ camera.review.desc
@@ -334,14 +334,14 @@ export default function CameraSettingsView({
- ui.settingView.cameraSettings.reviewClassification
+ camera.reviewClassification.title
-
- ui.settingView.cameraSettings.reviewClassification.desc
+
+ camera.reviewClassification.desc
@@ -351,8 +351,8 @@ export default function CameraSettingsView({
rel="noopener noreferrer"
className="inline"
>
-
- ui.settingView.cameraSettings.reviewClassification.readTheDocumentation
+
+ camera.reviewClassification.readTheDocumentation
{" "}
@@ -382,14 +382,14 @@ export default function CameraSettingsView({
<>
-
- ui.settingView.cameraSettings.review.alerts
+
+ camera.review.alerts
-
- ui.settingView.cameraSettings.reviewClassification.selectAlertsZones
+
+ camera.reviewClassification.selectAlertsZones
@@ -439,8 +439,8 @@ export default function CameraSettingsView({
>
) : (
-
- ui.settingView.cameraSettings.reviewClassification.noDefinedZones
+
+ camera.reviewClassification.noDefinedZones
)}
@@ -448,7 +448,7 @@ export default function CameraSettingsView({
{watchedAlertsZones && watchedAlertsZones.length > 0
? t(
- "ui.settingView.cameraSettings.reviewClassification.zoneObjectAlertsTips",
+ "camera.reviewClassification.zoneObjectAlertsTips",
{
alertsLabels,
zone: watchedAlertsZones
@@ -462,15 +462,17 @@ export default function CameraSettingsView({
cameraName: capitalizeFirstLetter(
cameraConfig?.name ?? "",
).replaceAll("_", " "),
+ ns: "views/settings"
},
)
: t(
- "ui.settingView.cameraSettings.reviewClassification.objectAlertsTips",
+ "camera.reviewClassification.objectAlertsTips",
{
alertsLabels,
cameraName: capitalizeFirstLetter(
cameraConfig?.name ?? "",
).replaceAll("_", " "),
+ ns: "views/settings"
},
)}
@@ -487,15 +489,15 @@ export default function CameraSettingsView({
<>
-
- ui.settingView.cameraSettings.review.detections
+
+ camera.review.detections
{selectDetections && (
-
- ui.settingView.cameraSettings.reviewClassification.selectDetectionsZones
+
+ camera.reviewClassification.selectDetectionsZones
)}
@@ -559,8 +561,8 @@ export default function CameraSettingsView({
htmlFor="select-detections"
className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
>
-
- ui.settingView.cameraSettings.reviewClassification.limitDetections
+
+ camera.reviewClassification.limitDetections
@@ -573,7 +575,7 @@ export default function CameraSettingsView({
watchedDetectionsZones.length > 0 ? (
!selectDetections ? (
) : (
)
) : (
)}
@@ -633,7 +638,7 @@ export default function CameraSettingsView({
onClick={onCancel}
type="button"
>
-
ui.cancel
+
button.cancel
- ui.saving
+ button.saving
) : (
-
ui.save
+
button.save
)}
diff --git a/web/src/views/settings/MasksAndZonesView.tsx b/web/src/views/settings/MasksAndZonesView.tsx
index e77862efd..a9e2b6cf6 100644
--- a/web/src/views/settings/MasksAndZonesView.tsx
+++ b/web/src/views/settings/MasksAndZonesView.tsx
@@ -481,7 +481,7 @@ export default function MasksAndZonesView({
{editPane === undefined && (
<>
- ui.settingView.masksAndZonesSettings
+ menu.masksAndZones
{(selectedZoneMask === undefined ||
@@ -491,16 +491,16 @@ export default function MasksAndZonesView({
-
- ui.settingView.masksAndZonesSettings.zones
+
+ masksAndZones.zones.label
-
- ui.settingView.masksAndZonesSettings.zones.desc
+
+ masksAndZones.zones.desc
@@ -510,8 +510,8 @@ export default function MasksAndZonesView({
rel="noopener noreferrer"
className="inline"
>
-
- ui.settingView.masksAndZonesSettings.zones.desc.documentation
+
+ masksAndZones.zones.desc.documentation
{" "}
@@ -534,8 +534,8 @@ export default function MasksAndZonesView({
-
- ui.settingView.masksAndZonesSettings.zones.add
+
+ masksAndZones.zones.add
@@ -567,16 +567,16 @@ export default function MasksAndZonesView({
-
- ui.settingView.masksAndZonesSettings.motionMasks
+
+ masksAndZones.motionMasks.label
-
- ui.settingView.masksAndZonesSettings.motionMasks.desc
+
+ masksAndZones.motionMasks.desc
@@ -586,8 +586,8 @@ export default function MasksAndZonesView({
rel="noopener noreferrer"
className="inline"
>
-
- ui.settingView.masksAndZonesSettings.motionMasks.desc.documentation
+
+ masksAndZones.motionMasks.desc.documentation
{" "}
@@ -610,8 +610,8 @@ export default function MasksAndZonesView({
-
- ui.settingView.masksAndZonesSettings.motionMasks.add
+
+ masksAndZones.motionMasks.add
@@ -645,16 +645,16 @@ export default function MasksAndZonesView({
-
- ui.settingView.masksAndZonesSettings.objectMasks
+
+ masksAndZones.objectMasks.label
-
- ui.settingView.masksAndZonesSettings.objectMasks.desc
+
+ masksAndZones.objectMasks.desc
@@ -664,8 +664,8 @@ export default function MasksAndZonesView({
rel="noopener noreferrer"
className="inline"
>
-
- ui.settingView.masksAndZonesSettings.objectMasks.documentation
+
+ masksAndZones.objectMasks.documentation
{" "}
@@ -688,8 +688,8 @@ export default function MasksAndZonesView({
-
- ui.settingView.masksAndZonesSettings.objectMasks.add
+
+ masksAndZones.objectMasks.add
diff --git a/web/src/views/settings/MotionTunerView.tsx b/web/src/views/settings/MotionTunerView.tsx
index 6751a2058..2ed17f50e 100644
--- a/web/src/views/settings/MotionTunerView.tsx
+++ b/web/src/views/settings/MotionTunerView.tsx
@@ -120,7 +120,7 @@ export default function MotionTunerView({
.then((res) => {
if (res.status === 200) {
toast.success(
- t("ui.settingView.motionDetectionTuner.toast.success"),
+ t("motionDetectionTuner.toast.success", { ns: "views/settings"}),
{
position: "top-center",
},
@@ -129,7 +129,7 @@ export default function MotionTunerView({
updateConfig();
} else {
toast.error(
- t("ui.toast.save.error", { errorMessage: res.statusText }),
+ t("toast.save.error", { errorMessage: res.statusText }),
{
position: "top-center",
},
@@ -138,7 +138,7 @@ export default function MotionTunerView({
})
.catch((error) => {
toast.error(
- t("ui.toast.save.error", {
+ t("toast.save.error", {
errorMessage: error.response.data.message,
}),
{ position: "top-center" },
@@ -189,11 +189,11 @@ export default function MotionTunerView({
- ui.settingView.motionDetectionTuner
+ motionDetectionTuner.title
- ui.settingView.motionDetectionTuner.desc
+ motionDetectionTuner.desc
@@ -203,8 +203,8 @@ export default function MotionTunerView({
rel="noopener noreferrer"
className="inline"
>
-
- ui.settingView.motionDetectionTuner.desc.documentation
+
+ motionDetectionTuner.desc.documentation
{" "}
@@ -215,12 +215,12 @@ export default function MotionTunerView({
- ui.settingView.motionDetectionTuner.Threshold
+ motionDetectionTuner.Threshold
-
- ui.settingView.motionDetectionTuner.Threshold.desc
+
+ motionDetectionTuner.Threshold.desc
@@ -246,12 +246,12 @@ export default function MotionTunerView({
- ui.settingView.motionDetectionTuner.contourArea
+ motionDetectionTuner.contourArea
-
- ui.settingView.motionDetectionTuner.contourArea.desc
+
+ motionDetectionTuner.contourArea.desc
@@ -278,13 +278,13 @@ export default function MotionTunerView({
-
- ui.settingView.motionDetectionTuner.improveContrast
+
+ motionDetectionTuner.improveContrast
-
- ui.settingView.motionDetectionTuner.improveContrast.desc
+
+ motionDetectionTuner.improveContrast.desc
@@ -306,7 +306,7 @@ export default function MotionTunerView({
aria-label="Reset"
onClick={onCancel}
>
-
ui.reset
+
button.reset
- ui.saving
+ button.saving
) : (
-
ui.save
+
button.save
)}
diff --git a/web/src/views/settings/NotificationsSettingsView.tsx b/web/src/views/settings/NotificationsSettingsView.tsx
index 1d2585bb1..6b8b1cb34 100644
--- a/web/src/views/settings/NotificationsSettingsView.tsx
+++ b/web/src/views/settings/NotificationsSettingsView.tsx
@@ -348,13 +348,13 @@ export default function NotificationView({
- ui.settingView.notification.notificationSettings
+ notification.notificationSettings
- ui.settingView.notification.desc
+ notification.desc
- ui.settingView.notification.documentation {" "}
+ notification.documentation {" "}
@@ -381,19 +381,20 @@ export default function NotificationView({
render={({ field }) => (
- ui.settingView.notification.email
+ notification.email
- ui.settingView.notification.email.desc
+ notification.email.desc
@@ -409,8 +410,8 @@ export default function NotificationView({
<>
-
- ui.settingView.notification.cameras
+
+ notification.cameras
@@ -420,7 +421,7 @@ export default function NotificationView({
name="allEnabled"
render={({ field }) => (
{
setChangedValue(true);
@@ -459,16 +460,16 @@ export default function NotificationView({
>
) : (
-
- ui.settingView.notification.cameras.noCameras
+
+ notification.cameras.noCameras
)}
-
- ui.settingView.notification.cameras.desc
+
+ notification.cameras.desc
@@ -482,7 +483,7 @@ export default function NotificationView({
onClick={onCancel}
type="button"
>
- ui.cancel
+ button.cancel
- ui.saving
+ button.saving
) : (
- t("ui.save")
+
button.save
)}
@@ -512,7 +513,7 @@ export default function NotificationView({
- ui.settingView.notification.deviceSpecific
+ notification.deviceSpecific
{registration != null
- ? t("ui.settingView.notification.unregisterDevice")
- : t("ui.settingView.notification.registerDevice")}
+ ? t("notification.unregisterDevice", { ns: "views/settings" })
+ : t("notification.registerDevice", { ns: "views/settings" })}
{registration != null && registration.active && (
- ui.settingView.debug.boundingBoxes.colors
+ debug.boundingBoxes.colors
- ui.settingView.debug.boundingBoxes.colors.info
+ debug.boundingBoxes.colors.info
>
),
},
{
param: "timestamp",
- title: t("ui.settingView.debug.timestamp"),
- description: t("ui.settingView.debug.timestamp.desc"),
+ title: t("debug.timestamp.title", { ns: "views/settings" }),
+ description: t("debug.timestamp.desc", { ns: "views/settings" }),
},
{
param: "zones",
- title: t("ui.settingView.debug.zone"),
- description: t("ui.settingView.debug.zone.desc"),
+ title: t("debug.zones.title", { ns: "views/settings" }),
+ description: t("debug.zones.desc", { ns: "views/settings" }),
},
{
param: "mask",
- title: t("ui.settingView.debug.mask"),
- description: t("ui.settingView.debug.mask.desc"),
+ title: t("debug.mask.title", { ns: "views/settings" }),
+ description: t("debug.mask.desc", { ns: "views/settings" }),
},
{
param: "motion",
- title: t("ui.settingView.debug.motion"),
- description: t("ui.settingView.debug.motion.desc"),
+ title: t("debug.motion.title", { ns: "views/settings" }),
+ description: t("debug.motion.desc", { ns: "views/settings" }),
info: (
<>
- ui.settingView.debug.motion.tips
+ debug.motion.tips
>
),
},
{
param: "regions",
- title: t("ui.settingView.debug.regions"),
- description: t("ui.settingView.debug.regions.desc"),
+ title: t("debug.regions.title", { ns: "views/settings" }),
+ description: t("debug.regions.desc", { ns: "views/settings" }),
info: (
<>
- ui.settingView.debug.regions.tips
+ debug.regions.tips
>
),
},
@@ -156,20 +156,21 @@ export default function ObjectSettingsView({
- ui.settingView.debug
+ debug.title
- {t("ui.settingView.debug.detectorDesc", {
+ {t("debug.detectorDesc", {
detectors: config
? Object.keys(config?.detectors)
.map((detector) => capitalizeFirstLetter(detector))
.join(",")
: "",
+ ns: "views/settings",
})}
- ui.settingView.debug.desc
+ debug.desc
{config?.cameras[cameraConfig.name]?.webui_url && (
@@ -191,10 +192,10 @@ export default function ObjectSettingsView({
- ui.settingView.debug.debugging
+ debug.debugging
- ui.settingView.debug.objectList
+ debug.objectList
@@ -254,8 +255,8 @@ export default function ObjectSettingsView({
className="mb-0 cursor-pointer capitalize text-primary"
htmlFor="debugdraw"
>
-
- ui.settingView.debug.objectShapeFilterDrawing
+
+ debug.objectShapeFilterDrawing.title
@@ -263,12 +264,12 @@ export default function ObjectSettingsView({
- Info
+ button.info
-
- ui.settingView.debug.objectShapeFilterDrawing.tips
+
+ debug.objectShapeFilterDrawing.tips
-
- ui.settingView.debug.objectShapeFilterDrawing.document
+
+ debug.objectShapeFilterDrawing.document
@@ -287,8 +288,8 @@ export default function ObjectSettingsView({
-
- ui.settingView.debug.objectShapeFilterDrawing.desc
+
+ debug.objectShapeFilterDrawing.desc
@@ -439,7 +440,7 @@ function ObjectList({ cameraConfig, objects }: ObjectListProps) {
})
) : (
- ui.settingView.debug.noObjects
+ debug.noObjects
)}
diff --git a/web/src/views/settings/SearchSettingsView.tsx b/web/src/views/settings/SearchSettingsView.tsx
index 5def2c3e5..bb0173ee1 100644
--- a/web/src/views/settings/SearchSettingsView.tsx
+++ b/web/src/views/settings/SearchSettingsView.tsx
@@ -94,14 +94,14 @@ export default function ExploreSettingsView({
)
.then((res) => {
if (res.status === 200) {
- toast.success(t("ui.settingView.exploreSettings.toast.success"), {
+ toast.success(t("explore.toast.success"), {
position: "top-center",
});
setChangedValue(false);
updateConfig();
} else {
toast.error(
- t("ui.toast.save.error", { errorMessage: res.statusText }),
+ t("toast.save.error", { errorMessage: res.statusText }),
{
position: "top-center",
},
@@ -110,7 +110,7 @@ export default function ExploreSettingsView({
})
.catch((error) => {
toast.error(
- t("ui.toast.save.error", {
+ t("toast.save.error", {
errorMessage: error.response.data.message,
}),
{ position: "top-center" },
@@ -160,16 +160,16 @@ export default function ExploreSettingsView({
- ui.settingView.exploreSettings
+ explore.title
- ui.settingView.exploreSettings.semanticSearch
+ explore.semanticSearch.title
- ui.settingView.exploreSettings.semanticSearch.desc
+ explore.semanticSearch.desc
@@ -179,8 +179,8 @@ export default function ExploreSettingsView({
rel="noopener noreferrer"
className="inline"
>
-
- ui.settingView.exploreSettings.semanticSearch.readTheDocumentation
+
+ explore.semanticSearch.readTheDocumentation
@@ -201,7 +201,7 @@ export default function ExploreSettingsView({
/>
- ui.enabled
+ button.enabled
@@ -218,40 +218,40 @@ export default function ExploreSettingsView({
/>
-
- ui.settingView.exploreSettings.semanticSearch.reindexOnStartup
+
+ explore.semanticSearch.reindexOnStartup.label
-
- ui.settingView.exploreSettings.semanticSearch.reindexOnStartup.desc
+
+ explore.semanticSearch.reindexOnStartup.desc
-
- ui.settingView.exploreSettings.semanticSearch.modelSize
+
+ explore.semanticSearch.modelSize.label
-
- ui.settingView.exploreSettings.semanticSearch.modelSize.desc
+
+ explore.semanticSearch.modelSize.desc
-
- ui.settingView.exploreSettings.semanticSearch.modelSize.small.desc
+
+ explore.semanticSearch.modelSize.small.desc
-
- ui.settingView.exploreSettings.semanticSearch.modelSize.large.desc
+
+ explore.semanticSearch.modelSize.large.desc
@@ -267,8 +267,9 @@ export default function ExploreSettingsView({
>
{t(
- "ui.settingView.exploreSettings.semanticSearch.modelSize." +
+ "explore.semanticSearch.modelSize." +
ExploreSettings.model_size,
+ { ns: "views/settings"}
)}
@@ -280,8 +281,9 @@ export default function ExploreSettingsView({
value={size}
>
{t(
- "ui.settingView.exploreSettings.semanticSearch.modelSize." +
+ "explore.semanticSearch.modelSize." +
size,
+ { ns: "views/settings"}
)}
))}
@@ -294,7 +296,7 @@ export default function ExploreSettingsView({
- ui.reset
+ button.reset
- ui.saving
+ button.saving
) : (
- t("ui.save")
+ button.save
)}
diff --git a/web/src/views/settings/UiSettingsView.tsx b/web/src/views/settings/UiSettingsView.tsx
index 965089e3a..05b77724b 100644
--- a/web/src/views/settings/UiSettingsView.tsx
+++ b/web/src/views/settings/UiSettingsView.tsx
@@ -84,13 +84,13 @@ export default function UiSettingsView() {
- ui.settingView.generalSettings
+ general.title
- ui.settingView.generalSettings.liveDashboard
+ general.liveDashboard.title
@@ -102,15 +102,15 @@ export default function UiSettingsView() {
onCheckedChange={setAutoLive}
/>
-
- ui.settingView.generalSettings.automaticLiveView
+
+ general.liveDashboard.automaticLiveView.label
-
- ui.settingView.generalSettings.automaticLiveView.desc
+
+ general.liveDashboard.automaticLiveView.desc
@@ -123,13 +123,13 @@ export default function UiSettingsView() {
onCheckedChange={setAlertVideos}
/>
- ui.settingView.generalSettings.playAlertVideos
+ general.liveDashboard.playAlertVideos.label
-
- ui.settingView.generalSettings.playAlertVideos.desc
+
+ general.liveDashboard.playAlertVideos.desc
@@ -140,12 +140,12 @@ export default function UiSettingsView() {
- ui.settingView.generalSettings.storedLayouts
+ general.storedLayouts.title
-
- ui.settingView.generalSettings.storedLayouts.desc
+
+ general.storedLayouts.desc
@@ -154,8 +154,8 @@ export default function UiSettingsView() {
aria-label="Clear all saved layouts"
onClick={clearStoredLayouts}
>
-
- ui.settingView.generalSettings.storedLayouts.clearAll
+
+ general.storedLayouts.clearAll
@@ -163,14 +163,14 @@ export default function UiSettingsView() {
-
- ui.settingView.generalSettings.cameraGroupStreaming
+
+ general.cameraGroupStreaming.title
-
- ui.settingView.generalSettings.cameraGroupStreaming.desc
+
+ general.cameraGroupStreaming.desc
@@ -179,8 +179,8 @@ export default function UiSettingsView() {
aria-label="Clear all group streaming settings"
onClick={clearStreamingSettings}
>
-
- ui.settingView.generalSettings.cameraGroupStreaming.clearAll
+
+ general.cameraGroupStreaming.clearAll
@@ -188,20 +188,20 @@ export default function UiSettingsView() {
- ui.settingView.generalSettings.recordingsViewer
+ general.recordingsViewer.title
-
- ui.settingView.generalSettings.recordingsViewer.defaultPlaybackRate
+
+ general.recordingsViewer.defaultPlaybackRate.label
-
- ui.settingView.generalSettings.recordingsViewer.defaultPlaybackRate.desc
+
+ general.recordingsViewer.defaultPlaybackRate.desc
@@ -231,20 +231,20 @@ export default function UiSettingsView() {
- ui.settingView.generalSettings.calendar
+ general.calendar.title
-
- ui.settingView.generalSettings.calendar.firstWeekday
+
+ general.calendar.firstWeekday.label
-
- ui.settingView.generalSettings.calendar.firstWeekday.desc
+
+ general.calendar.firstWeekday.desc
@@ -256,8 +256,9 @@ export default function UiSettingsView() {
>
{t(
- "ui.settingView.generalSettings.calendar.firstWeekday." +
+ "general.calendar.firstWeekday." +
WEEK_STARTS_ON[weekStartsOn ?? 0].toLowerCase(),
+ {ns: "views/settings"}
)}
@@ -269,8 +270,9 @@ export default function UiSettingsView() {
value={index.toString()}
>
{t(
- "ui.settingView.generalSettings.calendar.firstWeekday." +
+ "general.calendar.firstWeekday." +
day.toLowerCase(),
+ {ns: "views/settings"}
)}
))}
diff --git a/web/src/views/system/CameraMetrics.tsx b/web/src/views/system/CameraMetrics.tsx
index 79f487b76..41739739c 100644
--- a/web/src/views/system/CameraMetrics.tsx
+++ b/web/src/views/system/CameraMetrics.tsx
@@ -225,13 +225,13 @@ export default function CameraMetrics({
return (
- ui.system.cameras.overview
+ cameras.overview
{statsHistory.length != 0 ? (
- ui.system.cameras.framesAndDetections
+ cameras.framesAndDetections
- ui.system.cameras.framesAndDetections
+ cameras.framesAndDetections
- ui.system.general.detector
+ general.detector
- ui.system.general.detectorInferenceSpeed
+ general.detectorInferenceSpeed
{detInferenceTimeSeries.map((series) => (
- ui.system.general.detectorCpuUsage
+ general.detectorCpuUsage
{detCpuSeries.map((series) => (
- ui.system.general.detectorMemoryUsage
+ general.detectorMemoryUsage
{detMemSeries.map((series) => (
setShowVainfo(true)}
>
- ui.system.general.hardwareInfo
+ general.hardwareInfo
)}
@@ -565,7 +565,7 @@ export default function GeneralMetrics({
{statsHistory.length != 0 ? (
- ui.system.general.gpuUsage
+ general.gpuUsage
{gpuSeries.map((series) => (
- ui.system.general.gpuMemroy
+ general.gpuMemroy
{gpuMemSeries.map((series) => (
- ui.system.general.gpuEncoder
+ general.gpuEncoder
{gpuEncSeries.map((series) => (
- ui.system.general.gpuDecoder
+ general.gpuDecoder
{gpuDecSeries.map((series) => (
- ui.system.general.otherProcesses
+ general.otherProcesses
{statsHistory.length != 0 ? (
- ui.system.general.processCpuUsage
+ general.processCpuUsage
{otherProcessCpuSeries.map((series) => (
- ui.system.general.processMemoryUsage
+ general.processMemoryUsage
{otherProcessMemSeries.map((series) => (
- ui.system.storage.overview
+ storage.overview
-
ui.system.storage.recordings
+
storage.recordings.title
- ui.system.storage.recordings.tips
+ storage.recordings.tips
@@ -136,7 +136,7 @@ export default function StorageMetrics({
- ui.system.storage.cameraStorage
+ storage.cameraStorage.title