Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
feat: translate advanced gas options
Browse files Browse the repository at this point in the history
  • Loading branch information
lucachaco committed Jun 28, 2021
1 parent be3a684 commit d9e10e3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 20 deletions.
8 changes: 6 additions & 2 deletions src/common/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"transfer": {
"to": "To",
"memo": "Memo (optional)",
"fee": "Transaction fee",
"fee": "Transaction Fee",
"custom": "Custom",
"feeQuestion": "How fast do you want this done?",
"Slow": "Slow",
Expand All @@ -65,7 +65,11 @@
"enterMemo": "Enter a transaction memo",
"slideConfirm": "Slide to Confirm",
"balance": "Balance",
"unavailableAddress": "The wallet address you’ve entered is not valid"
"unavailableAddress": "The wallet address you’ve entered is not valid",
"advanced": "Advanced",
"gasPrice": "Gas Price",
"gasLimit": "Gas Limit",
"units": "Units"
},
"add": {
"title": "Add Wallet",
Expand Down
6 changes: 5 additions & 1 deletion src/common/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@
"enterMemo": "Ingrese una nota de transacción",
"slideConfirm": "Deslice para confirmar",
"balance": "Equilibrar",
"unavailableAddress": "La dirección de la billetera que ingresó no es válida"
"unavailableAddress": "La dirección de la billetera que ingresó no es válida",
"advanced": "Avanzado",
"gasPrice": "Precio de Gas",
"gasLimit": "Límite de Gas",
"units": "Units"
},
"add": {
"title": "Agregar Wallet",
Expand Down
29 changes: 12 additions & 17 deletions src/pages/wallet/transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1048,11 +1048,9 @@ class Transfer extends Component {
onSlidingComplete={(value) => this.onGasPriceSlidingComplete(value)}
/>
<Text style={styles.customFeeText}>
Gas Price:
{' '}
{customGasPrice.div(1000000000).decimalPlaces(2).toString()}
{' '}
GWEI
<Loc text="page.wallet.transfer.gasPrice" />
{` ${customGasPrice.div(1000000000).decimalPlaces(2).toString()} GWEI`}

</Text>
</View>
<View style={[styles.customFeeSliderWrapper]}>
Expand All @@ -1069,17 +1067,17 @@ class Transfer extends Component {
/>

<Text style={styles.customFeeText}>
Gas Limit:
{' '}
{customGasLimit.decimalPlaces(2).toString()}
{' '}
Units

<Loc text="page.wallet.transfer.gasLimit" />
{` ${customGasLimit.decimalPlaces(2).toString()} `}
<Loc text="page.wallet.transfer.units" />
</Text>
</View>
<View style={[styles.customFeeSliderWrapper]}>

<Text style={styles.customFeeText}>
{`Fee: ${valueCoin.decimalPlaces(2).toString()} USD`}
<Loc text="page.wallet.transfer.fee" />
{` ${valueCoin.decimalPlaces(2).toString()} USD`}
</Text>
</View>

Expand Down Expand Up @@ -1110,11 +1108,8 @@ class Transfer extends Component {
/>

<Text style={styles.customFeeText}>
Fee:
{' '}
{customBtcFee.toString()}
{' '}
BTC
<Loc text="page.wallet.transfer.fee" />
{` ${customBtcFee.decimalPlaces(8).toString()} BTC`}
</Text>
</View>
);
Expand Down Expand Up @@ -1262,7 +1257,7 @@ class Transfer extends Component {
</View>
<View style={[styles.sectionContainer]}>
<View style={[styles.customRow]}>
<Loc style={[styles.customTitle, { flex: 1 }]} text="Advanced" />
<Loc style={[styles.customTitle, { flex: 1 }]} text="page.wallet.transfer.advanced" />
<Switch
disabled={!levelFees}
value={isCustomFee}
Expand Down

0 comments on commit d9e10e3

Please sign in to comment.