Skip to content

Commit ddc6bd0

Browse files
committed
Source Impressum/Datenschutz from translations
1 parent 24ba423 commit ddc6bd0

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

src/ui/language/translations.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ const translations = {
9191
},
9292
legal: {
9393
impressum: {
94+
title: "Imprint",
9495
declaration5TMG: "Information in accordance with § 5 TMG",
9596
representedBy: "Represented by",
9697
registered: "Registration",
@@ -389,6 +390,7 @@ const translations = {
389390
},
390391
legal: {
391392
impressum: {
393+
title: "Impressum",
392394
declaration5TMG: "Angaben gemäß § 5 TMG",
393395
representedBy: "Vertreten durch",
394396
registered: "Eintragung",

src/ui/screens/landing-page/sections/footer/views/LandingPageFooterDesktop.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ import LogoBar from "@/ui/shared-components/LogoBar";
66
import GitHubLink from "@/ui/shared-components/GitHubLink";
77
import FeatureToggle from "../components/FeatureToggle";
88
import RegularButton from "@/ui/shared-components/buttons/RegularButton";
9+
import useTranslation from "@/ui/language/useTranslation";
910

1011
const LandingPageFooterDesktop = () => {
12+
const { t } = useTranslation();
1113

1214
return (
1315
<VBox sx={{
@@ -30,8 +32,8 @@ const LandingPageFooterDesktop = () => {
3032
</HBox>
3133
<HBox justifyContent={'center'} alignItems={'center'}>
3234
<HBox sx={{ width: '506px', justifyContent: 'center' }}>
33-
<RegularButton link='/impressum' variant='pinkContained' text='Impressum' size='small' />
34-
<RegularButton link='/data-protection' variant='pinkContained' text='Datenschutz' size='small' />
35+
<RegularButton link='/impressum' variant='pinkContained' text={t("home.legal.impressum.title")} size='small' />
36+
<RegularButton link='/data-protection' variant='pinkContained' text={t("home.legal.dataProtection.title")} size='small' />
3537
</HBox>
3638
</HBox>
3739
</VBox>

src/ui/screens/landing-page/sections/footer/views/LandingPageFooterMobile.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ import LogoBar from "@/ui/shared-components/LogoBar";
66
import GitHubLink from "@/ui/shared-components/GitHubLink";
77
import theme from "@/theme";
88
import RegularButton from "@/ui/shared-components/buttons/RegularButton";
9+
import useTranslation from "@/ui/language/useTranslation";
910

1011
const LandingPageFooterMobile = () => {
12+
const { t } = useTranslation();
1113

1214
return (
1315
<VBox sx={{
@@ -28,8 +30,8 @@ const LandingPageFooterMobile = () => {
2830
</VBox>
2931
</VBox>
3032
<VBox>
31-
<RegularButton link='/impressum' variant='pinkContained' text='Impressum' size='small' />
32-
<RegularButton link='/data-protection' variant='pinkContained' text='Datenschutz' size='small' />
33+
<RegularButton link='/impressum' variant='pinkContained' text={t("home.legal.impressum.title")} size='small' />
34+
<RegularButton link='/data-protection' variant='pinkContained' text={t("home.legal.dataProtection.title")} size='small' />
3335
</VBox>
3436
</VBox>
3537
);

0 commit comments

Comments
 (0)