Skip to content

Commit

Permalink
[#217] use translations in menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dyczka authored and MSzalowski committed Apr 5, 2024
1 parent 1c4012d commit dea8c29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 8 additions & 8 deletions govtool/frontend/src/consts/navItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const NAV_ITEMS = [
{
dataTestId: "dashboard-link",
navTo: PATHS.home,
label: "Dashboard",
label: i18n.t("dashboard.title"),
newTabLink: null,
},
{
Expand All @@ -17,27 +17,27 @@ export const NAV_ITEMS = [
{
dataTestId: "governance-actions-link",
navTo: PATHS.governanceActions,
label: "Governance Actions",
label: i18n.t("govActions.title"),
newTabLink: null,
},
{
dataTestId: "guides-link",
navTo: "",
label: "Guides",
label: i18n.t("menu.guides"),
newTabLink: "https://docs.sanchogov.tools/about/what-is-sanchonet-govtool",
},
{
dataTestId: "faqs-link",
navTo: "",
label: "FAQs",
label: i18n.t("menu.faqs"),
newTabLink: "https://docs.sanchogov.tools/faqs",
},
];

export const CONNECTED_NAV_ITEMS = [
{
dataTestId: "dashboard-link",
label: "Dashboard",
label: i18n.t("dashboard.title"),
navTo: PATHS.dashboard,
activeIcon: ICONS.dashboardActiveIcon,
icon: ICONS.dashboardIcon,
Expand All @@ -52,23 +52,23 @@ export const CONNECTED_NAV_ITEMS = [
},
{
dataTestId: "governance-actions-link",
label: "Governance Actions",
label: i18n.t("govActions.title"),
navTo: PATHS.dashboardGovernanceActions,
activeIcon: ICONS.governanceActionsActiveIcon,
icon: ICONS.governanceActionsIcon,
newTabLink: null,
},
{
dataTestId: "guides-link",
label: "Guides",
label: i18n.t("menu.guides"),
navTo: "",
activeIcon: ICONS.guidesActiveIcon,
icon: ICONS.guidesIcon,
newTabLink: "https://docs.sanchogov.tools/about/what-is-sanchonet-govtool",
},
{
dataTestId: "faqs-link",
label: "FAQs",
label: i18n.t("menu.faqs"),
navTo: "",
activeIcon: ICONS.faqsActiveIcon,
icon: ICONS.faqsIcon,
Expand Down
2 changes: 0 additions & 2 deletions govtool/frontend/src/i18n/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,6 @@ export const en = {
faqs: "FAQs",
guides: "Guides",
help: "Help",
dashboard: "Dashboard",
viewGovActions: "View Governance Actions",
},
metadataUpdate: {
description:
Expand Down

0 comments on commit dea8c29

Please sign in to comment.