mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-11 17:45:38 +00:00
added italian language to UI.
This commit is contained in:
parent
ac097f6513
commit
9b2b619121
8 changed files with 143 additions and 112 deletions
|
|
@ -601,6 +601,7 @@
|
|||
"arabic": "العربية",
|
||||
"spanish": "الإسبانية",
|
||||
"french": "الفرنسية",
|
||||
"italian": "الإيطالية",
|
||||
"account": "الحساب",
|
||||
"content_discovery": "المحتوى والاكتشاف",
|
||||
"appearance": "المظهر",
|
||||
|
|
|
|||
|
|
@ -601,6 +601,7 @@
|
|||
"arabic": "Arabic",
|
||||
"spanish": "Spanish",
|
||||
"french": "French",
|
||||
"italian": "Italian",
|
||||
"account": "Account",
|
||||
"content_discovery": "Content & Discovery",
|
||||
"appearance": "Appearance",
|
||||
|
|
|
|||
|
|
@ -601,6 +601,7 @@
|
|||
"arabic": "Árabe",
|
||||
"spanish": "Español",
|
||||
"french": "Francés",
|
||||
"italian": "Italiano",
|
||||
"account": "Cuenta",
|
||||
"content_discovery": "Contenido y descubrimiento",
|
||||
"appearance": "Apariencia",
|
||||
|
|
|
|||
|
|
@ -601,6 +601,7 @@
|
|||
"arabic": "Arabe",
|
||||
"spanish": "Espagnol",
|
||||
"french": "Français",
|
||||
"italian": "Italien",
|
||||
"account": "Compte",
|
||||
"content_discovery": "Contenu et découverte",
|
||||
"appearance": "Apparence",
|
||||
|
|
|
|||
|
|
@ -601,6 +601,7 @@
|
|||
"arabic": "Arabo",
|
||||
"spanish": "Spagnolo",
|
||||
"french": "Francese",
|
||||
"italian": "Italiano",
|
||||
"account": "Account",
|
||||
"content_discovery": "Contenuti e Scoperta",
|
||||
"appearance": "Aspetto",
|
||||
|
|
@ -1193,4 +1194,4 @@
|
|||
"cancel": "Annulla",
|
||||
"add": "Aggiungi"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -579,6 +579,7 @@
|
|||
"arabic": "Árabe",
|
||||
"spanish": "Espanhol",
|
||||
"french": "Francês",
|
||||
"italian": "Italiano",
|
||||
"account": "Conta",
|
||||
"content_discovery": "Conteúdo e Descoberta",
|
||||
"appearance": "Aparência",
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import pt from './locales/pt.json';
|
|||
import ar from './locales/ar.json';
|
||||
import es from './locales/es.json';
|
||||
import fr from './locales/fr.json';
|
||||
import it from './locales/it.json';
|
||||
|
||||
export const resources = {
|
||||
en: { translation: en },
|
||||
|
|
@ -10,4 +11,5 @@ export const resources = {
|
|||
ar: { translation: ar },
|
||||
es: { translation: es },
|
||||
fr: { translation: fr },
|
||||
it: { translation: it },
|
||||
};
|
||||
|
|
|
|||
|
|
@ -601,11 +601,12 @@ const SettingsScreen: React.FC = () => {
|
|||
<SettingItem
|
||||
title={t('settings.language')}
|
||||
description={
|
||||
i18n.language === 'pt' ? t('settings.portuguese') :
|
||||
i18n.language === 'ar' ? t('settings.arabic') :
|
||||
i18n.language === 'es' ? t('settings.spanish') :
|
||||
i18n.language === 'fr' ? t('settings.french') :
|
||||
t('settings.english')
|
||||
i18n.language === 'pt' ? t('settings.portuguese') :
|
||||
i18n.language === 'ar' ? t('settings.arabic') :
|
||||
i18n.language === 'es' ? t('settings.spanish') :
|
||||
i18n.language === 'fr' ? t('settings.french') :
|
||||
i18n.language === 'it' ? t('settings.italian') :
|
||||
t('settings.english')
|
||||
}
|
||||
icon="globe"
|
||||
renderControl={() => <ChevronRight />}
|
||||
|
|
@ -855,116 +856,138 @@ const SettingsScreen: React.FC = () => {
|
|||
style={{ backgroundColor: currentTheme.colors.darkGray || '#0A0C0C' }}
|
||||
contentContainerStyle={styles.bottomSheetContent}
|
||||
>
|
||||
<TouchableOpacity
|
||||
style={[
|
||||
styles.languageOption,
|
||||
i18n.language === 'en' && { backgroundColor: currentTheme.colors.primary + '20' }
|
||||
]}
|
||||
onPress={() => {
|
||||
i18n.changeLanguage('en');
|
||||
languageSheetRef.current?.close();
|
||||
}}
|
||||
>
|
||||
<Text style={[
|
||||
styles.languageText,
|
||||
{ color: currentTheme.colors.highEmphasis },
|
||||
i18n.language === 'en' && { color: currentTheme.colors.primary, fontWeight: 'bold' }
|
||||
]}>
|
||||
{t('settings.english')}
|
||||
</Text>
|
||||
{i18n.language === 'en' && (
|
||||
<Feather name="check" size={20} color={currentTheme.colors.primary} />
|
||||
)}
|
||||
</TouchableOpacity>
|
||||
<TouchableOpacity
|
||||
style={[
|
||||
styles.languageOption,
|
||||
i18n.language === 'en' && { backgroundColor: currentTheme.colors.primary + '20' }
|
||||
]}
|
||||
onPress={() => {
|
||||
i18n.changeLanguage('en');
|
||||
languageSheetRef.current?.close();
|
||||
}}
|
||||
>
|
||||
<Text style={[
|
||||
styles.languageText,
|
||||
{ color: currentTheme.colors.highEmphasis },
|
||||
i18n.language === 'en' && { color: currentTheme.colors.primary, fontWeight: 'bold' }
|
||||
]}>
|
||||
{t('settings.english')}
|
||||
</Text>
|
||||
{i18n.language === 'en' && (
|
||||
<Feather name="check" size={20} color={currentTheme.colors.primary} />
|
||||
)}
|
||||
</TouchableOpacity>
|
||||
|
||||
<TouchableOpacity
|
||||
style={[
|
||||
styles.languageOption,
|
||||
i18n.language === 'pt' && { backgroundColor: currentTheme.colors.primary + '20' }
|
||||
]}
|
||||
onPress={() => {
|
||||
i18n.changeLanguage('pt');
|
||||
languageSheetRef.current?.close();
|
||||
}}
|
||||
>
|
||||
<Text style={[
|
||||
styles.languageText,
|
||||
{ color: currentTheme.colors.highEmphasis },
|
||||
i18n.language === 'pt' && { color: currentTheme.colors.primary, fontWeight: 'bold' }
|
||||
]}>
|
||||
{t('settings.portuguese')}
|
||||
</Text>
|
||||
{i18n.language === 'pt' && (
|
||||
<Feather name="check" size={20} color={currentTheme.colors.primary} />
|
||||
)}
|
||||
</TouchableOpacity>
|
||||
<TouchableOpacity
|
||||
style={[
|
||||
styles.languageOption,
|
||||
i18n.language === 'pt' && { backgroundColor: currentTheme.colors.primary + '20' }
|
||||
]}
|
||||
onPress={() => {
|
||||
i18n.changeLanguage('pt');
|
||||
languageSheetRef.current?.close();
|
||||
}}
|
||||
>
|
||||
<Text style={[
|
||||
styles.languageText,
|
||||
{ color: currentTheme.colors.highEmphasis },
|
||||
i18n.language === 'pt' && { color: currentTheme.colors.primary, fontWeight: 'bold' }
|
||||
]}>
|
||||
{t('settings.portuguese')}
|
||||
</Text>
|
||||
{i18n.language === 'pt' && (
|
||||
<Feather name="check" size={20} color={currentTheme.colors.primary} />
|
||||
)}
|
||||
</TouchableOpacity>
|
||||
|
||||
<TouchableOpacity
|
||||
style={[
|
||||
styles.languageOption,
|
||||
i18n.language === 'ar' && { backgroundColor: currentTheme.colors.primary + '20' }
|
||||
]}
|
||||
onPress={() => {
|
||||
i18n.changeLanguage('ar');
|
||||
languageSheetRef.current?.close();
|
||||
}}
|
||||
>
|
||||
<Text style={[
|
||||
styles.languageText,
|
||||
{ color: currentTheme.colors.highEmphasis },
|
||||
i18n.language === 'ar' && { color: currentTheme.colors.primary, fontWeight: 'bold' }
|
||||
]}>
|
||||
{t('settings.arabic')}
|
||||
</Text>
|
||||
{i18n.language === 'ar' && (
|
||||
<Feather name="check" size={20} color={currentTheme.colors.primary} />
|
||||
)}
|
||||
</TouchableOpacity>
|
||||
<TouchableOpacity
|
||||
style={[
|
||||
styles.languageOption,
|
||||
i18n.language === 'ar' && { backgroundColor: currentTheme.colors.primary + '20' }
|
||||
]}
|
||||
onPress={() => {
|
||||
i18n.changeLanguage('ar');
|
||||
languageSheetRef.current?.close();
|
||||
}}
|
||||
>
|
||||
<Text style={[
|
||||
styles.languageText,
|
||||
{ color: currentTheme.colors.highEmphasis },
|
||||
i18n.language === 'ar' && { color: currentTheme.colors.primary, fontWeight: 'bold' }
|
||||
]}>
|
||||
{t('settings.arabic')}
|
||||
</Text>
|
||||
{i18n.language === 'ar' && (
|
||||
<Feather name="check" size={20} color={currentTheme.colors.primary} />
|
||||
)}
|
||||
</TouchableOpacity>
|
||||
|
||||
<TouchableOpacity
|
||||
style={[
|
||||
styles.languageOption,
|
||||
i18n.language === 'es' && { backgroundColor: currentTheme.colors.primary + '20' }
|
||||
]}
|
||||
onPress={() => {
|
||||
i18n.changeLanguage('es');
|
||||
languageSheetRef.current?.close();
|
||||
}}
|
||||
>
|
||||
<Text style={[
|
||||
styles.languageText,
|
||||
{ color: currentTheme.colors.highEmphasis },
|
||||
i18n.language === 'es' && { color: currentTheme.colors.primary, fontWeight: 'bold' }
|
||||
]}>
|
||||
{t('settings.spanish')}
|
||||
</Text>
|
||||
{i18n.language === 'es' && (
|
||||
<Feather name="check" size={20} color={currentTheme.colors.primary} />
|
||||
)}
|
||||
</TouchableOpacity>
|
||||
<TouchableOpacity
|
||||
style={[
|
||||
styles.languageOption,
|
||||
i18n.language === 'es' && { backgroundColor: currentTheme.colors.primary + '20' }
|
||||
]}
|
||||
onPress={() => {
|
||||
i18n.changeLanguage('es');
|
||||
languageSheetRef.current?.close();
|
||||
}}
|
||||
>
|
||||
<Text style={[
|
||||
styles.languageText,
|
||||
{ color: currentTheme.colors.highEmphasis },
|
||||
i18n.language === 'es' && { color: currentTheme.colors.primary, fontWeight: 'bold' }
|
||||
]}>
|
||||
{t('settings.spanish')}
|
||||
</Text>
|
||||
{i18n.language === 'es' && (
|
||||
<Feather name="check" size={20} color={currentTheme.colors.primary} />
|
||||
)}
|
||||
</TouchableOpacity>
|
||||
|
||||
<TouchableOpacity
|
||||
style={[
|
||||
styles.languageOption,
|
||||
i18n.language === 'fr' && { backgroundColor: currentTheme.colors.primary + '20' }
|
||||
]}
|
||||
onPress={() => {
|
||||
i18n.changeLanguage('fr');
|
||||
languageSheetRef.current?.close();
|
||||
}}
|
||||
>
|
||||
<Text style={[
|
||||
styles.languageText,
|
||||
{ color: currentTheme.colors.highEmphasis },
|
||||
i18n.language === 'fr' && { color: currentTheme.colors.primary, fontWeight: 'bold' }
|
||||
]}>
|
||||
{t('settings.french')}
|
||||
</Text>
|
||||
{i18n.language === 'fr' && (
|
||||
<Feather name="check" size={20} color={currentTheme.colors.primary} />
|
||||
)}
|
||||
</TouchableOpacity>
|
||||
</ScrollView>
|
||||
<TouchableOpacity
|
||||
style={[
|
||||
styles.languageOption,
|
||||
i18n.language === 'fr' && { backgroundColor: currentTheme.colors.primary + '20' }
|
||||
]}
|
||||
onPress={() => {
|
||||
i18n.changeLanguage('fr');
|
||||
languageSheetRef.current?.close();
|
||||
}}
|
||||
>
|
||||
<Text style={[
|
||||
styles.languageText,
|
||||
{ color: currentTheme.colors.highEmphasis },
|
||||
i18n.language === 'fr' && { color: currentTheme.colors.primary, fontWeight: 'bold' }
|
||||
]}>
|
||||
{t('settings.french')}
|
||||
</Text>
|
||||
{i18n.language === 'fr' && (
|
||||
<Feather name="check" size={20} color={currentTheme.colors.primary} />
|
||||
)}
|
||||
</TouchableOpacity>
|
||||
|
||||
<TouchableOpacity
|
||||
style={[
|
||||
styles.languageOption,
|
||||
i18n.language === 'it' && { backgroundColor: currentTheme.colors.primary + '20' }
|
||||
]}
|
||||
onPress={() => {
|
||||
i18n.changeLanguage('it');
|
||||
languageSheetRef.current?.close();
|
||||
}}
|
||||
>
|
||||
<Text style={[
|
||||
styles.languageText,
|
||||
{ color: currentTheme.colors.highEmphasis },
|
||||
i18n.language === 'it' && { color: currentTheme.colors.primary, fontWeight: 'bold' }
|
||||
]}>
|
||||
{t('settings.italian')}
|
||||
</Text>
|
||||
{i18n.language === 'it' && (
|
||||
<Feather name="check" size={20} color={currentTheme.colors.primary} />
|
||||
)}
|
||||
</TouchableOpacity>
|
||||
</ScrollView>
|
||||
</BottomSheetView>
|
||||
</BottomSheetModal>
|
||||
</View>
|
||||
|
|
|
|||
Loading…
Reference in a new issue