Commit bac7487d authored by Trisno's avatar Trisno

translate reward history

parent 798e4770
...@@ -46,6 +46,8 @@ ...@@ -46,6 +46,8 @@
"policy": "By logging in or registering, you agree to ", "policy": "By logging in or registering, you agree to ",
"privacy": "our service guide rules and privacy policy", "privacy": "our service guide rules and privacy policy",
"rewardhistory": "REDEEM E-VOUCHER HISTORY", "rewardhistory": "REDEEM E-VOUCHER HISTORY",
"headerRewardHistory":"REWARD HISTORY",
"noRewardHistorydata":"No Reward History",
"titlerewardhistory": "REWARDS E-VOUCHER", "titlerewardhistory": "REWARDS E-VOUCHER",
"orderhistory": "ORDER HISTORY", "orderhistory": "ORDER HISTORY",
"allcity": "All city", "allcity": "All city",
......
...@@ -68,6 +68,8 @@ ...@@ -68,6 +68,8 @@
"orderInfo": "KAMU AKAN AMBIL PESANANMU DI", "orderInfo": "KAMU AKAN AMBIL PESANANMU DI",
"orderNow": "PESAN SEKARANG", "orderNow": "PESAN SEKARANG",
"rewardhistory": "RIWAYAT REWARDS", "rewardhistory": "RIWAYAT REWARDS",
"headerRewardHistory": "RIWAYAT REWARD",
"noRewardHistorydata": "Tidak ada riwayat reward",
"orderhistory": "RIWAYAT ORDER", "orderhistory": "RIWAYAT ORDER",
"titlerewardhistory": "VOUCHER", "titlerewardhistory": "VOUCHER",
"allcity": "Semua kota", "allcity": "Semua kota",
......
...@@ -518,7 +518,7 @@ class Auth extends React.Component { ...@@ -518,7 +518,7 @@ class Auth extends React.Component {
fontSize: 20, fontSize: 20,
color: 'white', color: 'white',
textAlign: 'center' textAlign: 'center'
}, title: 'Reward History' }, title: i18n.t('headerRewardHistory')
}} }}
/> />
......
...@@ -4,6 +4,7 @@ import { Card } from 'react-native-shadow-cards' ...@@ -4,6 +4,7 @@ import { Card } from 'react-native-shadow-cards'
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import Axios from 'axios'; import Axios from 'axios';
import moment from 'moment' import moment from 'moment'
import i18n from 'i18n-js';
class RewardHistory extends React.Component { class RewardHistory extends React.Component {
constructor(props) { constructor(props) {
...@@ -82,7 +83,7 @@ class RewardHistory extends React.Component { ...@@ -82,7 +83,7 @@ class RewardHistory extends React.Component {
)) ))
) : ( ) : (
<View style={{ alignItems: 'center', margin: 20 }}> <View style={{ alignItems: 'center', margin: 20 }}>
<Text style={{ textAlign: 'right', fontSize: 12, fontFamily: 'Gotham-Light' }}>No Reward History</Text> <Text style={{ textAlign: 'right', fontSize: 12, fontFamily: 'Gotham-Light' }}>{i18n.t('noRewardHistorydata')}</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