translations added

This commit is contained in:
Daniel Shleifman
2021-06-14 10:26:47 +03:00
parent e5cd75c2a2
commit 2a62530923
3 changed files with 12 additions and 4 deletions

View File

@@ -1,3 +1,5 @@
import { useTranslation } from 'react-i18next'
import { SectionTitle, WidgetWrapper } from '../style'
import { DetailedViewCacheSection, DetailedViewWidgetSection } from './style'
import TorrentCache from '../TorrentCache'
@@ -21,10 +23,12 @@ export default function DetailedView({
stat,
cache,
}) {
const { t } = useTranslation()
return (
<>
<DetailedViewWidgetSection>
<SectionTitle mb={20}>Data</SectionTitle>
<SectionTitle mb={20}>{t('Data')}</SectionTitle>
<WidgetWrapper detailedView>
<DownlodSpeedWidget data={downloadSpeed} />
<UploadSpeedWidget data={uploadSpeed} />
@@ -37,7 +41,7 @@ export default function DetailedView({
</DetailedViewWidgetSection>
<DetailedViewCacheSection>
<SectionTitle mb={20}>Cache</SectionTitle>
<SectionTitle mb={20}>{t('Cache')}</SectionTitle>
<TorrentCache cache={cache} />
</DetailedViewCacheSection>
</>