Commit 846a1ba8 authored by Trisno's avatar Trisno

translate activate card

parent a2fc6fff
...@@ -87,6 +87,10 @@ ...@@ -87,6 +87,10 @@
"Renewal": "RENEWAL", "Renewal": "RENEWAL",
"Usebalancepoint": "USE BALANCE / POINTS", "Usebalancepoint": "USE BALANCE / POINTS",
"Acitvatecard": "ACTIVATE CARD", "Acitvatecard": "ACTIVATE CARD",
"mobilePhone":"Mobile Phone",
"resend":"Resend",
"cardNumber":"Card Number",
"activate":"ACTIVATE",
"upgradePremium": "UPGRADE PREMIUM", "upgradePremium": "UPGRADE PREMIUM",
"alertpoin": "Sorry, your points are not enough", "alertpoin": "Sorry, your points are not enough",
"alertselectpayment": "Please choose a payment method", "alertselectpayment": "Please choose a payment method",
......
...@@ -6,16 +6,16 @@ ...@@ -6,16 +6,16 @@
"firstName": "Nama Depan", "firstName": "Nama Depan",
"lastName": "Nama Belakang", "lastName": "Nama Belakang",
"birthPlace": "Tempat Lahir", "birthPlace": "Tempat Lahir",
"permanentAddress":"Alamat Permanen", "permanentAddress": "Alamat Permanen",
"province":"Provinsi", "province": "Provinsi",
"city":"Kota", "city": "Kota",
"village":"Kecamatan", "village": "Kecamatan",
"district":"Kelurahan", "district": "Kelurahan",
"job":"Pekerjaan", "job": "Pekerjaan",
"idCard":"KTP", "idCard": "KTP",
"nationality":"Kebangsaan", "nationality": "Kebangsaan",
"selfieImage":"Upload Foto Diri", "selfieImage": "Upload Foto Diri",
"idCardImage":"Upload Foto KTP", "idCardImage": "Upload Foto KTP",
"Name": "Nama", "Name": "Nama",
"NotorderHistory": "Tidak ada riwayat transaksi", "NotorderHistory": "Tidak ada riwayat transaksi",
"NotActivate": "Anda belum aktivasi kartu", "NotActivate": "Anda belum aktivasi kartu",
...@@ -90,6 +90,10 @@ ...@@ -90,6 +90,10 @@
"Renewal": "RENEWAL", "Renewal": "RENEWAL",
"Usebalancepoint": "GUNAKAN SALDO / POINT", "Usebalancepoint": "GUNAKAN SALDO / POINT",
"Acitvatecard": "AKTIVASI KARTU", "Acitvatecard": "AKTIVASI KARTU",
"mobilePhone": "Nomor HP",
"resend": "Kirim Ulang",
"cardNumber": "Nomor Kartu",
"activate": "AKTIVASI",
"alertpoin": "Maaf Point tidak cukup", "alertpoin": "Maaf Point tidak cukup",
"alertselectpayment": "Silahkan pilih metode pembayaran", "alertselectpayment": "Silahkan pilih metode pembayaran",
"alertbalance": "Maaf Saldo tidak cukup", "alertbalance": "Maaf Saldo tidak cukup",
......
...@@ -367,7 +367,7 @@ class Auth extends React.Component { ...@@ -367,7 +367,7 @@ class Auth extends React.Component {
fontSize: 20, fontSize: 20,
color: 'white', color: 'white',
textAlign: 'center' textAlign: 'center'
}, title: 'ACTIVATE CARD' }, title: i18n.t('Acitvatecard')
}} /> }} />
<Stack.Screen name="Renewal" component={Renewal} options={{ <Stack.Screen name="Renewal" component={Renewal} options={{
headerStyle: { backgroundColor: '#CFB368' }, headerStyle: { backgroundColor: '#CFB368' },
......
...@@ -5,6 +5,7 @@ import Axios from 'axios'; ...@@ -5,6 +5,7 @@ import Axios from 'axios';
import ActionType from '../redux/globalActionType'; import ActionType from '../redux/globalActionType';
import Spinner from 'react-native-loading-spinner-overlay'; import Spinner from 'react-native-loading-spinner-overlay';
import session from '../function/session'; import session from '../function/session';
import i18n from 'i18n-js';
class CardActivation extends React.Component { class CardActivation extends React.Component {
constructor(props) { constructor(props) {
...@@ -49,9 +50,9 @@ class CardActivation extends React.Component { ...@@ -49,9 +50,9 @@ class CardActivation extends React.Component {
}) })
}).catch(error => { }).catch(error => {
let response = error.response.data; let response = error.response.data;
const { navigation } = this.props // const { navigation } = this.props
session(response, navigation) // session(response, navigation)
Alert.alert(response.msg); Alert.alert('',response.msg);
}) })
} }
...@@ -136,7 +137,7 @@ class CardActivation extends React.Component { ...@@ -136,7 +137,7 @@ class CardActivation extends React.Component {
<View style={styles.form}> <View style={styles.form}>
<View style={styles.field_phone}> <View style={styles.field_phone}>
<View style={{ flex: 1, margin: 10 }}> <View style={{ flex: 1, margin: 10 }}>
<Text style={{ fontFamily: 'Gotham-Black', color: '#CFB368', fontSize: 19, textAlign: 'center', marginBottom: 5 }}>Mobile phone</Text> <Text style={{ fontFamily: 'Gotham-Black', color: '#CFB368', fontSize: 19, textAlign: 'center', marginBottom: 5 }}>{i18n.t('mobilePhone')}</Text>
<TextInput <TextInput
style={{ height: 40, borderColor: 'gray', borderWidth: 1, padding: 5, borderRadius: 10,textAlign:'center',fontFamily:'Gotham-Black',color:'grey', fontSize:16}} style={{ height: 40, borderColor: 'gray', borderWidth: 1, padding: 5, borderRadius: 10,textAlign:'center',fontFamily:'Gotham-Black',color:'grey', fontSize:16}}
onChangeText={mobile_phone => this.setState({ mobile_phone })} onChangeText={mobile_phone => this.setState({ mobile_phone })}
...@@ -162,14 +163,14 @@ class CardActivation extends React.Component { ...@@ -162,14 +163,14 @@ class CardActivation extends React.Component {
this.state.timer === 0 ? ( this.state.timer === 0 ? (
<TouchableOpacity onPress={() => this.ResendToken()}> <TouchableOpacity onPress={() => this.ResendToken()}>
<View style={{ height: 40, borderRadius: 20, backgroundColor: '#CFB368', margin: 20, justifyContent: 'center' }}> <View style={{ height: 40, borderRadius: 20, backgroundColor: '#CFB368', margin: 20, justifyContent: 'center' }}>
<Text style={{ fontFamily: 'Gotham-Black', color: 'white', fontSize: 20, textAlign: 'center' }}>Resend Token</Text> <Text style={{ fontFamily: 'Gotham-Black', color: 'white', fontSize: 20, textAlign: 'center' }}>{i18n.t('resend')} Token</Text>
</View> </View>
</TouchableOpacity> </TouchableOpacity>
) : (null)} ) : (null)}
<View style={styles.field_email}> <View style={styles.field_email}>
<View style={{ flex: 1, margin: 10 }}> <View style={{ flex: 1, margin: 10 }}>
<Text style={{ fontFamily: 'Gotham-Black', color: '#CFB368', fontSize: 19, textAlign: 'center', marginBottom: 5 }}>Card Number</Text> <Text style={{ fontFamily: 'Gotham-Black', color: '#CFB368', fontSize: 19, textAlign: 'center', marginBottom: 5 }}>{i18n.t('cardNumber')}</Text>
<TextInput <TextInput
style={{ height: 40, borderColor: 'gray', borderWidth: 1, padding: 5, borderRadius: 10,textAlign:'center',fontFamily:'Gotham-Black',color:'grey', fontSize:16}} style={{ height: 40, borderColor: 'gray', borderWidth: 1, padding: 5, borderRadius: 10,textAlign:'center',fontFamily:'Gotham-Black',color:'grey', fontSize:16}}
onChangeText={card_number => this.setState({ card_number })} onChangeText={card_number => this.setState({ card_number })}
...@@ -192,7 +193,7 @@ class CardActivation extends React.Component { ...@@ -192,7 +193,7 @@ class CardActivation extends React.Component {
<View style={styles.button}> <View style={styles.button}>
<TouchableOpacity onPress={() => this.handleActivate()}> <TouchableOpacity onPress={() => this.handleActivate()}>
<View style={{ height: 40, borderRadius: 20, backgroundColor: '#CFB368', margin: 20, justifyContent: 'center' }}> <View style={{ height: 40, borderRadius: 20, backgroundColor: '#CFB368', margin: 20, justifyContent: 'center' }}>
<Text style={{ fontFamily: 'Gotham-Black', color: 'white', fontSize: 20, textAlign: 'center' }}>ACTIVATE</Text> <Text style={{ fontFamily: 'Gotham-Black', color: 'white', fontSize: 20, textAlign: 'center' }}>{i18n.t('activate')}</Text>
</View> </View>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
......
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