1
+ import { useTranslation } from "next-i18next"
2
+
1
3
import type { ChildOnlyProp } from "@/lib/types"
2
4
import type { MdPageContent , RoadmapFrontmatter } from "@/lib/interfaces"
3
5
@@ -34,12 +36,14 @@ export const RoadmapLayout = ({
34
36
tocItems,
35
37
contentNotTranslated,
36
38
} : RoadmapLayoutProps ) => {
39
+ const { t } = useTranslation ( "common" )
40
+
37
41
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") ,
40
44
items : [
41
45
{
42
- text : " nav-roadmap-home",
46
+ text : t ( "common: nav-roadmap-home") ,
43
47
href : "/roadmap/" ,
44
48
matomo : {
45
49
eventCategory : `Roadmap dropdown` ,
@@ -48,7 +52,7 @@ export const RoadmapLayout = ({
48
52
} ,
49
53
} ,
50
54
{
51
- text : " nav-roadmap-security",
55
+ text : t ( "common: nav-roadmap-security") ,
52
56
href : "/roadmap/security" ,
53
57
matomo : {
54
58
eventCategory : `Roadmap security dropdown` ,
@@ -57,7 +61,7 @@ export const RoadmapLayout = ({
57
61
} ,
58
62
} ,
59
63
{
60
- text : " nav-roadmap-scaling",
64
+ text : t ( "common: nav-roadmap-scaling") ,
61
65
href : "/roadmap/scaling" ,
62
66
matomo : {
63
67
eventCategory : `Roadmap scaling dropdown` ,
@@ -66,7 +70,7 @@ export const RoadmapLayout = ({
66
70
} ,
67
71
} ,
68
72
{
69
- text : " nav-roadmap-user-experience",
73
+ text : t ( "common: nav-roadmap-user-experience") ,
70
74
href : "/roadmap/user-experience/" ,
71
75
matomo : {
72
76
eventCategory : `Roadmap user experience dropdown` ,
@@ -75,7 +79,7 @@ export const RoadmapLayout = ({
75
79
} ,
76
80
} ,
77
81
{
78
- text : " nav-roadmap-future-proofing",
82
+ text : t ( "common: nav-roadmap-future-proofing") ,
79
83
href : "/roadmap/future-proofing" ,
80
84
matomo : {
81
85
eventCategory : `Roadmap future-proofing dropdown` ,
0 commit comments