mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-07 11:16:37 +00:00
♻️ translate sidebar headings
This commit is contained in:
@@ -1163,7 +1163,11 @@
|
|||||||
"sidebarLicense": "License",
|
"sidebarLicense": "License",
|
||||||
"sidebarClients": "Clients",
|
"sidebarClients": "Clients",
|
||||||
"sidebarDomains": "Domains",
|
"sidebarDomains": "Domains",
|
||||||
|
"sidebarGeneral": "General",
|
||||||
|
"sidebarLogAndAnalytics": "Log & Analytics",
|
||||||
"sidebarBluePrints": "Blueprints",
|
"sidebarBluePrints": "Blueprints",
|
||||||
|
"sidebarOrganization": "Organization",
|
||||||
|
"sidebarLogsAnalytics": "Log Analytics",
|
||||||
"blueprints": "Blueprints",
|
"blueprints": "Blueprints",
|
||||||
"blueprintsDescription": "Apply declarative configurations and view previous runs",
|
"blueprintsDescription": "Apply declarative configurations and view previous runs",
|
||||||
"blueprintAdd": "Add Blueprint",
|
"blueprintAdd": "Add Blueprint",
|
||||||
|
|||||||
@@ -17,7 +17,8 @@ import {
|
|||||||
CreditCard,
|
CreditCard,
|
||||||
Logs,
|
Logs,
|
||||||
SquareMousePointer,
|
SquareMousePointer,
|
||||||
ScanEye
|
ScanEye,
|
||||||
|
ChartLine
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
|
|
||||||
export type SidebarNavSection = {
|
export type SidebarNavSection = {
|
||||||
@@ -39,7 +40,7 @@ export const orgNavSections = (
|
|||||||
enableClients: boolean = true
|
enableClients: boolean = true
|
||||||
): SidebarNavSection[] => [
|
): SidebarNavSection[] => [
|
||||||
{
|
{
|
||||||
heading: "General",
|
heading: "sidebarGeneral",
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
title: "sidebarSites",
|
title: "sidebarSites",
|
||||||
@@ -61,7 +62,7 @@ export const orgNavSections = (
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
...(build == "saas"
|
...(build === "saas"
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
title: "sidebarRemoteExitNodes",
|
title: "sidebarRemoteExitNodes",
|
||||||
@@ -84,7 +85,7 @@ export const orgNavSections = (
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
heading: "Access Control",
|
heading: "sidebarAccessControl",
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
title: "sidebarUsers",
|
title: "sidebarUsers",
|
||||||
@@ -119,13 +120,18 @@ export const orgNavSections = (
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
heading: "Analytics",
|
heading: "sidebarLogAndAnalytics",
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
title: "sidebarLogsRequest",
|
title: "sidebarLogsRequest",
|
||||||
href: "/{orgId}/settings/logs/request",
|
href: "/{orgId}/settings/logs/request",
|
||||||
icon: <SquareMousePointer className="h-4 w-4" />
|
icon: <SquareMousePointer className="h-4 w-4" />
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "sidebarLogsAnalytics",
|
||||||
|
href: "/{orgId}/settings/logs/analytics",
|
||||||
|
icon: <ChartLine className="h-4 w-4" />
|
||||||
|
},
|
||||||
...(build != "oss"
|
...(build != "oss"
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
@@ -143,7 +149,7 @@ export const orgNavSections = (
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
heading: "Organization",
|
heading: "sidebarOrganization",
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
title: "sidebarApiKeys",
|
title: "sidebarApiKeys",
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ export function SidebarNav({
|
|||||||
<div key={section.heading} className="mb-2">
|
<div key={section.heading} className="mb-2">
|
||||||
{!isCollapsed && (
|
{!isCollapsed && (
|
||||||
<div className="px-3 py-1 text-xs font-semibold text-muted-foreground uppercase tracking-wide">
|
<div className="px-3 py-1 text-xs font-semibold text-muted-foreground uppercase tracking-wide">
|
||||||
{section.heading}
|
{t(section.heading)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className="flex flex-col gap-1">
|
<div className="flex flex-col gap-1">
|
||||||
|
|||||||
Reference in New Issue
Block a user