mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-03 06:50:58 +00:00
Add i18n, format
This commit is contained in:
parent
75b19674ce
commit
4d3208d1a1
@ -544,10 +544,12 @@
|
|||||||
"trainDate": "Train Date",
|
"trainDate": "Train Date",
|
||||||
"baseModel": "Base Model",
|
"baseModel": "Base Model",
|
||||||
"supportedDetectors": "Supported Detectors",
|
"supportedDetectors": "Supported Detectors",
|
||||||
|
"dimensions": "Dimensions",
|
||||||
"cameras": "Cameras",
|
"cameras": "Cameras",
|
||||||
"loading": "Loading model information...",
|
"loading": "Loading model information...",
|
||||||
"error": "Failed to load model information",
|
"error": "Failed to load model information",
|
||||||
"availableModels": "Available Models",
|
"availableModels": "Available Models",
|
||||||
|
"loadingAvailableModels": "Loading available models...",
|
||||||
"modelSelect": "Your available models on Frigate+ can be selected here. Note that only models compatible with your current detector configuration can be selected."
|
"modelSelect": "Your available models on Frigate+ can be selected here. Note that only models compatible with your current detector configuration can be selected."
|
||||||
},
|
},
|
||||||
"toast": {
|
"toast": {
|
||||||
|
|||||||
@ -331,16 +331,21 @@ export default function FrigatePlusSettingsView({
|
|||||||
<SelectTrigger>
|
<SelectTrigger>
|
||||||
{frigatePlusSettings.model.id &&
|
{frigatePlusSettings.model.id &&
|
||||||
availableModels?.[frigatePlusSettings.model.id]
|
availableModels?.[frigatePlusSettings.model.id]
|
||||||
? (new Date(
|
? new Date(
|
||||||
availableModels[
|
availableModels[
|
||||||
frigatePlusSettings.model.id
|
frigatePlusSettings.model.id
|
||||||
].trainDate,
|
].trainDate,
|
||||||
).toLocaleString() + " (" + availableModels[
|
).toLocaleString() +
|
||||||
frigatePlusSettings.model.id
|
" (" +
|
||||||
].width + "x" + availableModels[
|
availableModels[frigatePlusSettings.model.id]
|
||||||
frigatePlusSettings.model.id
|
.width +
|
||||||
].height) + ")"
|
"x" +
|
||||||
: "Retrieving models..."}
|
availableModels[frigatePlusSettings.model.id]
|
||||||
|
.height +
|
||||||
|
")"
|
||||||
|
: t(
|
||||||
|
"frigatePlus.modelInfo.loadingAvailableModels",
|
||||||
|
)}
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
<SelectGroup>
|
<SelectGroup>
|
||||||
@ -363,11 +368,16 @@ export default function FrigatePlusSettingsView({
|
|||||||
).toLocaleString()}{" "}
|
).toLocaleString()}{" "}
|
||||||
({model.baseModel})
|
({model.baseModel})
|
||||||
<div>
|
<div>
|
||||||
Supported Detectors: ({model.supportedDetectors.join(", ")})
|
{t(
|
||||||
|
"frigatePlus.modelInfo.supportedDetectors",
|
||||||
|
)}
|
||||||
|
: ({model.supportedDetectors.join(", ")}
|
||||||
|
)
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
Dimensions ({model.width + "x" + model.height})
|
{t("frigatePlus.modelInfo.dimensions")}{" "}
|
||||||
</div>
|
({model.width + "x" + model.height})
|
||||||
|
</div>
|
||||||
<div className="text-xs text-muted-foreground">
|
<div className="text-xs text-muted-foreground">
|
||||||
{id}
|
{id}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user