Browse Source

fix: missing translations

pull/627/head
Dan Ditomaso 1 year ago
parent
commit
aa1a86eda1
  1. 12
      src/components/Sidebar.tsx

12
src/components/Sidebar.tsx

@ -90,24 +90,24 @@ export const Sidebar = ({ children }: SidebarProps) => {
const pages: NavLink[] = [ const pages: NavLink[] = [
{ {
name: t("navigation.title_messages"), name: t("navigation_title_messages"),
icon: MessageSquareIcon, icon: MessageSquareIcon,
page: "messages", page: "messages",
count: numUnread ? numUnread : undefined, count: numUnread ? numUnread : undefined,
}, },
{ name: t("navigation.title_map"), icon: MapIcon, page: "map" }, { name: t("navigation_title_map"), icon: MapIcon, page: "map" },
{ {
name: t("navigation.title_radioConfig"), name: t("navigation_title_radioConfig"),
icon: SettingsIcon, icon: SettingsIcon,
page: "config", page: "config",
}, },
{ {
name: t("navigation.title_channels"), name: t("navigation_title_channels"),
icon: LayersIcon, icon: LayersIcon,
page: "channels", page: "channels",
}, },
{ {
name: `${t("navigation.title_nodes")} (${ name: `${t("navigation_title_nodes")} (${
Math.max(getNodesLength() - 1, 0) Math.max(getNodesLength() - 1, 0)
})`, })`,
icon: UsersIcon, icon: UsersIcon,
@ -150,7 +150,7 @@ export const Sidebar = ({ children }: SidebarProps) => {
</h2> </h2>
</div> </div>
<SidebarSection label={t("navigation.title")} className="mt-4 px-0"> <SidebarSection label={t("navigation_title")} className="mt-4 px-0">
{pages.map((link) => ( {pages.map((link) => (
<SidebarButton <SidebarButton
key={link.name} key={link.name}

Loading…
Cancel
Save