Skip to content

Commit f73ba0c

Browse files
committed
Add translations
1 parent 41b0278 commit f73ba0c

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

packages/orchestrator-ui-components/src/components/WfoPageTemplate/WfoPageHeader/WfoHamburgerMenu.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { useGetVersionsQuery } from '@/rtk/endpoints/versions';
1616
import { toOptionalArrayEntry } from '@/utils';
1717

1818
export const WfoHamburgerMenu = ({}) => {
19-
const t = useTranslations('main');
19+
const t = useTranslations('hamburgerMenu');
2020
const [isPopoverOpen, setPopoverIsOpen] = useState(false);
2121
const { theme, isDarkThemeActive } = useOrchestratorTheme();
2222
const { enableSupportMenuItem, supportMenuItemUrl } =
@@ -34,7 +34,7 @@ export const WfoHamburgerMenu = ({}) => {
3434
} = useGetVersionsQuery();
3535

3636
const logoutItem = {
37-
name: 'Logout',
37+
name: t('logout'),
3838
icon: (
3939
<WfoLogoutIcon
4040
color={
@@ -46,7 +46,7 @@ export const WfoHamburgerMenu = ({}) => {
4646
};
4747

4848
const supportItem = {
49-
name: 'Support',
49+
name: t('support'),
5050
icon: (
5151
<WfoQuestionCircle
5252
color={
@@ -58,7 +58,7 @@ export const WfoHamburgerMenu = ({}) => {
5858
};
5959

6060
const versionItem = {
61-
name: 'Software Versions',
61+
name: t('softwareVersions'),
6262
icon: <WfoSquareStack3dStack width={24} height={24} />,
6363
panel: 4,
6464
};

packages/orchestrator-ui-components/src/messages/en-GB.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
"resetToDefault": "Reset to default",
2525
"savePreferences": "Save preferences",
2626
"numberOfRows": "Number of rows",
27-
"tableSettings": "Table settings",
28-
"openMenu": "Open menu"
27+
"tableSettings": "Table settings"
2928
},
3029
"common": {
3130
"product": "Product",
@@ -428,5 +427,11 @@
428427
"headerTitle": "Total number of products",
429428
"listTitle": "Total number of product instances"
430429
}
430+
},
431+
"hamburgerMenu": {
432+
"openMenu": "Open menu",
433+
"support": "Support",
434+
"softwareVersions": "Software Versions",
435+
"logout": "Logout"
431436
}
432437
}

packages/orchestrator-ui-components/src/messages/nl-NL.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,5 +428,10 @@
428428
"headerTitle": "Totaal aantal producten",
429429
"listTitle": "Totaal aantal productinstanties"
430430
}
431+
},
432+
"hamburgerMenu": {
433+
"support": "Support",
434+
"softwareVersions": "Software Versies",
435+
"logout": "Logout"
431436
}
432437
}

0 commit comments

Comments
 (0)