diff --git a/web/src/components/DialogTorrentDetailsContent/DetailedView/index.jsx b/web/src/components/DialogTorrentDetailsContent/DetailedView/index.jsx index aa037ed..cccdf9d 100644 --- a/web/src/components/DialogTorrentDetailsContent/DetailedView/index.jsx +++ b/web/src/components/DialogTorrentDetailsContent/DetailedView/index.jsx @@ -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 ( <> - Data + {t('Data')} @@ -37,7 +41,7 @@ export default function DetailedView({ - Cache + {t('Cache')} diff --git a/web/src/locales/en/translation.json b/web/src/locales/en/translation.json index 11752aa..98a1532 100644 --- a/web/src/locales/en/translation.json +++ b/web/src/locales/en/translation.json @@ -108,5 +108,7 @@ "Clear": "Clear", "AddTorrentSourceNotification": "First add your torrent source", "WrongTorrentSource": "Wrong torrent source", - "ScrollDown": "scroll down" + "ScrollDown": "scroll down", + "Cache": "Cache", + "Data": "Data" } \ No newline at end of file diff --git a/web/src/locales/ru/translation.json b/web/src/locales/ru/translation.json index 1b1903f..8b92b28 100644 --- a/web/src/locales/ru/translation.json +++ b/web/src/locales/ru/translation.json @@ -108,5 +108,7 @@ "Clear": "Очистить", "AddTorrentSourceNotification": "Сначала добавьте торрент источник", "WrongTorrentSource": "Неправильный torrent источник", - "ScrollDown": "прокрутить вниз" + "ScrollDown": "прокрутить вниз", + "Cache": "Кеш", + "Data": "Данные" } \ No newline at end of file