Skip to content

Commit 28708cf

Browse files
committed
fix: Roadmap dropdown link intl strings
1 parent 644f42d commit 28708cf

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/layouts/md/Roadmap.tsx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { useTranslation } from "next-i18next"
2+
13
import type { ChildOnlyProp } from "@/lib/types"
24
import type { MdPageContent, RoadmapFrontmatter } from "@/lib/interfaces"
35

@@ -34,12 +36,14 @@ export const RoadmapLayout = ({
3436
tocItems,
3537
contentNotTranslated,
3638
}: RoadmapLayoutProps) => {
39+
const { t } = useTranslation("common")
40+
3741
const dropdownLinks: ButtonDropdownList = {
38-
text: "nav-roadmap-options",
39-
ariaLabel: "nav-roadmap-options-alt",
42+
text: t("common:nav-roadmap-options"),
43+
ariaLabel: t("common:nav-roadmap-options-alt"),
4044
items: [
4145
{
42-
text: "nav-roadmap-home",
46+
text: t("common:nav-roadmap-home"),
4347
href: "/roadmap/",
4448
matomo: {
4549
eventCategory: `Roadmap dropdown`,
@@ -48,7 +52,7 @@ export const RoadmapLayout = ({
4852
},
4953
},
5054
{
51-
text: "nav-roadmap-security",
55+
text: t("common:nav-roadmap-security"),
5256
href: "/roadmap/security",
5357
matomo: {
5458
eventCategory: `Roadmap security dropdown`,
@@ -57,7 +61,7 @@ export const RoadmapLayout = ({
5761
},
5862
},
5963
{
60-
text: "nav-roadmap-scaling",
64+
text: t("common:nav-roadmap-scaling"),
6165
href: "/roadmap/scaling",
6266
matomo: {
6367
eventCategory: `Roadmap scaling dropdown`,
@@ -66,7 +70,7 @@ export const RoadmapLayout = ({
6670
},
6771
},
6872
{
69-
text: "nav-roadmap-user-experience",
73+
text: t("common:nav-roadmap-user-experience"),
7074
href: "/roadmap/user-experience/",
7175
matomo: {
7276
eventCategory: `Roadmap user experience dropdown`,
@@ -75,7 +79,7 @@ export const RoadmapLayout = ({
7579
},
7680
},
7781
{
78-
text: "nav-roadmap-future-proofing",
82+
text: t("common:nav-roadmap-future-proofing"),
7983
href: "/roadmap/future-proofing",
8084
matomo: {
8185
eventCategory: `Roadmap future-proofing dropdown`,

0 commit comments

Comments
 (0)