Skip to content

Commit 0ab1069

Browse files
committed
frontend: Fix showing special sidebar when in non-English locales
The name of the sidebar entries (except of just the label) were being translated, so it would not match the untranslated strings and thus not get set up for the right sections.
1 parent fc8c3c2 commit 0ab1069

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/src/components/Sidebar/Sidebar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,19 @@ export default function Sidebar() {
6969
const { t, i18n } = useTranslation(['glossary', 'frequent']);
7070
const specialSidebarOptions: SidebarItemProps[] = [
7171
{
72-
name: t('frequent|back'),
72+
name: 'clusters',
7373
icon: 'mdi:hexagon-multiple',
7474
label: t('glossary|Cluster'),
7575
url: '/',
7676
},
7777
{
78-
name: t('frequent|notifications'),
78+
name: 'notifications',
7979
icon: 'mdi:bell',
8080
label: t('frequent|Notifications'),
8181
url: '/notifications',
8282
},
8383
{
84-
name: t('frequent|settings'),
84+
name: 'settings',
8585
icon: 'mdi:cog',
8686
label: t('frequent|Settings'),
8787
url: '/settings',

0 commit comments

Comments
 (0)