Skip to content

Commit

Permalink
update translation and payment overview screen
Browse files Browse the repository at this point in the history
  • Loading branch information
KKA11010 committed Apr 3, 2024
1 parent 4169e03 commit e1ac3cc
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion assets/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"back": "Zurück",
"backToDashboard": "Zurück zu Wallet",
"balance": "Guthaben",
"balanceAfterTX": "Guthaben nach Zahlung",
"balanceAfterTX": "Mint Guthaben nach Zahlung",
"balTooLow": "Nicht genug Guthaben",
"bigQrMsg": "Die Datenmenge ist zu groß für einen QR-Code.",
"calculateFeeEst": "Gebühr wird geschätzt",
Expand Down
2 changes: 1 addition & 1 deletion assets/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"back": "Back",
"backToDashboard": "Back to dashboard",
"balance": "Balance",
"balanceAfterTX": "Balance after TX",
"balanceAfterTX": "Mint balance after TX",
"balTooLow": "Balance too low",
"bigQrMsg": "The amount of data is too big for a QR code.",
"calculateFeeEst": "Calculating fee",
Expand Down
2 changes: 1 addition & 1 deletion assets/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"back": "Volver",
"backToDashboard": "Volver al panel de control",
"balance": "Saldo",
"balanceAfterTX": "Saldo tras la transacción",
"balanceAfterTX": "Mint saldo tras la transacción",
"balTooLow": "Saldo insuficiente",
"bigQrMsg": "La cantidad de datos es demasiado grande para un código QR.",
"calculateFeeEst": "Calculando comisión",
Expand Down
2 changes: 1 addition & 1 deletion assets/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"back": "Retour",
"backToDashboard": "Retour au tableau de bord",
"balance": "Solde",
"balanceAfterTX": "Solde après paiement",
"balanceAfterTX": "Mint solde après paiement",
"balTooLow": "Solde insuffisant",
"bigQrMsg": "La quantité de données est trop grand pour un code QR.",
"calculateFeeEst": "Calcul des frais",
Expand Down
2 changes: 1 addition & 1 deletion assets/translations/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"back": "Vissza",
"backToDashboard": "Vissza a kezdőképernyőre",
"balance": "Egyenleg",
"balanceAfterTX": "Utalás utáni egyenleg",
"balanceAfterTX": "Verde utalás utáni egyenleg",
"balTooLow": "Egyenleg túl alacsony",
"bigQrMsg": "Az adatmennyiség túl nagy egy QR kód számára.",
"calculateFeeEst": "Díjszámítás",
Expand Down
2 changes: 1 addition & 1 deletion assets/translations/sw.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"back": "Rudi",
"backToDashboard": "Rudi kwenye dashibodi",
"balance": "Salio",
"balanceAfterTX": "Salio baada ya TX",
"balanceAfterTX": "Mint salio baada ya TX",
"balTooLow": "Salio ni dogo mno",
"bigQrMsg": "Kiasi cha data ni kikubwa sana kwa nambari ya QR.",
"calculateFeeEst": "Kuhesabu ada",
Expand Down
17 changes: 12 additions & 5 deletions src/screens/Payment/Send/CoinSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { isLightningAddress } from '@util/lnurl'
import { useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next'
import { ScrollView, View } from 'react-native'
import { ScaledSheet } from 'react-native-size-matters'
import { s, ScaledSheet } from 'react-native-size-matters'

import { CoinSelectionModal, CoinSelectionResume, OverviewRow } from './ProofList'

Expand Down Expand Up @@ -141,10 +141,17 @@ export default function CoinSelectionScreen({ navigation, route }: TCoinSelectio
{isNum(estFee) && !nostr && !isSendEcash &&
<OverviewRow txt1={t('estimatedFees')} txt2={formatSatStr(estFee)} />
}
<OverviewRow
txt1={t('balanceAfterTX')}
txt2={estFee > 0 ? `${formatInt(balance - amount - estFee)} ${t('to')} ${formatSatStr(balance - amount)}` : `${formatSatStr(balance - amount)}`}
/>
<View>
<Txt
txt={t('balanceAfterTX')}
styles={[{ fontWeight: '500', marginBottom: s(5) }]}
/>
<Txt
txt={estFee > 0 ? `${formatInt(balance - amount - estFee)} ${t('to')} ${formatSatStr(balance - amount)}` : `${formatSatStr(balance - amount)}`}
styles={[{ color: color.TEXT_SECONDARY }]}
/>
</View>
<Separator style={[{ marginTop: s(20) }]} />
{memo && memo.length > 0 &&
<OverviewRow txt1={t('memo', { ns: NS.history })} txt2={memo} />
}
Expand Down

0 comments on commit e1ac3cc

Please sign in to comment.