Commit 27f5330a authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo

translate New register

parent 4ec766fe
......@@ -274,7 +274,7 @@ class NewRegister extends React.Component {
<View style={styles.itemsRow}>
<View style={styles.items1}>
<Text style={{ textAlign: 'center', color: '#CFB368', fontWeight: 'bold' }}>Email</Text>
<Text style={{ textAlign: 'center', color: '#CFB368', fontWeight: 'bold' }}>{i18n.t('email')}</Text>
</View>
<View style={styles.items2}>
<TextInput
......@@ -293,7 +293,7 @@ class NewRegister extends React.Component {
<View style={styles.itemsRow}>
<View style={styles.items1}>
{/* <Text>{i18n.t('password')}</Text> */}
<Text style={{ textAlign: 'center', color: '#CFB368', fontWeight: 'bold' }}>Password</Text>
<Text style={{ textAlign: 'center', color: '#CFB368', fontWeight: 'bold' }}>{i18n.t('password')}</Text>
</View>
<View style={styles.items2}>
<TextInput
......@@ -310,7 +310,7 @@ class NewRegister extends React.Component {
<View style={styles.itemsRow}>
<View style={styles.items1}>
{/* <Text>{i18n.t('password2')}</Text> */}
<Text style={{ textAlign: 'center', color: '#CFB368', fontWeight: 'bold' }}>Confirm Password</Text>
<Text style={{ textAlign: 'center', color: '#CFB368', fontWeight: 'bold' }}> {i18n.t('Confirmpassword')}</Text>
</View>
<View style={styles.items2}>
<TextInput
......@@ -327,7 +327,7 @@ class NewRegister extends React.Component {
<View style={styles.itemsRow}>
<View style={styles.items1}>
{/* <Text>{i18n.t('name')}</Text> */}
<Text style={{ textAlign: 'center', color: '#CFB368', fontWeight: 'bold' }}>Name</Text>
<Text style={{ textAlign: 'center', color: '#CFB368', fontWeight: 'bold' }}>{i18n.t('Name')}</Text>
</View>
<View style={styles.items2}>
<TextInput
......@@ -342,7 +342,7 @@ class NewRegister extends React.Component {
</View>
<View style={styles.itemsRow}>
<View style={styles.items1}>
<Text style={{ textAlign: 'center', color: '#CFB368', fontWeight: 'bold' }}>Date Of Birth</Text>
<Text style={{ textAlign: 'center', color: '#CFB368', fontWeight: 'bold' }}>{i18n.t('dob')}</Text>
</View>
{Platform.OS === 'ios' ? (
<View style={styles.itemPicker}>
......@@ -418,7 +418,7 @@ class NewRegister extends React.Component {
<View style={styles.itemsRow}>
<View style={styles.items1}>
<Text style={{ textAlign: 'center', color: '#CFB368', fontWeight: 'bold' }}>Gender</Text>
<Text style={{ textAlign: 'center', color: '#CFB368', fontWeight: 'bold' }}>{i18n.t('gender')}</Text>
</View>
{Platform.OS === 'ios' ? (
<View style={styles.pickerGender}>
......@@ -445,12 +445,12 @@ class NewRegister extends React.Component {
</View>
<TouchableOpacity onPress={() => this.validate()}>
<View style={styles.button}>
<Text style={{ color: 'white', fontWeight: 'bold', fontSize: 22 }}>REGISTER</Text>
<Text style={{ color: 'white', fontWeight: 'bold', fontSize: 22 }}>{i18n.t('Register')}</Text>
</View>
</TouchableOpacity>
<TouchableOpacity onPress={() => this.props.navigation.navigate('Login')}>
<View style={styles.signin}>
<Text style={{ color: '#CFB368' }}>SIGN IN</Text>
<Text style={{ color: '#CFB368' }}>{i18n.t('login')}</Text>
</View>
</TouchableOpacity>
<View style={{flex : 1}}>
......@@ -602,4 +602,4 @@ const mapDispatchToProps = (dispacth) => {
}
export default connect(null, mapDispatchToProps)(NewRegister);
\ No newline at end of file
export default connect(mapStateToProps, mapDispatchToProps)(NewRegister);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment