From cc3878bd0895c281d252301998f8da6f6dba05b4 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 16 Mar 2025 11:14:19 -0500 Subject: [PATCH] fix spelling, formatting, and spacing --- web/public/locales/en/common.json | 18 ++--- web/public/locales/en/components/auth.json | 26 +++---- web/public/locales/en/components/icons.json | 12 ++-- web/public/locales/en/components/input.json | 16 ++--- web/public/locales/en/components/player.json | 72 +++++++++---------- web/public/locales/en/views/system.json | 4 +- web/public/locales/zh-CN/common.json | 16 ++--- web/public/locales/zh-CN/components/auth.json | 26 +++---- .../locales/zh-CN/components/dialog.json | 12 ++-- .../locales/zh-CN/components/icons.json | 12 ++-- .../locales/zh-CN/components/input.json | 16 ++--- .../locales/zh-CN/components/player.json | 72 +++++++++---------- web/src/components/auth/AuthForm.tsx | 2 +- web/src/components/player/PlayerStats.tsx | 4 +- 14 files changed, 154 insertions(+), 154 deletions(-) diff --git a/web/public/locales/en/common.json b/web/public/locales/en/common.json index ce88e4f72..fb8222dfe 100644 --- a/web/public/locales/en/common.json +++ b/web/public/locales/en/common.json @@ -96,8 +96,8 @@ "languages": "Languages", "language": { "en": "English", - "zhCN": "简体中文(Simplified Chinese)", - "withSystem.label": "Use the system settings for languag" + "zhCN": "简体中文 (Simplified Chinese)", + "withSystem.label": "Use the system settings for language" }, "appearance": "Appearance", "darkMode": { @@ -108,13 +108,13 @@ }, "withSystem": "System", "theme": { - "label": "Theme", - "blue": "Blue", - "green": "Green", - "nord": "Nord", - "red": "Red", - "contrast": "High Contrast", - "default": "Default" + "label": "Theme", + "blue": "Blue", + "green": "Green", + "nord": "Nord", + "red": "Red", + "contrast": "High Contrast", + "default": "Default" }, "help": "Help", "documentation.label": "Frigate documentation", diff --git a/web/public/locales/en/components/auth.json b/web/public/locales/en/components/auth.json index bec032838..05c2a779f 100644 --- a/web/public/locales/en/components/auth.json +++ b/web/public/locales/en/components/auth.json @@ -1,15 +1,15 @@ { - "form": { - "user": "Username", - "password": "Password", - "login": "Login", - "errors": { - "usernameRequired": "Username is required", - "passwordRequired": "Password is required", - "rateLimit": "Exceeded rate limit. Try again later.", - "loginFailed": "Login failed", - "unknownError": "Unknown error. Check logs.", - "webUnkownError": "Unknown error. Check console logs." - } + "form": { + "user": "Username", + "password": "Password", + "login": "Login", + "errors": { + "usernameRequired": "Username is required", + "passwordRequired": "Password is required", + "rateLimit": "Exceeded rate limit. Try again later.", + "loginFailed": "Login failed", + "unknownError": "Unknown error. Check logs.", + "webUnknownError": "Unknown error. Check console logs." } -} \ No newline at end of file + } +} diff --git a/web/public/locales/en/components/icons.json b/web/public/locales/en/components/icons.json index 22ef67e97..d9df89a30 100644 --- a/web/public/locales/en/components/icons.json +++ b/web/public/locales/en/components/icons.json @@ -1,8 +1,8 @@ { - "iconPicker": { - "selectIcon": "Select an icon", - "search": { - "placeholder": "Search for an icon..." - } + "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/input.json b/web/public/locales/en/components/input.json index 6cb0ea10a..7a9e35942 100644 --- a/web/public/locales/en/components/input.json +++ b/web/public/locales/en/components/input.json @@ -1,10 +1,10 @@ { - "button": { - "downloadVideo": { - "label": "Download Video", - "toast": { - "success": "Your review item video has started downloading." - } - } + "button": { + "downloadVideo": { + "label": "Download Video", + "toast": { + "success": "Your review item video has started downloading." + } } -} \ No newline at end of file + } +} diff --git a/web/public/locales/en/components/player.json b/web/public/locales/en/components/player.json index c5e9b6662..05b8dc134 100644 --- a/web/public/locales/en/components/player.json +++ b/web/public/locales/en/components/player.json @@ -1,39 +1,39 @@ { - "noRecordingsFoundForThisTime": "No recordings found for this time", - "noPreviewFound": "No Preview Found", - "noPreviewFoundFor": "No Preview Found for {{cameraName}}", - "submitFrigatePlus": { - "title": "Submit this frame to Frigate+?", - "submit": "Submit" + "noRecordingsFoundForThisTime": "No recordings found for this time", + "noPreviewFound": "No Preview Found", + "noPreviewFoundFor": "No Preview Found for {{cameraName}}", + "submitFrigatePlus": { + "title": "Submit this frame to Frigate+?", + "submit": "Submit" + }, + "livePlayerRequiredIOSVersion": "iOS 17.1 or greater is required for this live stream type.", + "streamOffline": { + "title": "Stream Offline", + "desc": "No frames have been received on the {{cameraName}} detect stream, check error logs" + }, + "cameraDisabled": "Camera is disabled", + "stats": { + "streamType": "Stream Type:", + "streamType.short": "Type", + "bandwidth": "Bandwidth:", + "bandwidth.short": "Bandwidth", + "latency": "Latency:", + "latency.short": "Latency", + "latency.value": "{{seconds}} seconds", + "latency.short.value": "{{seconds}} sec", + "totalFrames": "Total Frames:", + "droppedFrames": "Dropped Frames:", + "droppedFrames.short": "Dropped", + "droppedFrames.short.value": "{{droppedFrames}} frames", + "decodedFrames": "Decoded Frames:", + "droppedFrameRate": "Dropped Frame Rate:" + }, + "toast": { + "success": { + "submittedFrigatePlus": "Successfully submitted frame to Frigate+" }, - "livePlayerRequiredIOSVersion": "iOS 17.1 or greater is required for this live stream type.", - "streamOffline": { - "title": "Stream Offline", - "desc": "No frames have been received on the {{cameraName}} detect stream, check error logs" - }, - "cameraDisabled": "Camera is disabled", - "stats": { - "streamType": "Stream Type:", - "streamType.short": "Type", - "bandwidth": "Bandwidth:", - "bandwidth.short": "Bandwidth", - "latency": "Latency:", - "latency.short": "Latency", - "latency.value": "{{secounds}} seconds", - "latency.short.value": "{{secounds}} sec", - "totalFrames": "Total Frames:", - "droppedFrames": "Dropped Frames:", - "droppedFrames.short": "Dropped", - "droppedFrames.short.value": "{{droppedFrames}} frames", - "decodedFrames": "Decoded Frames:", - "droppedFrameRate": "Dropped Frame Rate:" - }, - "toast": { - "success": { - "submittedFrigatePlus": "Successfully submitted frame to Frigate+" - }, - "error": { - "submitFrigatePlusFailed": "Failed to submit frame to Frigate+" - } + "error": { + "submitFrigatePlusFailed": "Failed to submit frame to Frigate+" } -} \ No newline at end of file + } +} diff --git a/web/public/locales/en/views/system.json b/web/public/locales/en/views/system.json index cbcf80995..028411b19 100644 --- a/web/public/locales/en/views/system.json +++ b/web/public/locales/en/views/system.json @@ -89,8 +89,8 @@ "camera": "Camera", "unused": "Unused", "unusedStorageInformation": "Unused Storage Information", - "storageUsed": "Storage Used", - "percentageOfTotalUsed": "Percentage of Total Used", + "storageUsed": "Storage", + "percentageOfTotalUsed": "Percentage of Total", "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." } diff --git a/web/public/locales/zh-CN/common.json b/web/public/locales/zh-CN/common.json index 16944e264..28fc48d88 100644 --- a/web/public/locales/zh-CN/common.json +++ b/web/public/locales/zh-CN/common.json @@ -101,7 +101,7 @@ "systemLogs": "系统日志", "settings": "设置", "configurationEditor": "配置编辑器", - "languages": "languages / 语言", + "languages": "Languages / 语言", "language": { "en": "English", "zhCN": "简体中文", @@ -116,13 +116,13 @@ }, "withSystem": "跟随系统", "theme": { - "label": "主题", - "blue": "蓝色", - "green": "绿色", - "nord": "Nord", - "red": "红色", - "contrast": "高对比度", - "default": "默认" + "label": "主题", + "blue": "蓝色", + "green": "绿色", + "nord": "Nord", + "red": "红色", + "contrast": "高对比度", + "default": "默认" }, "help": "帮助", "documentation.label": "Frigate 的官方文档", diff --git a/web/public/locales/zh-CN/components/auth.json b/web/public/locales/zh-CN/components/auth.json index 3e9a163b7..015fa0ba8 100644 --- a/web/public/locales/zh-CN/components/auth.json +++ b/web/public/locales/zh-CN/components/auth.json @@ -1,15 +1,15 @@ { - "form": { - "user": "用户名", - "password": "密码", - "login": "登录", - "errors": { - "usernameRequired": "用户名不能为空", - "passwordRequired": "密码不能为空", - "rateLimit": "超出请求限制,请稍后再试。", - "loginFailed": "登录失败", - "unknownError": "未知错误,请检查日志。", - "webUnkownError": "未知错误,请检查控制台日志。" - } + "form": { + "user": "用户名", + "password": "密码", + "login": "登录", + "errors": { + "usernameRequired": "用户名不能为空", + "passwordRequired": "密码不能为空", + "rateLimit": "超出请求限制,请稍后再试。", + "loginFailed": "登录失败", + "unknownError": "未知错误,请检查日志。", + "webUnknownError": "未知错误,请检查控制台日志。" } -} \ No newline at end of file + } +} diff --git a/web/public/locales/zh-CN/components/dialog.json b/web/public/locales/zh-CN/components/dialog.json index 54a669f17..61729878e 100644 --- a/web/public/locales/zh-CN/components/dialog.json +++ b/web/public/locales/zh-CN/components/dialog.json @@ -83,14 +83,14 @@ }, "recording": { "confirmDelete": { - "title": "确认删除", - "desc": "您确定要删除与此审核项相关的所有录制视频吗?

提示:按住 Shift 键点击删除可跳过此对话框。", - "desc.selected": "您确定要删除与此审核项相关的所有录制视频吗?

提示:按住 Shift 键点击删除可跳过此对话框。" + "title": "确认删除", + "desc": "您确定要删除与此审核项相关的所有录制视频吗?

提示:按住 Shift 键点击删除可跳过此对话框。", + "desc.selected": "您确定要删除与此审核项相关的所有录制视频吗?

提示:按住 Shift 键点击删除可跳过此对话框。" }, "button": { - "export": "导出", - "markAsReviewed": "标记为已审核", - "deleteNow": "立即删除" + "export": "导出", + "markAsReviewed": "标记为已审核", + "deleteNow": "立即删除" } } } diff --git a/web/public/locales/zh-CN/components/icons.json b/web/public/locales/zh-CN/components/icons.json index 93b486319..ef18a8125 100644 --- a/web/public/locales/zh-CN/components/icons.json +++ b/web/public/locales/zh-CN/components/icons.json @@ -1,8 +1,8 @@ { - "iconPicker": { - "selectIcon": "选择图标", - "search": { - "placeholder": "搜索图标..." - } + "iconPicker": { + "selectIcon": "选择图标", + "search": { + "placeholder": "搜索图标..." } -} \ No newline at end of file + } +} diff --git a/web/public/locales/zh-CN/components/input.json b/web/public/locales/zh-CN/components/input.json index 3b4478076..006aca13e 100644 --- a/web/public/locales/zh-CN/components/input.json +++ b/web/public/locales/zh-CN/components/input.json @@ -1,10 +1,10 @@ { - "button": { - "downloadVideo": { - "label": "下载视频", - "toast": { - "success": "下载成功" - } - } + "button": { + "downloadVideo": { + "label": "下载视频", + "toast": { + "success": "下载成功" + } } -} \ 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 index 5b70fd856..cf1088f42 100644 --- a/web/public/locales/zh-CN/components/player.json +++ b/web/public/locales/zh-CN/components/player.json @@ -1,39 +1,39 @@ { - "noRecordingsFoundForThisTime": "找不到此次录制", - "noPreviewFound": "没有找到预览", - "noPreviewFoundFor": "没有在 {{cameraName}} 下找到预览", - "submitFrigatePlus": { - "title": "提交此帧到 Frigate+?", - "submit": "提交" + "noRecordingsFoundForThisTime": "找不到此次录制", + "noPreviewFound": "没有找到预览", + "noPreviewFoundFor": "没有在 {{cameraName}} 下找到预览", + "submitFrigatePlus": { + "title": "提交此帧到 Frigate+?", + "submit": "提交" + }, + "livePlayerRequiredIOSVersion": "此直播流类型需要 iOS 17.1 或更高版本。", + "streamOffline": { + "title": "视频流离线", + "desc": "未在 {{cameraName}} 的 detect 流上接收到任何帧,请检查错误日志" + }, + "cameraDisabled": "摄像机已禁用", + "stats": { + "streamType": "流类型:", + "streamType.short": "类型", + "bandwidth": "带宽:", + "bandwidth.short": "带宽", + "latency": "延迟:", + "latency.short": "延迟", + "latency.value": "{{seconds}} 秒", + "latency.short.value": "{{seconds}} 秒", + "totalFrames": "总帧数:", + "droppedFrames": "丢帧数:", + "droppedFrames.short": "丢帧", + "droppedFrames.short.value": "{{droppedFrames}} 帧", + "decodedFrames": "解码帧数:", + "droppedFrameRate": "丢帧率:" + }, + "toast": { + "success": { + "submittedFrigatePlus": "已成功提交帧到 Frigate+" }, - "livePlayerRequiredIOSVersion": "此直播流类型需要 iOS 17.1 或更高版本。", - "streamOffline": { - "title": "视频流离线", - "desc": "未在 {{cameraName}} 的 detect 流上接收到任何帧,请检查错误日志" - }, - "cameraDisabled": "摄像机已禁用", - "stats": { - "streamType": "流类型:", - "streamType.short": "类型", - "bandwidth": "带宽:", - "bandwidth.short": "带宽", - "latency": "延迟:", - "latency.short": "延迟", - "latency.value": "{{secounds}} 秒", - "latency.short.value": "{{secounds}} 秒", - "totalFrames": "总帧数:", - "droppedFrames": "丢帧数:", - "droppedFrames.short": "丢帧", - "droppedFrames.short.value": "{{droppedFrames}} 帧", - "decodedFrames": "解码帧数:", - "droppedFrameRate": "丢帧率:" - }, - "toast": { - "success": { - "submittedFrigatePlus": "已成功提交帧到 Frigate+" - }, - "error": { - "submitFrigatePlusFailed": "提交帧到 Frigate+ 失败" - } + "error": { + "submitFrigatePlusFailed": "提交帧到 Frigate+ 失败" } -} \ No newline at end of file + } +} diff --git a/web/src/components/auth/AuthForm.tsx b/web/src/components/auth/AuthForm.tsx index a90696dd7..dcf8eaa55 100644 --- a/web/src/components/auth/AuthForm.tsx +++ b/web/src/components/auth/AuthForm.tsx @@ -77,7 +77,7 @@ export function UserAuthForm({ className, ...props }: UserAuthFormProps) { }); } } else { - toast.error(t("form.errors.webUnkownError"), { + toast.error(t("form.errors.webUnknownError"), { position: "top-center", }); } diff --git a/web/src/components/player/PlayerStats.tsx b/web/src/components/player/PlayerStats.tsx index 4289b1257..d792acc13 100644 --- a/web/src/components/player/PlayerStats.tsx +++ b/web/src/components/player/PlayerStats.tsx @@ -25,7 +25,7 @@ export function PlayerStats({ stats, minimal }: PlayerStatsProps) { 2 ? "text-danger" : ""}`} > - {t("stats.latency.value", { secounds: stats.latency.toFixed(2) })} + {t("stats.latency.value", { seconds: stats.latency.toFixed(2) })}

)} @@ -73,7 +73,7 @@ export function PlayerStats({ stats, minimal }: PlayerStatsProps) { className={`text-white ${stats.latency >= 2 ? "text-danger" : ""}`} > {t("stats.latency.short.value", { - secounds: stats.latency.toFixed(2), + seconds: stats.latency.toFixed(2), })}