mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
translation added
This commit is contained in:
@@ -4,6 +4,7 @@ import { Stage, Layer } from 'react-konva'
|
|||||||
import Measure from 'react-measure'
|
import Measure from 'react-measure'
|
||||||
import { v4 as uuidv4 } from 'uuid'
|
import { v4 as uuidv4 } from 'uuid'
|
||||||
import styled from 'styled-components'
|
import styled from 'styled-components'
|
||||||
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|
||||||
import SingleBlock from './SingleBlock'
|
import SingleBlock from './SingleBlock'
|
||||||
import getShortCacheMap from './getShortCacheMap'
|
import getShortCacheMap from './getShortCacheMap'
|
||||||
@@ -16,6 +17,7 @@ const ScrollNotification = styled.div`
|
|||||||
`
|
`
|
||||||
|
|
||||||
export default function DefaultSnake({ isMini, cacheMap, preloadPiecesAmount }) {
|
export default function DefaultSnake({ isMini, cacheMap, preloadPiecesAmount }) {
|
||||||
|
const { t } = useTranslation()
|
||||||
const [dimensions, setDimensions] = useState({ width: 0, height: 0 })
|
const [dimensions, setDimensions] = useState({ width: 0, height: 0 })
|
||||||
const [stageSettings, setStageSettings] = useState({
|
const [stageSettings, setStageSettings] = useState({
|
||||||
boxHeight: null,
|
boxHeight: null,
|
||||||
@@ -117,7 +119,7 @@ export default function DefaultSnake({ isMini, cacheMap, preloadPiecesAmount })
|
|||||||
|
|
||||||
{isMini &&
|
{isMini &&
|
||||||
(stageOffset + blockSizeWithMargin * amountOfRows || 0) >= miniCacheMaxHeight &&
|
(stageOffset + blockSizeWithMargin * amountOfRows || 0) >= miniCacheMaxHeight &&
|
||||||
dimensions.height >= miniCacheMaxHeight && <ScrollNotification>scroll down</ScrollNotification>}
|
dimensions.height >= miniCacheMaxHeight && <ScrollNotification>{t('ScrollDown')}</ScrollNotification>}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</Measure>
|
</Measure>
|
||||||
|
|||||||
@@ -107,5 +107,6 @@
|
|||||||
"TorrentSourceOptions": "magnet / hash / .torrent file link",
|
"TorrentSourceOptions": "magnet / hash / .torrent file link",
|
||||||
"Clear": "Clear",
|
"Clear": "Clear",
|
||||||
"AddTorrentSourceNotification": "First add your torrent source",
|
"AddTorrentSourceNotification": "First add your torrent source",
|
||||||
"WrongTorrentSource": "Wrong torrent source"
|
"WrongTorrentSource": "Wrong torrent source",
|
||||||
|
"ScrollDown": "scroll down"
|
||||||
}
|
}
|
||||||
@@ -107,5 +107,6 @@
|
|||||||
"TorrentSourceOptions": "magnet ссылка / хеш / ссылка на .torrent файл",
|
"TorrentSourceOptions": "magnet ссылка / хеш / ссылка на .torrent файл",
|
||||||
"Clear": "Очистить",
|
"Clear": "Очистить",
|
||||||
"AddTorrentSourceNotification": "Сначала добавьте торрент источник",
|
"AddTorrentSourceNotification": "Сначала добавьте торрент источник",
|
||||||
"WrongTorrentSource": "Неправильный torrent источник"
|
"WrongTorrentSource": "Неправильный torrent источник",
|
||||||
|
"ScrollDown": "прокрутить вниз"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user