511 Use translation function in license components

This commit is contained in:
Lisa Hillebrand
2021-08-15 17:08:15 +02:00
parent 4f93d30872
commit 9596f8e52f
4 changed files with 27 additions and 25 deletions
+6 -4
View File
@@ -1,16 +1,18 @@
import React from 'react'
import { useTranslation } from 'react-i18next'
import AppPage from '../common/app-page'
import AppText from '../common/app-text'
import Segment from '../common/segment'
import labels from '../../i18n/en/settings'
const License = () => {
const { t } = useTranslation()
const currentYear = new Date().getFullYear()
return (
<AppPage title={labels.license.title}>
<AppPage title={t("settings.license.title")}>
<Segment last>
<AppText>{labels.license.text}</AppText>
<AppText>{t("settings.license.text", { currentYear })}</AppText>
</Segment>
</AppPage>
)