mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-06 13:34:13 +03:00
sidebar i18n fixes (#20394)
Some checks are pending
CI / AMD64 Build (push) Waiting to run
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
CI / Assemble and push default build (push) Blocked by required conditions
Some checks are pending
CI / AMD64 Build (push) Waiting to run
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
CI / Assemble and push default build (push) Blocked by required conditions
This commit is contained in:
parent
7181f3db5c
commit
c71e235b38
@ -20,6 +20,7 @@
|
|||||||
"triggers": "Triggers",
|
"triggers": "Triggers",
|
||||||
"debug": "Debug",
|
"debug": "Debug",
|
||||||
"users": "Users",
|
"users": "Users",
|
||||||
|
"roles": "Roles",
|
||||||
"notifications": "Notifications",
|
"notifications": "Notifications",
|
||||||
"frigateplus": "Frigate+"
|
"frigateplus": "Frigate+"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -737,7 +737,7 @@ const SidebarMenuSubButton = React.forwardRef<
|
|||||||
data-size={size}
|
data-size={size}
|
||||||
data-active={isActive}
|
data-active={isActive}
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",
|
"flex min-h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",
|
||||||
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
||||||
size === "sm" && "text-xs",
|
size === "sm" && "text-xs",
|
||||||
size === "md" && "text-sm",
|
size === "md" && "text-sm",
|
||||||
|
|||||||
@ -84,11 +84,11 @@ type SettingsType = (typeof allSettingsViews)[number];
|
|||||||
|
|
||||||
const settingsGroups = [
|
const settingsGroups = [
|
||||||
{
|
{
|
||||||
label: "General",
|
label: "general",
|
||||||
items: [{ key: "ui", component: UiSettingsView }],
|
items: [{ key: "ui", component: UiSettingsView }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Cameras",
|
label: "cameras",
|
||||||
items: [
|
items: [
|
||||||
{ key: "cameras", component: CameraSettingsView },
|
{ key: "cameras", component: CameraSettingsView },
|
||||||
{ key: "masksAndZones", component: MasksAndZonesView },
|
{ key: "masksAndZones", component: MasksAndZonesView },
|
||||||
@ -96,25 +96,25 @@ const settingsGroups = [
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Enrichments",
|
label: "enrichments",
|
||||||
items: [{ key: "enrichments", component: EnrichmentsSettingsView }],
|
items: [{ key: "enrichments", component: EnrichmentsSettingsView }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Users",
|
label: "users",
|
||||||
items: [
|
items: [
|
||||||
{ key: "users", component: UsersView },
|
{ key: "users", component: UsersView },
|
||||||
{ key: "roles", component: RolesView },
|
{ key: "roles", component: RolesView },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Notifications",
|
label: "notifications",
|
||||||
items: [
|
items: [
|
||||||
{ key: "notifications", component: NotificationView },
|
{ key: "notifications", component: NotificationView },
|
||||||
{ key: "triggers", component: TriggerView },
|
{ key: "triggers", component: TriggerView },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Frigate+",
|
label: "frigateplus",
|
||||||
items: [{ key: "frigateplus", component: FrigatePlusSettingsView }],
|
items: [{ key: "frigateplus", component: FrigatePlusSettingsView }],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@ -293,7 +293,7 @@ export default function Settings() {
|
|||||||
</div>
|
</div>
|
||||||
<div className="flex flex-row text-center">
|
<div className="flex flex-row text-center">
|
||||||
<h2 className="ml-2 text-lg font-semibold">
|
<h2 className="ml-2 text-lg font-semibold">
|
||||||
{t("settings", { ns: "common" })}
|
{t("menu.settings", { ns: "common" })}
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -308,7 +308,9 @@ export default function Settings() {
|
|||||||
<div key={group.label} className="mb-3">
|
<div key={group.label} className="mb-3">
|
||||||
{filteredItems.length > 1 && (
|
{filteredItems.length > 1 && (
|
||||||
<h3 className="mb-2 ml-2 text-sm font-medium text-secondary-foreground">
|
<h3 className="mb-2 ml-2 text-sm font-medium text-secondary-foreground">
|
||||||
{group.label}
|
<div className="smart-capitalize">
|
||||||
|
{t("menu." + group.label)}
|
||||||
|
</div>
|
||||||
</h3>
|
</h3>
|
||||||
)}
|
)}
|
||||||
{filteredItems.map((item) => (
|
{filteredItems.map((item) => (
|
||||||
@ -422,7 +424,7 @@ export default function Settings() {
|
|||||||
<div className="flex h-full flex-col">
|
<div className="flex h-full flex-col">
|
||||||
<div className="flex items-center justify-between border-b border-secondary p-3">
|
<div className="flex items-center justify-between border-b border-secondary p-3">
|
||||||
<Heading as="h3" className="mb-0">
|
<Heading as="h3" className="mb-0">
|
||||||
{t("settings", { ns: "common" })}
|
{t("menu.settings", { ns: "common" })}
|
||||||
</Heading>
|
</Heading>
|
||||||
{[
|
{[
|
||||||
"debug",
|
"debug",
|
||||||
@ -498,7 +500,9 @@ export default function Settings() {
|
|||||||
: "text-sidebar-foreground/80",
|
: "text-sidebar-foreground/80",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{group.label}
|
<div className="smart-capitalize">
|
||||||
|
{t("menu." + group.label)}
|
||||||
|
</div>
|
||||||
</SidebarGroupLabel>
|
</SidebarGroupLabel>
|
||||||
<SidebarMenuSub className="mx-2 border-0">
|
<SidebarMenuSub className="mx-2 border-0">
|
||||||
{filteredItems.map((item) => (
|
{filteredItems.map((item) => (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user