diff --git a/web/src/components/DialogTorrentDetailsContent/TorrentCache/DefaultSnake.jsx b/web/src/components/DialogTorrentDetailsContent/TorrentCache/DefaultSnake.jsx index 0937ff2..ada28a9 100644 --- a/web/src/components/DialogTorrentDetailsContent/TorrentCache/DefaultSnake.jsx +++ b/web/src/components/DialogTorrentDetailsContent/TorrentCache/DefaultSnake.jsx @@ -4,6 +4,7 @@ import { Stage, Layer } from 'react-konva' import Measure from 'react-measure' import { v4 as uuidv4 } from 'uuid' import styled from 'styled-components' +import { useTranslation } from 'react-i18next' import SingleBlock from './SingleBlock' import getShortCacheMap from './getShortCacheMap' @@ -16,6 +17,7 @@ const ScrollNotification = styled.div` ` export default function DefaultSnake({ isMini, cacheMap, preloadPiecesAmount }) { + const { t } = useTranslation() const [dimensions, setDimensions] = useState({ width: 0, height: 0 }) const [stageSettings, setStageSettings] = useState({ boxHeight: null, @@ -117,7 +119,7 @@ export default function DefaultSnake({ isMini, cacheMap, preloadPiecesAmount }) {isMini && (stageOffset + blockSizeWithMargin * amountOfRows || 0) >= miniCacheMaxHeight && - dimensions.height >= miniCacheMaxHeight && scroll down} + dimensions.height >= miniCacheMaxHeight && {t('ScrollDown')}} )} diff --git a/web/src/locales/en/translation.json b/web/src/locales/en/translation.json index 10f75b5..11752aa 100644 --- a/web/src/locales/en/translation.json +++ b/web/src/locales/en/translation.json @@ -107,5 +107,6 @@ "TorrentSourceOptions": "magnet / hash / .torrent file link", "Clear": "Clear", "AddTorrentSourceNotification": "First add your torrent source", - "WrongTorrentSource": "Wrong torrent source" + "WrongTorrentSource": "Wrong torrent source", + "ScrollDown": "scroll down" } \ No newline at end of file diff --git a/web/src/locales/ru/translation.json b/web/src/locales/ru/translation.json index a199027..1b1903f 100644 --- a/web/src/locales/ru/translation.json +++ b/web/src/locales/ru/translation.json @@ -107,5 +107,6 @@ "TorrentSourceOptions": "magnet ссылка / хеш / ссылка на .torrent файл", "Clear": "Очистить", "AddTorrentSourceNotification": "Сначала добавьте торрент источник", - "WrongTorrentSource": "Неправильный torrent источник" + "WrongTorrentSource": "Неправильный torrent источник", + "ScrollDown": "прокрутить вниз" } \ No newline at end of file