Refactor and clean up i18n (#17198)

* clean up i18n

* fix key

* fix key
This commit is contained in:
Josh Hawkins
2025-03-17 06:26:01 -06:00
committed by GitHub
parent 6e3ae0afc2
commit 03da70cb81
74 changed files with 1243 additions and 799 deletions
@@ -5,13 +5,15 @@
"edit": "编辑摄像头组",
"delete": {
"label": "删除摄像头组",
"confirm": "确认删除",
"confirm.desc": "你确定要删除摄像头组 <em>{{name}}</em> 吗?"
"confirm": {
"title": "确认删除",
"desc": "你确定要删除摄像头组 <em>{{name}}</em> 吗?"
}
},
"name": {
"label": "名称",
"placeholder": "请输入名称",
"error": {
"errorMessage": {
"mustLeastCharacters": "摄像头组的名称必须至少有 2 个字符。",
"exists": "摄像头组名称已存在。",
"nameMustNotPeriod": "摄像头组名称不能包含英文句号(.)。",
@@ -32,8 +34,10 @@
"audioIsAvailable": "此视频流支持音频",
"audioIsUnavailable": "此视频流不支持音频",
"audio": {
"tips": "音频必须从您的摄像头输出并在 go2rtc 中配置此流。",
"tips.document": "阅读文档(英文) "
"tips": {
"title": "音频必须从您的摄像头输出并在 go2rtc 中配置此流。",
"document": "阅读文档(英文) "
}
},
"streamMethod": {
"label": "视频流方法",
@@ -48,8 +52,10 @@
},
"continuousStreaming": {
"label": "持续视频流",
"desc": "当摄像头画面在仪表板上可见时,始终为实时视频流,即使未检测到活动。",
"desc.warning": "持续视频流可能会导致高带宽使用和性能问题,请谨慎使用。"
"desc": {
"title": "当摄像头画面在仪表板上可见时,始终为实时视频流,即使未检测到活动。",
"warning": "持续视频流可能会导致高带宽使用和性能问题,请谨慎使用。"
}
}
}
},
+34 -17
View File
@@ -15,13 +15,19 @@
"desc": "您希望避开的地点中的物体不应被视为误报。若将其作为误报提交,可能会导致AI模型容易混淆相关物体的识别。"
},
"review": {
"true.label": "为 Frigate Plus 确认此标签",
"true_one": "这是 {{label}}",
"true_other": "这是 {{label}}",
"false.label": "不为 Frigate Plus 确认此标签",
"false_one": "这不是 {{label}}",
"false_other": "这不是 {{label}}",
"state.submitted": "已提交"
"true": {
"label": "为 Frigate Plus 确认此标签",
"true_one": "这是 {{label}}",
"true_other": "这是 {{label}}"
},
"false": {
"label": "不为 Frigate Plus 确认此标签",
"false_one": "这不是 {{label}}",
"false_other": "这不是 {{label}}"
},
"state": {
"submitted": "已提交"
}
}
},
"video": {
@@ -34,10 +40,14 @@
"lastHour_one": "最后1小时",
"lastHour_other": "最后 {{count}} 小时",
"custom": "自定义",
"start": "开始时间",
"start.label": "选择开始时间",
"end": "结束时间",
"end.label": "选择结束时间"
"start": {
"title": "开始时间",
"label": "选择开始时间"
},
"end": {
"title": "结束时间",
"label": "选择结束时间"
}
},
"name": {
"placeholder": "导出项目的名字"
@@ -61,9 +71,11 @@
"streaming": {
"label": "视频流",
"restreaming": {
"NotEnabled": "重新流式传输未启用。",
"desc": "为此摄像头设置 go2rtc,以获取额外的实时预览选项和音频支持。",
"desc.readTheDocumentation": "阅读文档(英文) "
"disabled": "重新流式传输未启用。",
"desc": {
"title": "为此摄像头设置 go2rtc,以获取额外的实时预览选项和音频支持。",
"readTheDocumentation": "阅读文档(英文) "
}
},
"showStats": {
"label": "显示视频流统计信息",
@@ -78,14 +90,19 @@
"placeholder": "请输入搜索名称",
"overwrite": "{{searchName}} 已存在。保存将覆盖现有值。",
"success": "搜索 ({{searchName}}) 已保存。",
"button.save.label": "保存此搜索"
"button": {
"save": {
"label": "保存此搜索"
}
}
}
},
"recording": {
"confirmDelete": {
"title": "确认删除",
"desc": "您确定要删除与此审核项相关的所有录制视频吗?<br /><br />提示:按住 <em>Shift</em> 键点击删除可跳过此对话框。",
"desc.selected": "您确定要删除与此审核项相关的所有录制视频吗?<br /><br />提示:按住 <em>Shift</em> 键点击删除可跳过此对话框。"
"desc": {
"selected": "您确定要删除与此审核项相关的所有录制视频吗?<br /><br />提示:按住 <em>Shift</em> 键点击删除可跳过此对话框。"
}
},
"button": {
"export": "导出",
+39 -23
View File
@@ -2,22 +2,30 @@
"filter": "过滤器",
"labels": {
"label": "标签",
"all": "所有标签",
"all.short": "标签",
"all": {
"title": "所有标签",
"short": "标签"
},
"count": "{{count}} 个标签"
},
"zones": {
"all": "所有区域",
"all.short": "区域"
"all": {
"title": "所有区域",
"short": "区域"
},
"label": "区域"
},
"dates": {
"all": "所有日期",
"all.short": "日期"
"all": {
"title": "所有日期",
"short": "日期"
}
},
"more": "更多筛选项",
"reset.label": "重置筛选器为默认值",
"reset": {
"label": "重置筛选器为默认值"
},
"timeRange": "时间范围",
"zones.label": "区域",
"subLabels": {
"label": "子标签",
"all": "所有子标签"
@@ -45,8 +53,10 @@
},
"cameras": {
"label": "摄像头筛选",
"all": "所有摄像头",
"all.short": "摄像头"
"all": {
"title": "所有摄像头",
"short": "摄像头"
}
},
"review": {
"showReviewed": "显示已查看的项目"
@@ -57,12 +67,16 @@
"explore": {
"settings": {
"title": "设置",
"defaultView": "默认视图",
"defaultView.desc": "当未选择任何过滤器时,显示每个标签最近跟踪对象的摘要,或显示未过滤的网格。",
"defaultView.summary": "摘要",
"defaultView.unfilteredGrid": "未过滤网格",
"gridColumns": "网格列数",
"gridColumns.desc": "选择网格视图中的列数。",
"defaultView": {
"title": "默认视图",
"desc": "当未选择任何过滤器时,显示每个标签最近跟踪对象的摘要,或显示未过滤的网格。",
"summary": "摘要",
"unfilteredGrid": "未过滤网格"
},
"gridColumns": {
"title": "网格列数",
"desc": "选择网格视图中的列数。"
},
"searchSource": {
"label": "搜索源",
"desc": "选择是搜索缩略图还是跟踪对象的描述。",
@@ -70,19 +84,21 @@
"thumbnailImage": "缩略图",
"description": "描述"
}
},
"date": {
"selectDateBy": {
"label": "选择日期进行筛选"
}
}
},
"date": {
"selectDateBy": {
"label": "选择日期进行筛选"
}
}
},
"logSettings": {
"label": "日志级别筛选",
"filterBySeverity": "按严重程度筛选日志",
"loading": "加载中",
"loading.desc": "当日志面板滚动到底部时,新的日志会自动流式加载",
"loading": {
"title": "加载",
"desc": "当日志面板滚动到底部时,新的日志会自动流式加载。"
},
"disableLogStreaming": "禁用日志流式加载",
"allLogs": "所有日志"
},
+23 -11
View File
@@ -13,18 +13,30 @@
},
"cameraDisabled": "摄像机已禁用",
"stats": {
"streamType": "流类型:",
"streamType.short": "类型",
"bandwidth": "带宽:",
"bandwidth.short": "带宽",
"latency": "延迟:",
"latency.short": "延迟",
"latency.value": "{{seconds}} 秒",
"latency.short.value": "{{seconds}} 秒",
"streamType": {
"title": "类型",
"short": "类型"
},
"bandwidth": {
"title": "带宽:",
"short": "带宽"
},
"latency": {
"title": "延迟:",
"value": "{{seconds}} 秒",
"short": {
"title": "延迟",
"value": "{{seconds}} 秒"
}
},
"totalFrames": "总帧数:",
"droppedFrames": "丢帧数:",
"droppedFrames.short": "丢帧",
"droppedFrames.short.value": "{{droppedFrames}} 帧",
"droppedFrames": {
"title": "丢帧数:",
"short": {
"title": "丢帧",
"value": "{{droppedFrames}} 帧"
}
},
"decodedFrames": "解码帧数:",
"droppedFrameRate": "丢帧率:"
},