Fixes hardcoded strings in screen/wallets/details.js:

'connect to'
  'advanced'
  'Use with hardware wallet'

Creates new entries on all loc files:
  loc.wallets.details.connected_to
  loc.wallets.details.advanced
  loc.wallets.details.use_with_hardware_wallet
This commit is contained in:
João Bordalo 2020-05-08 16:49:54 +01:00 committed by Overtorment
parent 4aefd5fe6e
commit ea9dc6efca
17 changed files with 51 additions and 3 deletions

View File

@ -65,6 +65,9 @@ module.exports = {
export_backup: 'Exportovat / zálohovat',
buy_bitcoin: 'Koupit Bitcoin',
show_xpub: 'Ukázat XPUB',
connected_to: 'Connected to',
advanced: 'Advanced',
use_with_hardware_wallet: 'Use with hardware wallet',
},
export: {
title: 'exportovat peněženku',

View File

@ -65,6 +65,9 @@ module.exports = {
export_backup: 'Eksporter / backup',
buy_bitcoin: 'Køb Bitcoin',
show_xpub: 'Vis wallet XPUB',
connected_to: 'Connected to',
advanced: 'Advanced',
use_with_hardware_wallet: 'Use with hardware wallet',
},
export: {
title: 'wallet eksport',

View File

@ -67,6 +67,9 @@ module.exports = {
export_backup: 'Exportieren / Backup',
buy_bitcoin: 'Bitcoin kaufen',
show_xpub: 'Wallet XPUB zeigen',
connected_to: 'Connected to',
advanced: 'Advanced',
use_with_hardware_wallet: 'Use with hardware wallet',
},
export: {
title: 'Wallet exportieren',

View File

@ -68,6 +68,9 @@ module.exports = {
export_backup: 'Εξήγαγε / δημιούργησε αντίγραφο ασφαλείας',
buy_bitcoin: 'Αγόρασε Bitcoin',
show_xpub: 'Δείξε το XPUB του πορτοφολιού',
connected_to: 'Connected to',
advanced: 'Advanced',
use_with_hardware_wallet: 'Use with hardware wallet',
},
export: {
title: 'Εξαγωγή πορτοφολιού',

View File

@ -66,6 +66,9 @@ module.exports = {
export_backup: 'Export / backup',
buy_bitcoin: 'Buy Bitcoin',
show_xpub: 'Show wallet XPUB',
connected_to: 'Connected to',
advanced: 'Advanced',
use_with_hardware_wallet: 'Use with hardware wallet',
},
export: {
title: 'wallet export',

View File

@ -66,6 +66,9 @@ module.exports = {
export_backup: 'Exportar / Guardar',
buy_bitcoin: 'Buy Bitcoin',
show_xpub: 'Show wallet XPUB',
connected_to: 'Connected to',
advanced: 'Advanced',
use_with_hardware_wallet: 'Use with hardware wallet',
},
export: {
title: 'Exportacion de billetera',

View File

@ -68,6 +68,9 @@ module.exports = {
export_backup: 'Vie / varmuuskopioi',
buy_bitcoin: 'Osta Bitcoinia',
show_xpub: 'Näytä lompakon XPUB',
connected_to: 'Connected to',
advanced: 'Advanced',
use_with_hardware_wallet: 'Use with hardware wallet',
},
export: {
title: 'lompakon vienti',

View File

@ -67,6 +67,9 @@ module.exports = {
export_backup: 'Exporter / sauvegarder',
buy_bitcoin: 'Acheter du Bitcoin',
show_xpub: 'Afficher XPUB du portefeuille',
connected_to: 'Connected to',
advanced: 'Advanced',
use_with_hardware_wallet: 'Use with hardware wallet',
},
export: {
title: 'export du portefeuille',

View File

@ -65,6 +65,9 @@ module.exports = {
export_backup: 'Izvoz / bekap',
buy_bitcoin: 'Kupovina Bitcoina',
show_xpub: 'Prikaži voletov XPUB',
connected_to: 'Connected to',
advanced: 'Advanced',
use_with_hardware_wallet: 'Use with hardware wallet',
},
export: {
title: 'izvoz voleta',

View File

@ -66,6 +66,9 @@ module.exports = {
export_backup: 'Exportálás / Biztonsági mentés',
buy_bitcoin: 'Bitcoin vásáslás',
show_xpub: 'Mutasd a tárca XPUB kulcsát',
connected_to: 'Connected to',
advanced: 'Advanced',
use_with_hardware_wallet: 'Use with hardware wallet',
},
export: {
title: 'tárca exportálása',

View File

@ -66,6 +66,9 @@ module.exports = {
export_backup: 'Ekspor / backup',
buy_bitcoin: 'Beli Bitcoin',
show_xpub: 'Tampilkan XPUB dompet',
connected_to: 'Connected to',
advanced: 'Advanced',
use_with_hardware_wallet: 'Use with hardware wallet',
},
export: {
title: 'ekspor dompet',

View File

@ -68,6 +68,9 @@ module.exports = {
export_backup: 'Esporta / Backup',
buy_bitcoin: 'Compra Bitcoin',
show_xpub: 'Mostra XPUB del portafoglio',
connected_to: 'Connected to',
advanced: 'Advanced',
use_with_hardware_wallet: 'Use with hardware wallet',
},
export: {
title: 'Esporta portafoglio',

View File

@ -65,6 +65,9 @@ module.exports = {
export_backup: 'エクスポート / バックアップ',
buy_bitcoin: 'Bitcoin の購入',
show_xpub: 'ウォレット XPUB の表示',
connected_to: 'Connected to',
advanced: 'Advanced',
use_with_hardware_wallet: 'Use with hardware wallet',
},
export: {
title: 'ウォレットのエクスポート',

View File

@ -66,6 +66,9 @@ module.exports = {
export_backup: 'Eksporter / backup',
buy_bitcoin: 'Kjøp Bitcoin',
show_xpub: 'Vis lommebok XPUB',
connected_to: 'Connected to',
advanced: 'Advanced',
use_with_hardware_wallet: 'Use with hardware wallet',
},
export: {
title: 'lommebok eksport',

View File

@ -66,6 +66,9 @@ module.exports = {
export_backup: 'Exporteren / back-up maken',
buy_bitcoin: 'Koop Bitcoin',
show_xpub: 'Toon portemonnee XPUB',
connected_to: 'Connected to',
advanced: 'Advanced',
use_with_hardware_wallet: 'Use with hardware wallet',
},
export: {
title: 'portemonnee exporteren',

View File

@ -66,6 +66,9 @@ module.exports = {
export_backup: 'Exportar / backup',
buy_bitcoin: 'Comprar Bitcoin',
show_xpub: 'Mostrar XPUB da wallet',
connected_to: 'Connected to',
advanced: 'Advanced',
use_with_hardware_wallet: 'Use with hardware wallet',
},
export: {
title: 'Exportar Wallet',

View File

@ -212,7 +212,7 @@ export default class WalletDetails extends Component {
<Text style={{ color: '#81868e', fontWeight: '500', fontSize: 14 }}>{this.state.wallet.typeReadable}</Text>
{this.state.wallet.type === LightningCustodianWallet.type && (
<React.Fragment>
<Text style={{ color: '#0c2550', fontWeight: '500', fontSize: 14, marginVertical: 12 }}>{'connected to'}</Text>
<Text style={{ color: '#0c2550', fontWeight: '500', fontSize: 14, marginVertical: 12 }}>{loc.wallets.details.connected_to.toLowerCase()}</Text>
<BlueText>{this.state.wallet.getBaseURI()}</BlueText>
</React.Fragment>
)}
@ -220,9 +220,9 @@ export default class WalletDetails extends Component {
<BlueSpacing20 />
{this.state.wallet.type === WatchOnlyWallet.type && this.state.wallet.getSecret().startsWith('zpub') && (
<>
<Text style={{ color: '#0c2550', fontWeight: '500', fontSize: 14, marginVertical: 16 }}>{'advanced'}</Text>
<Text style={{ color: '#0c2550', fontWeight: '500', fontSize: 14, marginVertical: 16 }}>{loc.wallets.details.advanced.toLowerCase()}</Text>
<View style={{ flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between' }}>
<BlueText>{'Use with hardware wallet'}</BlueText>
<BlueText>{loc.wallets.details.use_with_hardware_wallet}</BlueText>
<Switch
value={this.state.useWithHardwareWallet}
onValueChange={value => this.onUseWithHardwareWalletSwitch(value)}