mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-21 16:51:57 +00:00
First Time Welcome Localization Patch
This commit is contained in:
parent
d1732bbfcd
commit
54254b3ce1
3 changed files with 103 additions and 85 deletions
|
|
@ -12,17 +12,21 @@ import Animated, { FadeInDown } from 'react-native-reanimated';
|
|||
import { useTheme } from '../contexts/ThemeContext';
|
||||
import { NavigationProp, useNavigation } from '@react-navigation/native';
|
||||
import { RootStackParamList } from '../navigation/AppNavigator';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
const { width } = Dimensions.get('window');
|
||||
|
||||
const FirstTimeWelcome = () => {
|
||||
const { currentTheme } = useTheme();
|
||||
const navigation = useNavigation<NavigationProp<RootStackParamList>>();
|
||||
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<Animated.View
|
||||
entering={FadeInDown.delay(200).duration(600)}
|
||||
style={[styles.container, { backgroundColor: currentTheme.colors.elevation1 }]}
|
||||
style={[
|
||||
styles.container,
|
||||
{ backgroundColor: currentTheme.colors.elevation1 },
|
||||
]}
|
||||
>
|
||||
<LinearGradient
|
||||
colors={[currentTheme.colors.primary, currentTheme.colors.secondary]}
|
||||
|
|
@ -34,11 +38,13 @@ const FirstTimeWelcome = () => {
|
|||
</LinearGradient>
|
||||
|
||||
<Text style={[styles.title, { color: currentTheme.colors.highEmphasis }]}>
|
||||
Welcome to Nuvio!
|
||||
{t('first_time_welcome.welcome_msg')}
|
||||
</Text>
|
||||
|
||||
<Text style={[styles.description, { color: currentTheme.colors.mediumEmphasis }]}>
|
||||
To get started, install some addons to access content from various sources.
|
||||
<Text
|
||||
style={[styles.description, { color: currentTheme.colors.mediumEmphasis }]}
|
||||
>
|
||||
{t('first_time_welcome.get_started')}
|
||||
</Text>
|
||||
|
||||
<TouchableOpacity
|
||||
|
|
@ -46,7 +52,9 @@ const FirstTimeWelcome = () => {
|
|||
onPress={() => navigation.navigate('Addons')}
|
||||
>
|
||||
<MaterialIcons name="extension" size={20} color="white" />
|
||||
<Text style={styles.buttonText}>Install Addons</Text>
|
||||
<Text style={styles.buttonText}>
|
||||
{t('first_time_welcome.install_addons')}
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
</Animated.View>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1509,6 +1509,11 @@
|
|||
"tried_url": "Tried: {{url}}",
|
||||
"provider_logs": "Provider Logs",
|
||||
"no_logs_captured": "No logs captured."
|
||||
},
|
||||
"first_time_welcome": {
|
||||
"welcome_msg": "Welcome to Nuvio!",
|
||||
"get_started": "To get started, install some addons to access content from various sources.",
|
||||
"install_addons": "Install Addons"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1509,6 +1509,11 @@
|
|||
"tried_url": "Provato: {{url}}",
|
||||
"provider_logs": "Log Provider",
|
||||
"no_logs_captured": "Nessun log catturato."
|
||||
},
|
||||
"first_time_welcome": {
|
||||
"welcome_msg": "Benvenuto su Nuvio!",
|
||||
"get_started": "Per iniziare, installa addons per accedere ai contenuti da varie fonti",
|
||||
"install_addons": "Installa Addon"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue