Skip to content

Commit 5092305

Browse files
committed
add translation to synthetic data screen
1 parent 2ec1347 commit 5092305

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/routes/SyntheticData.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import { useReactToPrint } from 'react-to-print';
1010
import Measuring from '@/components/icons/measuring.svg?react';
1111
import SyntheticDataSettings from '@/components/SyntheticDataSettings';
1212
import { SyntheticDataInfo } from '@/components/synthetic-data-interfaces/cluster-export';
13+
import LanguageSwitcher from '@/components/ui/languageSwitcher';
14+
import { useTranslation } from 'react-i18next';
1315

1416
const PAGE_STYLE = `
1517
@page {
@@ -50,7 +52,7 @@ export default function SyntheticDataGeneration() {
5052
contentRef: contentRef,
5153
pageStyle: PAGE_STYLE,
5254
});
53-
55+
const { t } = useTranslation();
5456
const {
5557
loading,
5658
initialised,
@@ -104,6 +106,7 @@ export default function SyntheticDataGeneration() {
104106

105107
return (
106108
<main ref={contentRef} className="gap-4 p-4 flex flex-col">
109+
<LanguageSwitcher />
107110
<div className="relative flex-1 flex-col items-start">
108111
<SyntheticDataSettings
109112
onRun={onRun}
@@ -129,7 +132,7 @@ export default function SyntheticDataGeneration() {
129132
onClick={() => reactToPrintFn()}
130133
>
131134
<Share className="size-3.5 mr-2" />
132-
Share
135+
{t('shareButton')}
133136
</Button>
134137
</div>
135138
)}
@@ -140,7 +143,7 @@ export default function SyntheticDataGeneration() {
140143
<>
141144
<Measuring className="max-w-96 m-auto 2xl:max-w-full" />
142145
<h1 className="text-md text-center text-aaDark">
143-
Let's get started! Fill out the form.
146+
{t('getStarted')}
144147
</h1>
145148
<div className="flex-1" />
146149
</>

0 commit comments

Comments
 (0)