From 756a754af69911fdca2602521740a4a1d2e7d18d Mon Sep 17 00:00:00 2001 From: maceteligolden Date: Tue, 26 Dec 2023 14:35:36 +0100 Subject: [PATCH] update:add locale to kanban --- apps/web/app/[locale]/kanban/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/app/[locale]/kanban/page.tsx b/apps/web/app/[locale]/kanban/page.tsx index acb6aa900..69c86d728 100644 --- a/apps/web/app/[locale]/kanban/page.tsx +++ b/apps/web/app/[locale]/kanban/page.tsx @@ -19,11 +19,12 @@ const Kanban = () => { const { data } = useKanban(); const { activeTeam } = useOrganizationTeams(); const t = useTranslations(); + const { locale } = useParams<{locale: string}>(); const [activeTab, setActiveTab] = useState(KanbanTabs.TODAY); - const breadcrumbPath = [{title: JSON.parse(t('pages.home.BREADCRUMB')), href: '/'}, {title: activeTeam?.name || '', href:'/'}, {title:'Kanban Board', href: '/kanban'}]; + const breadcrumbPath = [{title: JSON.parse(t('pages.home.BREADCRUMB')), href: '/'}, {title: activeTeam?.name || '', href:'/'}, {title:'Kanban Board', href: `/${locale}/kanban`}]; const imageRadius = 20; const numberOfImagesDisplayed = 4;