mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
translating welcome screen
This commit is contained in:
parent
132b880127
commit
5075ad7363
@ -187,6 +187,13 @@ const Strings = [
|
|||||||
editMessage: 'Edit Message Text',
|
editMessage: 'Edit Message Text',
|
||||||
emptyTopic: 'Empty Topic',
|
emptyTopic: 'Empty Topic',
|
||||||
notes: 'Notes',
|
notes: 'Notes',
|
||||||
|
|
||||||
|
welcome: 'Welcome To Databag',
|
||||||
|
communication: 'Communication for the Decentralized Web',
|
||||||
|
setup: 'Setup Your Profile',
|
||||||
|
connect: 'Connect With People',
|
||||||
|
start: 'Start a Conversation',
|
||||||
|
started: 'Get Started',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
languageCode: 'fr',
|
languageCode: 'fr',
|
||||||
@ -370,6 +377,13 @@ const Strings = [
|
|||||||
editMessage: 'Modifier le Texte du Message',
|
editMessage: 'Modifier le Texte du Message',
|
||||||
emptyTopic: 'Pas de Messages',
|
emptyTopic: 'Pas de Messages',
|
||||||
notes: 'Notes',
|
notes: 'Notes',
|
||||||
|
|
||||||
|
welcome: 'Bienvenue Sur Databag',
|
||||||
|
communication: 'Communication Pour l\'Internet Décentralisé',
|
||||||
|
setup: 'Configurez Votre Profil',
|
||||||
|
connect: 'Se Connecter Avec d'Autres',
|
||||||
|
start: 'Créer une Conversation',
|
||||||
|
started: 'Commencer',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
languageCode: 'es',
|
languageCode: 'es',
|
||||||
@ -553,6 +567,13 @@ const Strings = [
|
|||||||
editMessage: 'Editar Texto del Mensaje',
|
editMessage: 'Editar Texto del Mensaje',
|
||||||
emptyTopic: 'Ningún Mensaje',
|
emptyTopic: 'Ningún Mensaje',
|
||||||
notes: 'Notas',
|
notes: 'Notas',
|
||||||
|
|
||||||
|
welcome: 'Bienvenido a Databag',
|
||||||
|
communication: 'Comunicación para Internet Descentralizada',
|
||||||
|
setup: 'Configura Tu Perfil',
|
||||||
|
connect: 'Conéctate Con Gente',
|
||||||
|
start: 'Iniciar una Conversación',
|
||||||
|
started: 'Empezar',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
languageCode: 'de',
|
languageCode: 'de',
|
||||||
@ -736,6 +757,13 @@ const Strings = [
|
|||||||
editMessage: 'Nachrichtentext Bearbeiten',
|
editMessage: 'Nachrichtentext Bearbeiten',
|
||||||
emptyTopic: 'Keine Nachrichten',
|
emptyTopic: 'Keine Nachrichten',
|
||||||
notes: 'Anmerkungen',
|
notes: 'Anmerkungen',
|
||||||
|
|
||||||
|
welcome: 'Willkommen bei Databag',
|
||||||
|
communication: 'Kommunikation für das dezentrale Internet',
|
||||||
|
setup: 'Richten Sie Ihr Profil ein',
|
||||||
|
connect: 'Verbinde dich mit Menschen',
|
||||||
|
start: 'Eine Konversation Beginnen',
|
||||||
|
started: 'Loslegen',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
languageCode: 'pt',
|
languageCode: 'pt',
|
||||||
@ -904,6 +932,13 @@ const Strings = [
|
|||||||
editMessage: 'Editar Texto da Mensagem',
|
editMessage: 'Editar Texto da Mensagem',
|
||||||
emptyTopic: 'Sem Mensagens',
|
emptyTopic: 'Sem Mensagens',
|
||||||
notes: 'Notas',
|
notes: 'Notas',
|
||||||
|
|
||||||
|
welcome: 'Bem-vindo ao DataBag',
|
||||||
|
communication: 'Comunicação para a Internet Descentralizada',
|
||||||
|
setup: 'Configure Seu Perfil',
|
||||||
|
connect: 'Conecte-se Com As Pessoas',
|
||||||
|
start: 'Crie Uma Conversa',
|
||||||
|
started: 'Iniciar',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -408,8 +408,8 @@ export function Session({ sharing, clearSharing }) {
|
|||||||
{ state.firstRun == true && (
|
{ state.firstRun == true && (
|
||||||
<SafeAreaView edges={['top', 'bottom']} style={styles.firstRun}>
|
<SafeAreaView edges={['top', 'bottom']} style={styles.firstRun}>
|
||||||
<View style={styles.title}>
|
<View style={styles.title}>
|
||||||
<Text style={styles.titleText}>Welcome To Databag</Text>
|
<Text style={styles.titleText}>{ state.strings.welcome }</Text>
|
||||||
<Text style={styles.tagText}>Communication for the Decentralized Web</Text>
|
<Text style={styles.tagText}>{ state.strings.communication }</Text>
|
||||||
</View>
|
</View>
|
||||||
{ Colors.theme === 'dark' && (
|
{ Colors.theme === 'dark' && (
|
||||||
<Image style={styles.splash} source={darkSplash} resizeMode="contain" />
|
<Image style={styles.splash} source={darkSplash} resizeMode="contain" />
|
||||||
@ -420,18 +420,18 @@ export function Session({ sharing, clearSharing }) {
|
|||||||
<View style={styles.steps} >
|
<View style={styles.steps} >
|
||||||
<View style={styles.step}>
|
<View style={styles.step}>
|
||||||
<Ionicons name={'user'} size={18} color={Colors.white} />
|
<Ionicons name={'user'} size={18} color={Colors.white} />
|
||||||
<Text style={styles.stepText}>Setup Your Profile</Text>
|
<Text style={styles.stepText}>{ state.strings.setup }</Text>
|
||||||
</View>
|
</View>
|
||||||
<View style={styles.step}>
|
<View style={styles.step}>
|
||||||
<Ionicons name={'contacts'} size={18} color={Colors.white} />
|
<Ionicons name={'contacts'} size={18} color={Colors.white} />
|
||||||
<Text style={styles.stepText}>Connect With People</Text>
|
<Text style={styles.stepText}>{ state.strings.connect }</Text>
|
||||||
</View>
|
</View>
|
||||||
<View style={styles.step}>
|
<View style={styles.step}>
|
||||||
<Ionicons name={'message1'} size={18} color={Colors.white} />
|
<Ionicons name={'message1'} size={18} color={Colors.white} />
|
||||||
<Text style={styles.stepText}>Start a Conversation</Text>
|
<Text style={styles.stepText}>{ state.strings.start }</Text>
|
||||||
</View>
|
</View>
|
||||||
<TouchableOpacity style={styles.start} onPress={actions.clearFirstRun}>
|
<TouchableOpacity style={styles.start} onPress={actions.clearFirstRun}>
|
||||||
<Text style={styles.startText}>Get Started</Text>
|
<Text style={styles.startText}>{ state.strings.started }</Text>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
</View>
|
</View>
|
||||||
</SafeAreaView>
|
</SafeAreaView>
|
||||||
|
@ -1,19 +1,21 @@
|
|||||||
import { useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
import { Image, View, TouchableOpacity, Text } from 'react-native';
|
import { Image, View, TouchableOpacity, Text } from 'react-native';
|
||||||
import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
|
import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
|
||||||
import { styles } from './Welcome.styled';
|
import { styles } from './Welcome.styled';
|
||||||
import { Colors } from 'constants/Colors';
|
import { Colors } from 'constants/Colors';
|
||||||
import Ionicons from 'react-native-vector-icons/AntDesign';
|
import Ionicons from 'react-native-vector-icons/AntDesign';
|
||||||
|
import { getLanguageStrings } from 'constants/Strings';
|
||||||
|
|
||||||
import light from 'images/session.png';
|
import light from 'images/session.png';
|
||||||
import dark from 'images/darksess.png';
|
import dark from 'images/darksess.png';
|
||||||
|
|
||||||
export function Welcome() {
|
export function Welcome() {
|
||||||
|
const [strings, setStrings] = useState(getLanguageStrings());
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SafeAreaView style={styles.container}>
|
<SafeAreaView style={styles.container}>
|
||||||
<Text style={styles.header}>Databag</Text>
|
<Text style={styles.header}>Databag</Text>
|
||||||
<Text style={styles.label}>Communication for the Decentralized Web</Text>
|
<Text style={styles.label}>{ strings.communication }</Text>
|
||||||
{ Colors.theme === 'dark' && (
|
{ Colors.theme === 'dark' && (
|
||||||
<Image style={styles.image} source={dark} />
|
<Image style={styles.image} source={dark} />
|
||||||
)}
|
)}
|
||||||
@ -21,11 +23,11 @@ export function Welcome() {
|
|||||||
<Image style={styles.image} source={light} />
|
<Image style={styles.image} source={light} />
|
||||||
)}
|
)}
|
||||||
<View style={styles.steps}>
|
<View style={styles.steps}>
|
||||||
<Text style={styles.stepstext}>Setup your profile</Text>
|
<Text style={styles.stepstext}>{ strings.setup }</Text>
|
||||||
<Ionicons name={'right'} size={18} color={Colors.text} />
|
<Ionicons name={'right'} size={18} color={Colors.text} />
|
||||||
<Text style={styles.stepstext}>Connect with people</Text>
|
<Text style={styles.stepstext}>{ strings.connect }</Text>
|
||||||
<Ionicons name={'right'} size={18} color={Colors.text} />
|
<Ionicons name={'right'} size={18} color={Colors.text} />
|
||||||
<Text style={styles.stepstext}>Start a conversation</Text>
|
<Text style={styles.stepstext}>{ strings.start }</Text>
|
||||||
</View>
|
</View>
|
||||||
</SafeAreaView>
|
</SafeAreaView>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user