Commit 1fccb9c7 authored by Trisno's avatar Trisno

translate trans history

parent 361f4423
...@@ -128,5 +128,7 @@ ...@@ -128,5 +128,7 @@
"youRated":"You Rated", "youRated":"You Rated",
"rateOrder":"Rate Order", "rateOrder":"Rate Order",
"headerEmailConfirm":"EMAIL CONFIRMATION", "headerEmailConfirm":"EMAIL CONFIRMATION",
"headerRedeemCode":"REDEEM CODE" "headerRedeemCode":"REDEEM CODE",
"headerTransHistory":"TRANSACTION HISTORY",
"noTransHistoryData":"No Transaction History"
} }
\ No newline at end of file
...@@ -130,5 +130,7 @@ ...@@ -130,5 +130,7 @@
"youRated": "You Rated@", "youRated": "You Rated@",
"rateOrder": "Rate Order@", "rateOrder": "Rate Order@",
"headerEmailConfirm":"KONFIRMASI EMAIL", "headerEmailConfirm":"KONFIRMASI EMAIL",
"headerRedeemCode":"REDEEM CODE@" "headerRedeemCode":"REDEEM CODE@",
"headerTransHistory":"RIWAYAT TRANSAKSI",
"noTransHistoryData":"Tidak ada riwayat transaksi"
} }
\ No newline at end of file
...@@ -681,7 +681,7 @@ class Auth extends React.Component { ...@@ -681,7 +681,7 @@ class Auth extends React.Component {
color: 'white', color: 'white',
fontSize: 20, fontSize: 20,
}, },
title: 'TRANSACTION HISTORY' title: i18n.t('headerTransHistory')
}} /> }} />
<Stack.Screen name="Transaction Detail" component={TransactionDetail} <Stack.Screen name="Transaction Detail" component={TransactionDetail}
options={{ options={{
......
...@@ -6,6 +6,7 @@ import Axios from 'axios'; ...@@ -6,6 +6,7 @@ import Axios from 'axios';
import moment from 'moment' import moment from 'moment'
import MyStatusBar from './MyStatusBar'; import MyStatusBar from './MyStatusBar';
import NumberFormat from 'react-number-format'; import NumberFormat from 'react-number-format';
import i18n from 'i18n-js';
class TransactionHistory extends React.Component { class TransactionHistory extends React.Component {
constructor(props) { constructor(props) {
...@@ -117,7 +118,7 @@ class TransactionHistory extends React.Component { ...@@ -117,7 +118,7 @@ class TransactionHistory extends React.Component {
<Text style={{ fontFamily: 'Gotham-Black', color: '#CFB368', fontSize: 12, margin: 2 }}>{i.trans_type_display}</Text> <Text style={{ fontFamily: 'Gotham-Black', color: '#CFB368', fontSize: 12, margin: 2 }}>{i.trans_type_display}</Text>
<TouchableOpacity onPress={() => this.props.navigation.navigate('Order Detail', { idTrans: i.id })}> <TouchableOpacity onPress={() => this.props.navigation.navigate('Order Detail', { idTrans: i.id })}>
<View style={{ height: 40, borderRadius: 10, backgroundColor: '#CFB368', justifyContent: 'center', marginVertical: 5 }}> <View style={{ height: 40, borderRadius: 10, backgroundColor: '#CFB368', justifyContent: 'center', marginVertical: 5 }}>
<Text style={{ fontFamily: 'Gotham-Black', color: 'white', fontSize: 12, textAlign: 'center', paddingHorizontal: 5 }}>Lihat Detail Pemesanan</Text> <Text style={{ fontFamily: 'Gotham-Black', color: 'white', fontSize: 12, textAlign: 'center', paddingHorizontal: 5 }}>{i18n.t('seeOrderDetail')}</Text>
</View> </View>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
...@@ -212,7 +213,7 @@ class TransactionHistory extends React.Component { ...@@ -212,7 +213,7 @@ class TransactionHistory extends React.Component {
)) ))
) : ( ) : (
<View style={{ justifyContent: 'center', alignItems: 'center', height: 100 }}> <View style={{ justifyContent: 'center', alignItems: 'center', height: 100 }}>
<Text style={{ textAlign: 'left', fontSize: 12, fontFamily: 'Gotham-Light', color: 'grey' }}>No Transaction History</Text> <Text style={{ textAlign: 'left', fontSize: 12, fontFamily: 'Gotham-Light', color: 'grey' }}>{i18n.t('noTransHistoryData')}</Text>
</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