Fixed localization of "View in Block Explorer" (#342)

Fixed localization of "View in Block Explorer
This commit is contained in:
Mathias Herberts
2022-04-22 16:15:05 +01:00
committed by GitHub
parent 873402ad3c
commit 6cd07278cc
16 changed files with 36 additions and 6 deletions
@@ -142,7 +142,7 @@ abstract class TransactionDetailsViewModelBase with Store {
final type = wallet.type;
items.add(BlockExplorerListItem(
title: "View in Block Explorer",
title: S.current.view_in_block_explorer,
value: _explorerDescription(type),
onTap: () => launch(_explorerUrl(type, tx.id))));
@@ -191,13 +191,13 @@ abstract class TransactionDetailsViewModelBase with Store {
String _explorerDescription(WalletType type) {
switch (type) {
case WalletType.monero:
return 'View Transaction on XMRChain.net';
return S.current.view_transaction_on + 'XMRChain.net';
case WalletType.bitcoin:
return 'View Transaction on Blockchain.com';
return S.current.view_transaction_on + 'Blockchain.com';
case WalletType.litecoin:
return 'View Transaction on Blockchair.com';
return S.current.view_transaction_on + 'Blockchair.com';
case WalletType.haven:
return 'View Transaction on explorer.havenprotocol.org';
return S.current.view_transaction_on + 'explorer.havenprotocol.org';
default:
return '';
}