Skip to content

Commit 2a08c25

Browse files
committed
Add missing i18n
1 parent 254b3d1 commit 2a08c25

File tree

6 files changed

+19
-7
lines changed

6 files changed

+19
-7
lines changed

public/locales/en.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
"detailsLabel": "Details:"
8282
},
8383
"CopyKubeconfigButton": {
84+
"kubeconfigButton": "Kubeconfig",
8485
"copiedMessage": "Copied to Clipboard",
8586
"failedMessage": "Failed to copy, Error:",
8687
"menuDownload": "Download",
@@ -97,7 +98,10 @@
9798
"navigateHome": "Back to Homepage"
9899
},
99100
"IntelligentBreadcrumbs": {
100-
"homeLabel": "Home"
101+
"homeLabel": "Home",
102+
"projects": "Projects",
103+
"workspaces": "Workspaces",
104+
"mcps": "MCPs"
101105
},
102106
"MCPContext": {
103107
"errorMessage": "An unknown error occurred"
@@ -107,6 +111,7 @@
107111
"subtitleMessage": "Looks like this page is not opened inside of the Hyperspace Portal. Contact admins for help."
108112
},
109113
"ShellBar": {
114+
"betaButton": "Beta",
110115
"betaButtonDescription": "This web app is currently in Beta, and may not be ready for productive use. We're actively improving the experience and would love your feedback — your input helps shape the future of the app!",
111116
"signOutButton": "Sign Out",
112117
"feedbackMessageLabel": "Message",

src/components/ControlPlanes/CopyKubeconfigButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function CopyKubeconfigButton() {
2626
return (
2727
<>
2828
<Button icon="slim-arrow-down" icon-end onClick={handleOpenerClick}>
29-
Kubeconfig
29+
{t('CopyKubeconfigButton.kubeconfigButton')}
3030
</Button>
3131
<Menu
3232
ref={popoverRef}

src/components/Core/IntelligentBreadcrumbs.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,19 @@ export default function IntelligentBreadcrumbs() {
3030
</BreadcrumbsItem>
3131
{projectName && (
3232
<>
33-
<BreadcrumbsItem href={`${PREFIX}/projects`}>Projects</BreadcrumbsItem>
33+
<BreadcrumbsItem href={`${PREFIX}/projects`}>{t('IntelligentBreadcrumbs.projects')}</BreadcrumbsItem>
3434
<BreadcrumbsItem href={`${PREFIX}/projects/${projectName}`}>{projectName}</BreadcrumbsItem>
3535
{workspaceName && (
3636
<>
37-
<BreadcrumbsItem href={`${PREFIX}/projects/${projectName}`}>Workspaces</BreadcrumbsItem>
37+
<BreadcrumbsItem href={`${PREFIX}/projects/${projectName}`}>
38+
{t('IntelligentBreadcrumbs.workspaces')}
39+
</BreadcrumbsItem>
3840
<BreadcrumbsItem href={`${PREFIX}/projects/${projectName}`}>{workspaceName}</BreadcrumbsItem>
3941
{controlPlaneName && (
4042
<>
41-
<BreadcrumbsItem href={`${PREFIX}/projects/${projectName}`}>MCPs</BreadcrumbsItem>
43+
<BreadcrumbsItem href={`${PREFIX}/projects/${projectName}`}>
44+
{t('IntelligentBreadcrumbs.mcps')}
45+
</BreadcrumbsItem>
4246
<BreadcrumbsItem
4347
href={`${PREFIX}/projects/${projectName}/workspaces/${workspaceName}/mcps/${controlPlaneName}`}
4448
>

src/components/Core/ShellBar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export function ShellBarComponent() {
4747
const betaButtonRef = useRef<ButtonDomRef>(null);
4848

4949
const { user } = useAuthOnboarding();
50+
const { t } = useTranslation();
5051

5152
const onProfileClick = (e: Ui5CustomEvent<ShellBarDomRef, ShellBarProfileClickEventDetail>) => {
5253
profilePopoverRef.current!.opener = e.detail.targetRef;
@@ -115,7 +116,7 @@ export function ShellBarComponent() {
115116
<Button ref={betaButtonRef} className={styles.betaButton} onClick={onBetaClick}>
116117
<span className={styles.betaContent}>
117118
<Icon name="information" className={styles.betaIcon} />
118-
<span className={styles.betaText}>Beta</span>
119+
<span className={styles.betaText}>{t('ShellBar.betaButton')}</span>
119120
</span>
120121
</Button>
121122
</div>

src/components/Dialogs/KubectlCommandInfo/KubectlBaseDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export const KubectlBaseDialog = ({
8484
headerText={title}
8585
open={open}
8686
style={{ width: '550px' }}
87-
footer={<Bar endContent={<Button onClick={onClose}>Close</Button>} />}
87+
footer={<Bar endContent={<Button onClick={onClose}>{t('common.close')}</Button>} />}
8888
onClose={onClose}
8989
>
9090
<FlexBox direction="Column" style={{ gap: '16px' }}>

src/components/Dialogs/KubectlCommandInfo/KubectlTerminal.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export const KubectlTerminal = ({ command }: KubeCtlTerminalProps) => {
3535

3636
return (
3737
<>
38+
{/* eslint-disable-next-line i18next/no-literal-string */}
3839
<span>echo &apos;</span>
3940
<div style={{ marginLeft: '16px' }}>{yamlLines}</div>
4041
<span>&apos;</span> | <span>{kubectlPart}</span>
@@ -94,6 +95,7 @@ export const KubectlTerminal = ({ command }: KubeCtlTerminalProps) => {
9495
</FlexBox>
9596

9697
<div style={{ padding: '12px 16px', overflowX: 'auto' }}>
98+
{/* eslint-disable-next-line i18next/no-literal-string */}
9799
<span style={{ marginRight: '8px' }}></span>
98100
{FormattedCommand()}
99101
</div>

0 commit comments

Comments
 (0)