fix: fix some options miss i18n key

This commit is contained in:
ZhaiSoul 2026-05-09 15:00:05 +08:00
parent 8393cc7d04
commit b6bdf65c18
7 changed files with 76 additions and 2 deletions

View File

@ -1643,10 +1643,51 @@
"hardwareAuto": "Automatic hardware acceleration" "hardwareAuto": "Automatic hardware acceleration"
} }
}, },
"birdseye": {
"trackingMode": {
"objects": "Objects",
"motion": "Motion",
"continuous": "Continuous"
}
},
"snapshot": {
"retainMode": {
"all": "All",
"motion": "Motion",
"active_objects": "Active Objects"
}
},
"ui": {
"timeFormat": {
"browser": "Browser",
"12hour": "12 hour",
"24hour": "24 hour"
},
"TimeOrDateStyle": {
"full": "Full",
"long": "Long",
"medium": "Medium",
"short": "Short"
},
"unitSystem": {
"metric": "Metric",
"imperial": "Imperial"
}
},
"review": {
"imageSource": {
"recordings": "Recordings",
"previews": "Previews"
}
},
"onvif": { "onvif": {
"profileAuto": "Auto", "profileAuto": "Auto",
"profileLoading": "Loading profiles..." "profileLoading": "Loading profiles..."
}, },
"modelSize": {
"small": "Small",
"large": "Large"
},
"configMessages": { "configMessages": {
"review": { "review": {
"recordDisabled": "Recording is disabled, review items will not be generated.", "recordDisabled": "Recording is disabled, review items will not be generated.",

View File

@ -22,6 +22,14 @@ const birdseye: SectionConfigOverrides = {
hiddenFields: [], hiddenFields: [],
advancedFields: [], advancedFields: [],
overrideFields: ["enabled", "mode"], overrideFields: ["enabled", "mode"],
uiSchema: {
mode: {
"ui:size": "xs",
"ui:options": {
enumI18nPrefix: "birdseye.trackingMode"
}
},
},
}, },
global: { global: {
fieldOrder: [ fieldOrder: [

View File

@ -94,7 +94,7 @@ const lpr: SectionConfigOverrides = {
}, },
}, },
model_size: { model_size: {
"ui:options": { size: "xs" }, "ui:options": { size: "xs", enumI18nPrefix: "modelSize" },
}, },
}, },
}, },

View File

@ -130,6 +130,11 @@ const review: SectionConfigOverrides = {
size: "full", size: "full",
}, },
}, },
"image_source": {
"ui:options": {
enumI18nPrefix: "review.imageSource",
},
}
}, },
}, },
}, },

View File

@ -34,6 +34,9 @@ const semanticSearch: SectionConfigOverrides = {
model: { model: {
"ui:widget": "semanticSearchModel", "ui:widget": "semanticSearchModel",
}, },
model_size: {
"ui:options": { size: "xs", enumI18nPrefix: "modelSize" },
},
}, },
}, },
}; };

View File

@ -35,6 +35,11 @@ const snapshots: SectionConfigOverrides = {
suppressMultiSchema: true, suppressMultiSchema: true,
}, },
}, },
"retain.mode": {
"ui:options": {
enumI18nPrefix: "snapshot.retainMode"
}
}
}, },
}, },
global: { global: {

View File

@ -23,6 +23,18 @@ const ui: SectionConfigOverrides = {
timezone: { timezone: {
"ui:widget": "timezoneSelect", "ui:widget": "timezoneSelect",
}, },
"time_format": {
"ui:options": { enumI18nPrefix: "ui.timeFormat" },
},
"date_style": {
"ui:options": { enumI18nPrefix: "ui.TimeOrDateStyle" },
},
"time_style": {
"ui:options": { enumI18nPrefix: "ui.TimeOrDateStyle" },
},
"unit_system": {
"ui:options": { enumI18nPrefix: "ui.unitSystem" },
},
}, },
}, },
}; };