mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-18 16:01:44 +00:00
Settings Screen Localization Fixes and Improvements
This commit is contained in:
parent
53b7d77d5c
commit
b2163b701e
3 changed files with 16 additions and 8 deletions
|
|
@ -699,6 +699,10 @@
|
|||
"mdblist_tmdb_ai": "MDBList, TMDB, AI",
|
||||
"check_updates": "Check for updates",
|
||||
"clear_mdblist_cache": "Clear MDBList Cache",
|
||||
"user":"Utente",
|
||||
"clear_mdblist_cache_confirm":"Are you sure you want to clear all cached MDBList data? This cannot be undone.",
|
||||
"clear_mdblist_cache_success":"MDBList cache has been cleared.",
|
||||
"clear_mdblist_cache_error":"Could not clear MDBList cache.",
|
||||
"cache_management": "CACHE MANAGEMENT",
|
||||
"downloads_counter": "downloads and counting",
|
||||
"made_with_love": "Made with ❤️ by Tapframe and friends",
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"loading": "Caricamento...",
|
||||
"cancel": "Annulla",
|
||||
"save": "Salva",
|
||||
"clear":"Clear",
|
||||
"clear":"Cancella",
|
||||
"delete": "Elimina",
|
||||
"edit": "Modifica",
|
||||
"search": "Cerca",
|
||||
|
|
@ -684,6 +684,10 @@
|
|||
"mdblist_tmdb_ai": "MDBList, TMDB, IA",
|
||||
"check_updates": "Controlla aggiornamenti",
|
||||
"clear_mdblist_cache": "Cancella Cache MDBList",
|
||||
"user":"User",
|
||||
"clear_mdblist_cache_confirm":"Sei sicuro di voler cancellare tutta la cache di MDBList? Questa azione non può essere annullata.",
|
||||
"clear_mdblist_cache_success":"La cache di MDBList è stata cancellata.",
|
||||
"clear_mdblist_cache_error":"Non è stato possibile cancellare la cache di MDBList.",
|
||||
"cache_management": "GESTIONE CACHE",
|
||||
"downloads_counter": "download e oltre",
|
||||
"made_with_love": "Fatto con ❤️ da Tapframe e amici",
|
||||
|
|
|
|||
|
|
@ -334,18 +334,18 @@ const SettingsScreen: React.FC = () => {
|
|||
|
||||
const handleClearMDBListCache = () => {
|
||||
openAlert(
|
||||
'Clear MDBList Cache',
|
||||
'Are you sure you want to clear all cached MDBList data? This cannot be undone.',
|
||||
t('settings.clear_mdblist_cache'),
|
||||
t('settings.clear_mdblist_cache_confirm'),
|
||||
[
|
||||
{ label: 'Cancel', onPress: () => { } },
|
||||
{ label: t('common.cancel'), onPress: () => { } },
|
||||
{
|
||||
label: 'Clear',
|
||||
label: t('common.clear'),
|
||||
onPress: async () => {
|
||||
try {
|
||||
await mmkvStorage.removeItem('mdblist_cache');
|
||||
openAlert('Success', 'MDBList cache has been cleared.');
|
||||
openAlert(t('common.success'), t('settings.clear_mdblist_cache_success'));
|
||||
} catch (error) {
|
||||
openAlert('Error', 'Could not clear MDBList cache.');
|
||||
openAlert(t('common.error'), t('settings.clear_mdblist_cache_error'));
|
||||
if (__DEV__) console.error('Error clearing MDBList cache:', error);
|
||||
}
|
||||
}
|
||||
|
|
@ -399,7 +399,7 @@ const SettingsScreen: React.FC = () => {
|
|||
{showTraktItem && (
|
||||
<SettingItem
|
||||
title={t('trakt.title')}
|
||||
description={isAuthenticated ? `@${userProfile?.username || 'User'}` : t('settings.sign_in_sync')}
|
||||
description={isAuthenticated ? `@${userProfile?.username || t('settings.user')}` : t('settings.sign_in_sync')}
|
||||
customIcon={<TraktIcon size={isTablet ? 24 : 20} />}
|
||||
renderControl={() => <ChevronRight />}
|
||||
onPress={() => navigation.navigate('TraktSettings')}
|
||||
|
|
|
|||
Loading…
Reference in a new issue