diff --git a/package.json b/package.json index a9a78e7bc..6a9a6b16e 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "react-i18next": "^15.1.3", "react-is": "18.3.1", "spatial-navigation-polyfill": "github:Stremio/spatial-navigation#64871b1422466f5f45d24ebc8bbd315b2ebab6a6", - "stremio-translations": "github:Stremio/stremio-translations#1bfcb6d2a4f37bb647959ba0bbbd1ade1415c2fe", + "stremio-translations": "github:Stremio/stremio-translations#72a0decf9c636efc3171ee7238a0037ccefc36c1", "url": "0.11.4", "use-long-press": "^3.2.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a55a4f3bd..0db3ec6f8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -90,8 +90,8 @@ importers: specifier: github:Stremio/spatial-navigation#64871b1422466f5f45d24ebc8bbd315b2ebab6a6 version: https://codeload.github.com/Stremio/spatial-navigation/tar.gz/64871b1422466f5f45d24ebc8bbd315b2ebab6a6 stremio-translations: - specifier: github:Stremio/stremio-translations#1bfcb6d2a4f37bb647959ba0bbbd1ade1415c2fe - version: https://codeload.github.com/Stremio/stremio-translations/tar.gz/1bfcb6d2a4f37bb647959ba0bbbd1ade1415c2fe + specifier: github:Stremio/stremio-translations#72a0decf9c636efc3171ee7238a0037ccefc36c1 + version: https://codeload.github.com/Stremio/stremio-translations/tar.gz/72a0decf9c636efc3171ee7238a0037ccefc36c1 url: specifier: 0.11.4 version: 0.11.4 @@ -4133,9 +4133,9 @@ packages: resolution: {integrity: sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==} engines: {node: '>= 0.4'} - stremio-translations@https://codeload.github.com/Stremio/stremio-translations/tar.gz/1bfcb6d2a4f37bb647959ba0bbbd1ade1415c2fe: - resolution: {tarball: https://codeload.github.com/Stremio/stremio-translations/tar.gz/1bfcb6d2a4f37bb647959ba0bbbd1ade1415c2fe} - version: 1.45.0 + stremio-translations@https://codeload.github.com/Stremio/stremio-translations/tar.gz/72a0decf9c636efc3171ee7238a0037ccefc36c1: + resolution: {tarball: https://codeload.github.com/Stremio/stremio-translations/tar.gz/72a0decf9c636efc3171ee7238a0037ccefc36c1} + version: 1.47.2 string-length@4.0.2: resolution: {integrity: sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==} @@ -9378,7 +9378,7 @@ snapshots: es-errors: 1.3.0 internal-slot: 1.1.0 - stremio-translations@https://codeload.github.com/Stremio/stremio-translations/tar.gz/1bfcb6d2a4f37bb647959ba0bbbd1ade1415c2fe: {} + stremio-translations@https://codeload.github.com/Stremio/stremio-translations/tar.gz/72a0decf9c636efc3171ee7238a0037ccefc36c1: {} string-length@4.0.2: dependencies: diff --git a/src/routes/Addons/useSelectableInputs.js b/src/routes/Addons/useSelectableInputs.js index 8659b99e6..5cd817734 100644 --- a/src/routes/Addons/useSelectableInputs.js +++ b/src/routes/Addons/useSelectableInputs.js @@ -18,7 +18,7 @@ const mapSelectableInputs = (installedAddons, remoteAddons, t) => { () => { const selectableCatalog = remoteAddons.selectable.catalogs .find(({ id }) => id === remoteAddons.selected.request.path.id); - return selectableCatalog ? t.stringWithPrefix(selectableCatalog.name, 'ADDON_') : remoteAddons.selected.request.path.id; + return selectableCatalog ? t.stringWithPrefix(selectableCatalog.name.toUpperCase(), 'ADDON_') : remoteAddons.selected.request.path.id; } : null, onSelect: (value) => { diff --git a/src/routes/Settings/Player/usePlayerOptions.ts b/src/routes/Settings/Player/usePlayerOptions.ts index 27081817b..69d651e64 100644 --- a/src/routes/Settings/Player/usePlayerOptions.ts +++ b/src/routes/Settings/Player/usePlayerOptions.ts @@ -1,7 +1,7 @@ import { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; +import { CONSTANTS, languageNames, useLanguageSorting, usePlatform } from 'stremio/common'; import { useServices } from 'stremio/services'; -import { CONSTANTS, languageNames, usePlatform, useLanguageSorting } from 'stremio/common'; const LANGUAGES_NAMES: Record = languageNames; @@ -232,12 +232,12 @@ const usePlayerOptions = (profile: Profile) => { const nextVideoPopupDurationSelect = useMemo(() => ({ options: CONSTANTS.NEXT_VIDEO_POPUP_DURATIONS.map((duration) => ({ value: `${duration}`, - label: duration === 0 ? 'Disabled' : `${duration / 1000} ${t('SECONDS')}` + label: duration === 0 ? t('SETTINGS_DISABLED') : `${duration / 1000} ${t('SECONDS')}` })), value: `${profile.settings.nextVideoNotificationDuration}`, title: () => { return profile.settings.nextVideoNotificationDuration === 0 ? - 'Disabled' + t('SETTINGS_DISABLED') : `${profile.settings.nextVideoNotificationDuration / 1000} ${t('SECONDS')}`; }, diff --git a/src/routes/Settings/Streaming/URLsManager/AddItem/AddItem.tsx b/src/routes/Settings/Streaming/URLsManager/AddItem/AddItem.tsx index d0a2e0c41..07e829696 100644 --- a/src/routes/Settings/Streaming/URLsManager/AddItem/AddItem.tsx +++ b/src/routes/Settings/Streaming/URLsManager/AddItem/AddItem.tsx @@ -1,6 +1,7 @@ // Copyright (C) 2017-2024 Smart code 203358507 import React, { ChangeEvent, useCallback, useState } from 'react'; +import { useTranslation } from 'react-i18next'; import Icon from '@stremio/stremio-icons/react'; import { Button, TextInput } from 'stremio/components'; import styles from './AddItem.less'; @@ -11,6 +12,7 @@ type Props = { }; const AddItem = ({ onCancel, handleAddUrl }: Props) => { + const { t } = useTranslation(); const [inputValue, setInputValue] = useState(''); const handleValueChange = useCallback(({ target }: ChangeEvent) => { @@ -28,7 +30,7 @@ const AddItem = ({ onCancel, handleAddUrl }: Props) => { value={inputValue} onChange={handleValueChange} onSubmit={onSubmit} - placeholder={'Enter URL'} + placeholder={t('SETTINGS_SERVER_ADD_URL_PLACEHOLDER')} />