diff --git a/web/src/components/App/PWAInstallationGuide/index.jsx b/web/src/components/App/PWAInstallationGuide/index.jsx index 1cb4217..e709cd5 100644 --- a/web/src/components/App/PWAInstallationGuide/index.jsx +++ b/web/src/components/App/PWAInstallationGuide/index.jsx @@ -1,18 +1,22 @@ import IconButton from '@material-ui/core/IconButton' import CloseIcon from '@material-ui/icons/Close' import { useState } from 'react' +import { useTranslation } from 'react-i18next' import IOSShareIcon from './IOSShareIcon' import { StyledWrapper, StyledHeader, StyledContent } from './style' export function PWAInstallationGuide() { const [isOpen, setIsOpen] = useState(!JSON.parse(localStorage.getItem('pwaNotificationIsClosed'))) + const { t } = useTranslation() return ( ts-icon - Install application + + {t('PWAGuide.Header')} + -

Install the app on your device to easily access it anytime. No app store. No download.

+

{t('PWAGuide.Description')}

-

VLC button will be added to open video instantly on the phone

+

{t('PWAGuide.VLC')}

- 1. Tap on + 1. {t('PWAGuide.FirstStep')}

- 2. Select Add to Home Screen + 2. {t('PWAGuide.SecondStep.Select')} {t('PWAGuide.SecondStep.AddToHomeScreen')}

diff --git a/web/src/locales/en/translation.json b/web/src/locales/en/translation.json index d9ff750..e66b3ef 100644 --- a/web/src/locales/en/translation.json +++ b/web/src/locales/en/translation.json @@ -75,6 +75,16 @@ "Playlist": "Playlist", "Preload": "Preload", "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", "RemoveAll": "Remove All", "RemoveViews": "Remove View States", diff --git a/web/src/locales/ru/translation.json b/web/src/locales/ru/translation.json index 96e2536..1956065 100644 --- a/web/src/locales/ru/translation.json +++ b/web/src/locales/ru/translation.json @@ -75,6 +75,16 @@ "Playlist": "Плейлист", "Preload": "Предзагр.", "ProjectSource": "Сайт проекта", + "PWAGuide": { + "Header": "Установить приложение", + "Description": "Установите приложение на ваше устройство для быстрого доступа в любой момент. Без AppStore. Без загрузки.", + "VLC": "VLC кнопка будет добавлена для мгновенного воспроизведения на телефоне", + "FirstStep": "Нажмите на", + "SecondStep": { + "Select": "Выбирите", + "AddToHomeScreen":"На экран «Домой»" + } + }, "Releases": "Релизы TorrServer", "RemoveAll": "Удалить все", "RemoveViews": "Очистить просмотры", diff --git a/web/src/locales/ua/translation.json b/web/src/locales/ua/translation.json index cf37e2a..45fc092 100644 --- a/web/src/locales/ua/translation.json +++ b/web/src/locales/ua/translation.json @@ -75,6 +75,16 @@ "Playlist": "Плейлист", "Preload": "Передзав.", "ProjectSource": "Сайт проекту", + "PWAGuide": { + "Header": "Встановити додаток", + "Description": "Встановіть програму на свій пристрій, щоб легко отримати до неї доступ у будь-який час. Немає магазину додатків. Немає завантаження.", + "VLC": "Кнопка VLC буде додана, щоб миттєво відкривати відео на телефоні", + "FirstStep": "Торкніться", + "SecondStep": { + "Select": "Виберіть", + "AddToHomeScreen":"Додати на головний екран" + } + }, "Releases": "Релізи TorrServer", "RemoveAll": "Видалити все", "RemoveViews": "Видалити перегляди",