Updated on 2026-08-14
This commit is contained in:
parent
b0386eb54b
commit
9c68c9ff00
10 changed files with 78 additions and 12 deletions
|
|
@ -1087,6 +1087,8 @@
|
|||
<string name="transaction_history_transaction_from_address">de : %s</string>
|
||||
<string name="transaction_history_transaction_to_address">à : %s</string>
|
||||
<string name="transaction_history_transaction_validator">validateur : %s</string>
|
||||
<string name="transaction_notifications_warning_description">Les notifications sont activées, mais elles ne fonctionneront pas tant que vous n\'aurez pas autorisé les notifications dans les paramètres de votre appareil.</string>
|
||||
<string name="transaction_notifications_warning_title">Notifications de transaction</string>
|
||||
<string name="transfer_min_amount_error">Minimum %s</string>
|
||||
<string name="transfer_notification_invalid_minimum_transaction_amount_text">Le montant minimum pour effectuer cette transaction est %1$s.</string>
|
||||
<string name="try_to_load_data_again_button_title">Réessayez</string>
|
||||
|
|
|
|||
|
|
@ -61,6 +61,13 @@
|
|||
<string name="app_settings_theme_mode_system">システムのデフォルト</string>
|
||||
<string name="app_settings_theme_selector_title">テーマ</string>
|
||||
<string name="app_settings_title">アプリ設定</string>
|
||||
<string name="auth_info_add_wallet_title">ウォレットを追加</string>
|
||||
<string name="auth_info_subtitle">ログインするウォレットを選択する</string>
|
||||
<string name="auth_info_title">お帰りなさい!</string>
|
||||
<plurals name="auth_wallet_hardware_description">
|
||||
<item quantity="other">%d 枚のカード</item>
|
||||
</plurals>
|
||||
<string name="auth_wallet_mobile_description">スマートフォンウォレット</string>
|
||||
<string name="backup_complete_description">ウォレットのバックアップが正常に完了しました。</string>
|
||||
<string name="backup_complete_seed_description">これらの単語は紛失した場合、復元できません。必ず安全な場所に保管してください。</string>
|
||||
<string name="backup_complete_title">バックアップが完了しました</string>
|
||||
|
|
@ -846,6 +853,7 @@
|
|||
<string name="send_date_format">%1$s 、 %2$s</string>
|
||||
<string name="send_destination_tag_field">宛先タグ</string>
|
||||
<string name="send_enter_address_field">アドレスを入力</string>
|
||||
<string name="send_enter_address_field_ens">ENS名またはアドレスを入力</string>
|
||||
<string name="send_error_address_same_as_wallet">アドレスはウォレットアドレスと同じです</string>
|
||||
<string name="send_error_dust_amount_format">最低額は%sです</string>
|
||||
<string name="send_error_dust_change_format">最小の変更は%sです</string>
|
||||
|
|
@ -927,11 +935,15 @@
|
|||
<string name="send_validation_invalid_amount">無効な金額</string>
|
||||
<string name="send_validation_invalid_fee">手数料が残高を超えています</string>
|
||||
<string name="send_validation_invalid_total">合計金額が残高を超えています</string>
|
||||
<string name="send_with_swap_change_token_alert_message">トークンを変更してもよろしいですか? 変更後、以前のデータはリセットされます。</string>
|
||||
<string name="send_with_swap_change_token_alert_title">トークンの変更</string>
|
||||
<string name="send_with_swap_confirm_title">スワップして送信</string>
|
||||
<string name="send_with_swap_notification_text">トークンを送信すれば、送信中に変換されます。受信者は必要なものをシームレスに受け取ります。</string>
|
||||
<string name="send_with_swap_recipient_amount_success_title">受信者は受け取ります</string>
|
||||
<string name="send_with_swap_recipient_amount_text">受信者に送信されます</string>
|
||||
<string name="send_with_swap_recipient_amount_title">受取金額</string>
|
||||
<string name="send_with_swap_remove_convert_alert_message">変換をキャンセルしてもよろしいですか? 変更後、以前のデータはリセットされます。</string>
|
||||
<string name="send_with_swap_remove_convert_alert_title">キャンセルの確認</string>
|
||||
<string name="send_with_swap_title">スワップして送信</string>
|
||||
<string name="sent_transaction_sent_title">取引が送信されました</string>
|
||||
<string name="settings_card_settings_footer">設定したいカードまたはリングをスキャンするために準備してください。</string>
|
||||
|
|
|
|||
|
|
@ -1105,6 +1105,8 @@
|
|||
<string name="transaction_history_transaction_from_address">от: %s</string>
|
||||
<string name="transaction_history_transaction_to_address">на: %s</string>
|
||||
<string name="transaction_history_transaction_validator">валидатор: %s</string>
|
||||
<string name="transaction_notifications_warning_description">Уведомления включены, но не будут работать, пока вы не разрешите их в настройках устройства.</string>
|
||||
<string name="transaction_notifications_warning_title">Уведомления о транзакциях</string>
|
||||
<string name="transfer_min_amount_error">Минимум %s</string>
|
||||
<string name="transfer_notification_invalid_minimum_transaction_amount_text">Минимальная сумма транзакции равна %1$s.</string>
|
||||
<string name="tron_will_be_send_token_fee_description">Комиссии сети Tron для популярных токенов могут быть выше. Стейкинг TRX может помочь снизить расходы на транзакции.</string>
|
||||
|
|
|
|||
|
|
@ -1105,6 +1105,8 @@
|
|||
<string name="transaction_history_transaction_from_address">від: %s</string>
|
||||
<string name="transaction_history_transaction_to_address">до: %s</string>
|
||||
<string name="transaction_history_transaction_validator">валідатор: %s</string>
|
||||
<string name="transaction_notifications_warning_description">Сповіщення ввімкнені, але не працюватимуть, доки ви не дозволите їх у налаштуваннях пристрою.</string>
|
||||
<string name="transaction_notifications_warning_title">Сповіщення про транзакції</string>
|
||||
<string name="transfer_min_amount_error">Мінімум %s</string>
|
||||
<string name="transfer_notification_invalid_minimum_transaction_amount_text">Мінімальна сума транзакції становить %1$s.</string>
|
||||
<string name="tron_will_be_send_token_fee_description">Комісії мережі Tron для популярних токенів можуть бути вищими. Стейкінг TRX може допомогти знизити транзакційні витрати.</string>
|
||||
|
|
|
|||
|
|
@ -64,6 +64,10 @@
|
|||
<string name="auth_info_add_wallet_title">Add Wallet</string>
|
||||
<string name="auth_info_subtitle">Select a wallet to log in</string>
|
||||
<string name="auth_info_title">Welcome back!</string>
|
||||
<plurals name="auth_wallet_hardware_description">
|
||||
<item quantity="one">%d card</item>
|
||||
<item quantity="other">%d cards</item>
|
||||
</plurals>
|
||||
<string name="auth_wallet_mobile_description">Phone Wallet</string>
|
||||
<string name="backup_complete_description">You successfully backed up your wallet.</string>
|
||||
<string name="backup_complete_seed_description">These words can’t be recovered if lost. Make sure to keep it somewhere secure.</string>
|
||||
|
|
@ -426,6 +430,7 @@
|
|||
<string name="hw_activation_need_description">To complete setup, back up your wallet and secure app access with a Access Code.</string>
|
||||
<string name="hw_activation_need_finish">Finish Now</string>
|
||||
<string name="hw_activation_need_title">Finish Wallet Activation</string>
|
||||
<string name="hw_activation_need_warning_description">To complete setup, secure app access with Access Code.</string>
|
||||
<string name="hw_backup_google_drive_description">Recover an existing wallet stored in your Google Drive backup</string>
|
||||
<string name="hw_backup_google_drive_title">Google Drive Backup</string>
|
||||
<string name="hw_backup_need_action">Go to backup</string>
|
||||
|
|
@ -866,6 +871,7 @@
|
|||
<string name="send_date_format">%1$s, %2$s</string>
|
||||
<string name="send_destination_tag_field">Destination Tag</string>
|
||||
<string name="send_enter_address_field">Enter address</string>
|
||||
<string name="send_enter_address_field_ens">Enter ENS name or address</string>
|
||||
<string name="send_error_address_same_as_wallet">Address is the same as wallet address</string>
|
||||
<string name="send_error_dust_amount_format">Minimum amount is %s</string>
|
||||
<string name="send_error_dust_change_format">Minimum change is %s</string>
|
||||
|
|
@ -947,11 +953,15 @@
|
|||
<string name="send_validation_invalid_amount">Invalid amount</string>
|
||||
<string name="send_validation_invalid_fee">Fee exceeds balance</string>
|
||||
<string name="send_validation_invalid_total">Total amount exceeds balance</string>
|
||||
<string name="send_with_swap_change_token_alert_message">Are you sure you want to change the token? After changing, previous data will be reset.</string>
|
||||
<string name="send_with_swap_change_token_alert_title">Changing token</string>
|
||||
<string name="send_with_swap_confirm_title">Swap and send</string>
|
||||
<string name="send_with_swap_notification_text">Send any token, and we’ll convert it on the way. Your recipient gets exactly what they need—seamlessly.</string>
|
||||
<string name="send_with_swap_recipient_amount_success_title">Recipient will receive</string>
|
||||
<string name="send_with_swap_recipient_amount_text">Will be sent a recipient</string>
|
||||
<string name="send_with_swap_recipient_amount_title">Amount to receive</string>
|
||||
<string name="send_with_swap_remove_convert_alert_message">Are you sure you want to cancel the conversion? After changing, previous data will be reset.</string>
|
||||
<string name="send_with_swap_remove_convert_alert_title">Confirm cancelation</string>
|
||||
<string name="send_with_swap_title">Send with swap</string>
|
||||
<string name="sent_transaction_sent_title">Transaction sent</string>
|
||||
<string name="settings_card_settings_footer">Prepare to scan card or ring you want to set up.</string>
|
||||
|
|
@ -1497,6 +1507,8 @@
|
|||
<string name="wc_transaction_request">Transaction request</string>
|
||||
<string name="wc_transaction_request_title">Transaction request</string>
|
||||
<string name="wc_unlimited_amount">Unlimited Amount</string>
|
||||
<string name="wc_uri_already_used_description">Ensure that each pairing attempt uses a fresh and unique URI</string>
|
||||
<string name="wc_uri_already_used_title">URI already used</string>
|
||||
<string name="wc_wallet_connect">Wallet connect</string>
|
||||
<string name="welcome_interrupted_backup_alert_discard">Discard</string>
|
||||
<string name="welcome_interrupted_backup_alert_message">You have an interrupted backup. Do you want to resume?</string>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ internal class AlertsComponentV2(
|
|||
) : AppComponentContext by appComponentContext, ComposableBottomSheetComponent {
|
||||
|
||||
override fun dismiss() {
|
||||
messageUM.onDismissRequest()
|
||||
router.pop()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -115,8 +115,11 @@ internal class WcPairComponent(
|
|||
is Alert.Type.Verified -> WcAlertsFactory.createVerifiedDomainAlert(alertType.appName)
|
||||
is Alert.Type.UnknownDomain -> WcAlertsFactory.createUnknownDomainAlert(model::connectFromAlert)
|
||||
is Alert.Type.UnsafeDomain -> WcAlertsFactory.createUnsafeDomainAlert(model::connectFromAlert)
|
||||
is Alert.Type.UnsupportedDApp -> WcAlertsFactory.createUnsupportedDomainAlert(alertType.appName)
|
||||
is Alert.Type.UnsupportedNetwork -> WcAlertsFactory.createUnsupportedChainAlert(alertType.appName)
|
||||
is Alert.Type.UnsupportedDApp ->
|
||||
WcAlertsFactory.createUnsupportedDomainAlert(alertType.appName, model::errorAlertOnDismiss)
|
||||
is Alert.Type.UnsupportedNetwork ->
|
||||
WcAlertsFactory.createUnsupportedChainAlert(alertType.appName, model::errorAlertOnDismiss)
|
||||
is Alert.Type.UriAlreadyUsed -> WcAlertsFactory.createUriAlreadyUsedAlert(model::errorAlertOnDismiss)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -149,6 +149,10 @@ internal class WcPairModel @Inject constructor(
|
|||
connect()
|
||||
}
|
||||
|
||||
fun errorAlertOnDismiss() {
|
||||
router.pop()
|
||||
}
|
||||
|
||||
private fun onConnect(securityStatus: CheckDAppResult) {
|
||||
when (securityStatus) {
|
||||
CheckDAppResult.SAFE -> connect()
|
||||
|
|
@ -193,16 +197,23 @@ internal class WcPairModel @Inject constructor(
|
|||
}
|
||||
|
||||
private fun processError(error: WcPairError) {
|
||||
when (error) {
|
||||
val alert = when (error) {
|
||||
is WcPairError.UnsupportedDApp -> {
|
||||
WcAppInfoRoutes.Alert.Type.UnsupportedDApp(error.appName)
|
||||
}
|
||||
is WcPairError.UnsupportedBlockchains -> {
|
||||
WcAppInfoRoutes.Alert.Type.UnsupportedNetwork(error.appName)
|
||||
}
|
||||
else -> null
|
||||
}?.let { stackNavigation.pushNew(WcAppInfoRoutes.Alert(it)) }
|
||||
?: run { messageSender.send(ToastMessage(message = stringReference(error.message))) }
|
||||
is WcPairError.UriAlreadyUsed -> {
|
||||
WcAppInfoRoutes.Alert.Type.UriAlreadyUsed
|
||||
}
|
||||
else -> {
|
||||
messageSender.send(ToastMessage(message = stringReference(error.message)))
|
||||
router.pop()
|
||||
null
|
||||
}
|
||||
}
|
||||
alert?.let { stackNavigation.pushNew(WcAppInfoRoutes.Alert(it)) }
|
||||
}
|
||||
|
||||
override fun onWalletSelected(userWalletId: UserWalletId) {
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ internal sealed class WcAppInfoRoutes : TangemBottomSheetConfigContent, Route {
|
|||
data object UnsafeDomain : Type()
|
||||
data class UnsupportedDApp(val appName: String) : Type()
|
||||
data class UnsupportedNetwork(val appName: String) : Type()
|
||||
data object UriAlreadyUsed : Type()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -74,11 +74,11 @@ internal object WcAlertsFactory {
|
|||
}
|
||||
}
|
||||
|
||||
fun createUnsupportedDomainAlert(appName: String): MessageBottomSheetUMV2 {
|
||||
fun createUnsupportedDomainAlert(appName: String, onDismiss: () -> Unit): MessageBottomSheetUMV2 {
|
||||
return messageBottomSheetUM {
|
||||
infoBlock {
|
||||
icon(R.drawable.ic_wallet_connect_24) {
|
||||
type = MessageBottomSheetUMV2.Icon.Type.Informative
|
||||
type = Type.Informative
|
||||
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.SameAsTint
|
||||
}
|
||||
title = resourceReference(R.string.wc_alert_unsupported_dapps_title)
|
||||
|
|
@ -86,16 +86,34 @@ internal object WcAlertsFactory {
|
|||
}
|
||||
primaryButton {
|
||||
text = resourceReference(R.string.common_got_it)
|
||||
onClick { closeBs() }
|
||||
onClick { onDismiss() }
|
||||
}
|
||||
onDismissRequest = onDismiss
|
||||
}
|
||||
}
|
||||
|
||||
fun createUriAlreadyUsedAlert(onDismiss: () -> Unit): MessageBottomSheetUMV2 {
|
||||
return messageBottomSheetUM {
|
||||
infoBlock {
|
||||
icon(R.drawable.ic_wallet_connect_24) {
|
||||
type = Type.Informative
|
||||
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.SameAsTint
|
||||
}
|
||||
title = resourceReference(R.string.wc_uri_already_used_title)
|
||||
body = resourceReference(R.string.wc_uri_already_used_description)
|
||||
}
|
||||
primaryButton {
|
||||
text = resourceReference(R.string.common_got_it)
|
||||
onClick { onDismiss() }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun createUnsupportedChainAlert(appName: String): MessageBottomSheetUMV2 {
|
||||
fun createUnsupportedChainAlert(appName: String, onDismiss: () -> Unit): MessageBottomSheetUMV2 {
|
||||
return messageBottomSheetUM {
|
||||
infoBlock {
|
||||
icon(R.drawable.ic_network_new_24) {
|
||||
type = MessageBottomSheetUMV2.Icon.Type.Informative
|
||||
type = Type.Informative
|
||||
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.SameAsTint
|
||||
}
|
||||
title = resourceReference(R.string.wc_alert_unsupported_networks_title)
|
||||
|
|
@ -103,8 +121,9 @@ internal object WcAlertsFactory {
|
|||
}
|
||||
primaryButton {
|
||||
text = resourceReference(R.string.common_got_it)
|
||||
onClick { closeBs() }
|
||||
onClick { onDismiss() }
|
||||
}
|
||||
onDismissRequest = onDismiss
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -128,6 +147,7 @@ internal object WcAlertsFactory {
|
|||
text = resourceReference(R.string.balance_hidden_got_it_button)
|
||||
onClick { onDismiss() }
|
||||
}
|
||||
onDismissRequest = onDismiss
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue