mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
translations added
This commit is contained in:
@@ -1,18 +1,22 @@
|
|||||||
import IconButton from '@material-ui/core/IconButton'
|
import IconButton from '@material-ui/core/IconButton'
|
||||||
import CloseIcon from '@material-ui/icons/Close'
|
import CloseIcon from '@material-ui/icons/Close'
|
||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|
||||||
import IOSShareIcon from './IOSShareIcon'
|
import IOSShareIcon from './IOSShareIcon'
|
||||||
import { StyledWrapper, StyledHeader, StyledContent } from './style'
|
import { StyledWrapper, StyledHeader, StyledContent } from './style'
|
||||||
|
|
||||||
export function PWAInstallationGuide() {
|
export function PWAInstallationGuide() {
|
||||||
const [isOpen, setIsOpen] = useState(!JSON.parse(localStorage.getItem('pwaNotificationIsClosed')))
|
const [isOpen, setIsOpen] = useState(!JSON.parse(localStorage.getItem('pwaNotificationIsClosed')))
|
||||||
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<StyledWrapper isOpen={isOpen}>
|
<StyledWrapper isOpen={isOpen}>
|
||||||
<StyledHeader>
|
<StyledHeader>
|
||||||
<img src='/apple-icon-180.png' width={50} alt='ts-icon' />
|
<img src='/apple-icon-180.png' width={50} alt='ts-icon' />
|
||||||
Install application
|
|
||||||
|
{t('PWAGuide.Header')}
|
||||||
|
|
||||||
<IconButton
|
<IconButton
|
||||||
size='small'
|
size='small'
|
||||||
aria-label='close'
|
aria-label='close'
|
||||||
@@ -27,16 +31,16 @@ export function PWAInstallationGuide() {
|
|||||||
</StyledHeader>
|
</StyledHeader>
|
||||||
|
|
||||||
<StyledContent>
|
<StyledContent>
|
||||||
<p>Install the app on your device to easily access it anytime. No app store. No download.</p>
|
<p>{t('PWAGuide.Description')}</p>
|
||||||
|
|
||||||
<p>VLC button will be added to open video instantly on the phone</p>
|
<p>{t('PWAGuide.VLC')}</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
1. Tap on <IOSShareIcon />
|
1. {t('PWAGuide.FirstStep')} <IOSShareIcon />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
2. Select <span>Add to Home Screen</span>
|
2. {t('PWAGuide.SecondStep.Select')} <span>{t('PWAGuide.SecondStep.AddToHomeScreen')}</span>
|
||||||
</p>
|
</p>
|
||||||
</StyledContent>
|
</StyledContent>
|
||||||
</StyledWrapper>
|
</StyledWrapper>
|
||||||
|
|||||||
@@ -75,6 +75,16 @@
|
|||||||
"Playlist": "Playlist",
|
"Playlist": "Playlist",
|
||||||
"Preload": "Preload",
|
"Preload": "Preload",
|
||||||
"ProjectSource": "Project page",
|
"ProjectSource": "Project page",
|
||||||
|
"PWAGuide": {
|
||||||
|
"Header": "Install application",
|
||||||
|
"Description": "Install the app on your device to easily access it anytime. No app store. No download.",
|
||||||
|
"VLC": "VLC button will be added to open video instantly on the phone",
|
||||||
|
"FirstStep": "Tap on",
|
||||||
|
"SecondStep": {
|
||||||
|
"Select": "Select",
|
||||||
|
"AddToHomeScreen":"Add to Home Screen"
|
||||||
|
}
|
||||||
|
},
|
||||||
"Releases": "TorrServer Releases",
|
"Releases": "TorrServer Releases",
|
||||||
"RemoveAll": "Remove All",
|
"RemoveAll": "Remove All",
|
||||||
"RemoveViews": "Remove View States",
|
"RemoveViews": "Remove View States",
|
||||||
|
|||||||
@@ -75,6 +75,16 @@
|
|||||||
"Playlist": "Плейлист",
|
"Playlist": "Плейлист",
|
||||||
"Preload": "Предзагр.",
|
"Preload": "Предзагр.",
|
||||||
"ProjectSource": "Сайт проекта",
|
"ProjectSource": "Сайт проекта",
|
||||||
|
"PWAGuide": {
|
||||||
|
"Header": "Установить приложение",
|
||||||
|
"Description": "Установите приложение на ваше устройство для быстрого доступа в любой момент. Без AppStore. Без загрузки.",
|
||||||
|
"VLC": "VLC кнопка будет добавлена для мгновенного воспроизведения на телефоне",
|
||||||
|
"FirstStep": "Нажмите на",
|
||||||
|
"SecondStep": {
|
||||||
|
"Select": "Выбирите",
|
||||||
|
"AddToHomeScreen":"На экран «Домой»"
|
||||||
|
}
|
||||||
|
},
|
||||||
"Releases": "Релизы TorrServer",
|
"Releases": "Релизы TorrServer",
|
||||||
"RemoveAll": "Удалить все",
|
"RemoveAll": "Удалить все",
|
||||||
"RemoveViews": "Очистить просмотры",
|
"RemoveViews": "Очистить просмотры",
|
||||||
|
|||||||
@@ -75,6 +75,16 @@
|
|||||||
"Playlist": "Плейлист",
|
"Playlist": "Плейлист",
|
||||||
"Preload": "Передзав.",
|
"Preload": "Передзав.",
|
||||||
"ProjectSource": "Сайт проекту",
|
"ProjectSource": "Сайт проекту",
|
||||||
|
"PWAGuide": {
|
||||||
|
"Header": "Встановити додаток",
|
||||||
|
"Description": "Встановіть програму на свій пристрій, щоб легко отримати до неї доступ у будь-який час. Немає магазину додатків. Немає завантаження.",
|
||||||
|
"VLC": "Кнопка VLC буде додана, щоб миттєво відкривати відео на телефоні",
|
||||||
|
"FirstStep": "Торкніться",
|
||||||
|
"SecondStep": {
|
||||||
|
"Select": "Виберіть",
|
||||||
|
"AddToHomeScreen":"Додати на головний екран"
|
||||||
|
}
|
||||||
|
},
|
||||||
"Releases": "Релізи TorrServer",
|
"Releases": "Релізи TorrServer",
|
||||||
"RemoveAll": "Видалити все",
|
"RemoveAll": "Видалити все",
|
||||||
"RemoveViews": "Видалити перегляди",
|
"RemoveViews": "Видалити перегляди",
|
||||||
|
|||||||
Reference in New Issue
Block a user