diff --git a/common/ui/src/main/java/com/tangem/common/ui/amountScreen/ui/AmountBlockV2.kt b/common/ui/src/main/java/com/tangem/common/ui/amountScreen/ui/AmountBlockV2.kt
index b9fa864b84..ee080d579f 100644
--- a/common/ui/src/main/java/com/tangem/common/ui/amountScreen/ui/AmountBlockV2.kt
+++ b/common/ui/src/main/java/com/tangem/common/ui/amountScreen/ui/AmountBlockV2.kt
@@ -15,6 +15,7 @@ import androidx.compose.ui.tooling.preview.PreviewParameterProvider
import androidx.compose.ui.unit.dp
import com.tangem.common.ui.amountScreen.models.AmountState
import com.tangem.common.ui.amountScreen.preview.AmountStatePreviewData
+import com.tangem.core.ui.components.ResizableText
import com.tangem.core.ui.components.SpacerWMax
import com.tangem.core.ui.components.currency.icon.CurrencyIcon
import com.tangem.core.ui.components.currency.icon.CurrencyIconState
@@ -24,6 +25,7 @@ import com.tangem.core.ui.extensions.resolveReference
import com.tangem.core.ui.format.bigdecimal.crypto
import com.tangem.core.ui.format.bigdecimal.fiat
import com.tangem.core.ui.format.bigdecimal.format
+import com.tangem.core.ui.format.bigdecimal.uncapped
import com.tangem.core.ui.res.TangemTheme
import com.tangem.core.ui.res.TangemThemePreview
@@ -43,7 +45,7 @@ fun AmountBlockV2(
crypto(
symbol = "",
decimals = amount.cryptoAmount.decimals,
- )
+ ).uncapped()
}.orEmpty()
val fiatAmount = amount.fiatAmount.value.format {
@@ -102,7 +104,7 @@ private fun AmountBlockV2(
Row {
Text(
text = title.resolveReference(),
- style = TangemTheme.typography.body2,
+ style = TangemTheme.typography.subtitle2,
color = TangemTheme.colors.text.tertiary,
)
SpacerWMax()
@@ -121,18 +123,20 @@ private fun AmountBlockV2(
verticalArrangement = Arrangement.spacedBy(4.dp),
modifier = Modifier.padding(top = 8.dp),
) {
- Text(
+ ResizableText(
text = firstAmount,
style = TangemTheme.typography.h2,
color = TangemTheme.colors.text.primary1,
+ maxLines = 1,
)
Row(
horizontalArrangement = Arrangement.spacedBy(4.dp),
) {
- Text(
+ ResizableText(
text = secondAmount,
style = TangemTheme.typography.body2,
color = TangemTheme.colors.text.tertiary,
+ maxLines = 1,
)
extraContent()
}
diff --git a/core/res/src/main/res/values-de/strings.xml b/core/res/src/main/res/values-de/strings.xml
index aa10a37bfa..673c284024 100644
--- a/core/res/src/main/res/values-de/strings.xml
+++ b/core/res/src/main/res/values-de/strings.xml
@@ -1434,7 +1434,7 @@
Neue Verbindung
Verbinde Deine Wallet mit einer anderen dApp
Keine Sitzungen
- Diese Domain wird von mehreren Sicherheitsanbietern als unsicher eingestuft. Verlasse diese umgehend, um Dein Vermögen zu schützen.
+ Es wurden potenzielle Risiken oder bösartiges Verhalten erkannt. Das Verbinden oder Signieren von Transaktionen kann zum Verlust von Geldern führen.
Bekanntes Sicherheitsrisiko
Anfrage von
Art der Signatur
diff --git a/core/res/src/main/res/values-es/strings.xml b/core/res/src/main/res/values-es/strings.xml
index d075e7cd0c..40a09f5b5a 100644
--- a/core/res/src/main/res/values-es/strings.xml
+++ b/core/res/src/main/res/values-es/strings.xml
@@ -1308,16 +1308,27 @@
Se requiere línea de confianza
Dominio malicioso
Dominio desconocido
+ Conectarse de todas formas
+ Error de tiempo de espera. Por favor, inténtalo de nuevo más tarde.
+ Error al establecer WalletConnect
Este dominio no puede ser verificado. Compruebe cuidadosamente la solicitud de aprobación.
Vuelva a su navegador y vuelva a conectarse a través de WalletConnect.
+ La sesión de Wallet Connect se desconectó
Firmar de todos modos
Código de error: %s. Si el problema persiste - no dude en ponerse en contacto con nuestro soporte.
Si el problema persiste, no dudes en ponerte en contacto con nuestro soporte.
+ Hemos encontrado un error desconocido
+ Tangem Wallet actualmente no es compatible con %s.
+ dApp no compatible
Código de error: 8 005. Si el problema persiste, no dudes en contactar con nuestro soporte.
Hemos encontrado un error desconocido
Actualmente, Tangem no es compatible con una red requerida por %s.
+ Redes no compatibles
Tangem soporta una red requerida por %s
+ Dominio verificado
Se seleccionó una tarjeta o un anillo incorrectos en la app
+ Tenemos algún tipo de problema
+ Todas las dApps desconectadas
Permitir gastar
Dirección
Conectar
@@ -1326,30 +1337,52 @@
Redes
Ilimitado
Billetera
+ Aplicación conectada
Redes conectadas
+ Conectado a %1$s
Ver el saldo y la actividad de su billetera
Firmar transacciones sin previo aviso
Solicitar aprobación para transacciones
No podrá
Me gustaría
Solicitud de conexión
+ Conexiones
Contenido
Copiar datos
Asignación personalizada
+ dApp desconectada
+ Desconectar todo
+ Texto sobre desconexión de todas las dApps
+ Desconectar todas las dApps
Cambios estimados en la billetera
La transacción no ha podido ser simulada. Por favor, proceda con precaución.
+ La estimación no es compatible con %s
+ Sugerido por %s
+ Recargue su saldo para cubrir la tarifa de red
+ Insuficiente %1$s
Transacción maliciosa
Añada la red %s a su perfil para esta billetera
La billetera no tiene las redes requeridas
- Este dominio está marcado como no seguro por varios proveedores de seguridad. Salga de inmediato para proteger sus activos
+ Nueva conexión
+ Conecta tu billetera a diferentes dApps
+ Sin sesiones
+ No se han detectado cambios en la cartera
+ Se han detectado riesgos potenciales o comportamiento malicioso. Conectarse o firmar transacciones puede resultar en la pérdida de fondos.
Riesgo de seguridad conocido
Solicitud de
+ Firmar de todos modos
Tipo de firma
+ Se requiere al menos una red para la conexión dApp
+ Especificar las redes seleccionadas
+ Firmado correctamente
A
Solicitud de transacción
Solicitud de transacción
Cantidad ilimitada
+ Asegúrese de que cada intento de emparejamiento utiliza un URI nuevo y único
+ URI ya utilizado
Wallet connect
+ Transacción sospechosa
Ignorar
Tiene un backup interrumpido. ¿Quiere reanudarlo?
Sí, reanudar
diff --git a/core/res/src/main/res/values-fr/strings.xml b/core/res/src/main/res/values-fr/strings.xml
index a4140af715..bbf154df4e 100644
--- a/core/res/src/main/res/values-fr/strings.xml
+++ b/core/res/src/main/res/values-fr/strings.xml
@@ -1320,6 +1320,7 @@
Adresse
Chargement
Illimité
+ Réseaux connectés
Connexions
Contenu
Copier les données
@@ -1332,6 +1333,7 @@
Nouvelle connexion
Connectez votre portefeuille à différentes dApps
Aucune séance
+ Des risques potentiels ou un comportement malveillant ont été détectés. Se connecter ou signer des transactions peut entraîner une perte de fonds.
Demande de
Type de signature
À
diff --git a/core/res/src/main/res/values-ja/strings.xml b/core/res/src/main/res/values-ja/strings.xml
index a785951f19..a598944ae0 100644
--- a/core/res/src/main/res/values-ja/strings.xml
+++ b/core/res/src/main/res/values-ja/strings.xml
@@ -58,12 +58,16 @@
%1$s ネットワークのトークンは、ファームウェアの制限により、このカードまたはリングではサポートされていません。
カードまたはリングのスキャンに問題がありますか?
このカードはこのアプリでは使用できません。
+ %1$sを使用すると、ウォレットのロックを迅速かつ安全に解除できます。また、取引の署名など、機密性の高い操作も承認できます。ハードウェアウォレットの場合は、署名にカードが必要です。
デフォルト手数料
デフォルト手数料を有効にすると、取引手数料が自動的に設定され、送金時に手数料ページを表示する必要がなくなります。必要に応じて、いつでもこのページに戻ることができます。
設定に移動して、Tangemアプリで生体認証を有効にします。
生体認証を有効にする
+ %1$sが無効になると、アプリのロックを解除してウォレットを操作するために、パスコードを入力する必要があります。
これにより、保存されているウォレットアクセスコードがすべて削除されます。ウォレットでの今後の操作には、アクセスコードの送信が必要になります。
保存したデバイスを削除すると、保存されているすべてのウォレットとそのアクセスコードがアプリから削除されます。
+ アクセスコードを要求する
+ このオプションを選択すると、機密性の高い操作における生体認証が無効になります。取引の署名時などには、毎回アクセスコードの入力が必要になります。
アクセスコードを保存
カードまたはリングとのやり取りには、アクセスコードの代わりに生体認証が要求されます。
ウォレットをアプリに保存する
@@ -89,6 +93,7 @@
これらの%s個の単語をパスワードマネージャーなどの安全な場所に保存し、決して他の人と共有しないでください。
復元は不可能です
リカバリーフレーズ
+ これらの単語は、絶対に誰にも共有しないでください。もし他人がこの単語を知れば、あなたの暗号資産をすべて盗むことができます。Tangemがこれらの単語を尋ねることはありません。以下の%s単語はウォレットの復元フレーズです。これらのフレーズを使用すると、デバイスを紛失した場合でもウォレットを復元できます。
これらの%s語を順番に書き留めて、安全かつプライベートに保管してください。
ウォレットと、リカバリーフレーズのセキュリティとバックアップの全責任は、Tangemではなくユーザーにあります。
リカバリーフレーズ
@@ -182,6 +187,7 @@
- 日
削除
+ 無効にする
無効
切断
完了
@@ -236,6 +242,7 @@
拒否
リロード
名前を変更
+ 必須
保存
変更内容を保存
検索
@@ -332,6 +339,7 @@
詳細
インターネット接続を確認するか、別のネットワークに切り替えてください。
利用規約
+ 資金を受け取る
他のネットワークで資産を送金すると、永久に失われます。
%sネットワーク
下記のみを使用して資金を送金する
@@ -392,6 +400,7 @@
プロバイダー
ベストレート
FCA警告リスト
+ FCA警告リストに掲載されたプロバイダー
最大 %s まで使用可能
%s 以上で利用可能
このペアは利用できません
@@ -443,6 +452,9 @@
セットアップを完了するには、ウォレットをバックアップし、アクセスコードを使用してアプリへのアクセスを保護します。
今すぐ実施
ウォレットのアクティベーションを完了する
+ セットアップを完了するには、アクセスコードを使用してアプリへのアクセスを保護します。
+ そうした場合は、最初からやり直す必要があります。
+ アクティベーションプロセスを終了してもよろしいですか?
Googleドライブのバックアップに保存されている既存のウォレットを復元する
Googleドライブのバックアップ
バックアップへ移動
@@ -456,6 +468,7 @@
最新の機能とニュースをお届けします
シードフレーズのバックアップ
モバイルウォレットを作成する
+ モバイルウォレット
この情報はAIで生成されました。 \nエラーが見つかった場合は、ここをタップしてください。
アクセスコードを変更するには、上図のようにカードまたはリングをタップし、操作が終了するまで取り外さないでください。
パスコードを変更するには、上記のようにカードをタップし、操作が終了するまで取り外さないでください。
@@ -1302,9 +1315,11 @@
Tangemウォレットを見る
このウォレットを保護するためのシークレットコードです。ログインと署名に使用されます。
アクセスコードの設定 / 変更
+ アクセスコードの変更
ウォレットの受信取引とTangemの更新について通知を受け取る。
現在、Huaweiデバイスではプッシュ通知が機能しない可能性があります。現在、解決策の検討に取り組んでおり、今後のアップデートで修正をリリースする予定です。ご理解のほどよろしくお願いいたします。
取引通知
+ アクセスコードを設定する
ウォレット設定
Tangem
%sを使用するか、カード / リングをスキャンしてウォレットにアクセスしてください
@@ -1406,7 +1421,7 @@
WalletConnectを確立できませんでした
このドメインは検証できません。承認前にリクエスト内容をよく確認してください。
ブラウザに戻り、WalletConnect経由で再接続してください。
- WalletConnectセッションが接続解除されました
+ Wallet Connectセッションが接続解除されました
とにかくサインする
エラーコード: %s 。問題が解決しない場合は、お気軽にサポートまでお問い合わせください。
問題が解決しない場合は、お気軽にサポートまでお問い合わせください。
@@ -1416,11 +1431,12 @@
エラーコード: 8 005。問題が解決しない場合は、お気軽にサポートまでお問い合わせください。
不明なエラーが発生しました
Tangemは現在%sで必要なネットワークをサポートしていません。
- サポートされていないネットワーク
+ 未対応のネットワーク
Tangemは%sで必要なネットワークをサポートします
検証済みドメイン
アプリで間違ったカードまたはリングが選択されました
問題が起きています
+ すべてのdAppが接続解除されました
使用を許可する
アドレス
接続する
@@ -1431,6 +1447,7 @@
ウォレット
接続されたアプリ
接続されたネットワーク
+ %1$sへ接続済み
ウォレットの残高とアクティビティを表示する
通知なしに取引に署名する
取引の承認をリクエストする
@@ -1441,6 +1458,7 @@
内容
データをコピー
使用可能量の設定
+ dAppが接続解除されました
すべての接続を解除する
すべてのdAppsの接続解除に関するテキスト
すべてのdAppを接続解除する
@@ -1448,20 +1466,23 @@
取引をシミュレーションできませんでした。注意して続行してください。
%sでは見積もりはサポートされていません
%sによる提案
+ ネットワーク手数料をカバーするために残高を補充してください
+ %1$sが不足しています
悪意のある取引
このウォレットのポートフォリオに%sネットワークを追加します
ウォレットに必要なネットワークはありません
新しい接続
- ウォレットを別のdAppに接続する
+ ウォレットをさまざまなdAppに接続する
セッションなし
ウォレットの変更は検出されませんでした
- このドメインは複数のセキュリティプロバイダーから安全でないとの警告を受けています。あなたの資産を守るため、直ちにアクセスを中止してください。
+ 潜在的なリスクまたは悪意のある行為が検出されました。接続または取引への署名は資金の損失につながる可能性があります。
既知のセキュリティリスク
リクエスト元
- とにかく送金
+ とにかく署名する
署名タイプ
dApp接続には、少なくとも1つのネットワークが必要です
選択したネットワークを指定する
+ 署名に成功しました
宛先
取引リクエスト
取引リクエスト
diff --git a/core/res/src/main/res/values-ru/strings.xml b/core/res/src/main/res/values-ru/strings.xml
index 68950a67cc..10a53f974e 100644
--- a/core/res/src/main/res/values-ru/strings.xml
+++ b/core/res/src/main/res/values-ru/strings.xml
@@ -1304,15 +1304,18 @@
Верифицированный домен
Выбрана не верная карта или кольцо
Похоже, возникла проблема
+ Все dapps отключены
Разрешение на использование
Адрес
Подключение
Загрузка
Сеть
Сети
- Безлимитно
+ Без лимитно
Кошелек
+ Подключенное приложение
Подключенные сети
+ Подключено к %1$s
Посмотреть баланс кошелька и его активность
Подписать транзакцию без вашего участия
Запрос разрешения на транзакцию
@@ -1323,25 +1326,38 @@
Вложение
Копировать данные
Настраиваемый лимит
+ dApp отключен
Отключить все
Отключить все dApp
Предварительные изменения
Не удалось выполнить симуляцию транзакции. Пожалуйста, действуйте с осторожностью.
+ Оценка не поддерживается для %s
+ Предложено %s
+ Пополните ваш баланс, чтобы покрыть комиссию сети
+ Недостаточно %1$s
Вредоносная транзакция
Добавьте сеть %s в ваш портфель для выбранного кошелька
В кошельке не добавлены необходимые сети
Новое подключение
Подключите свой кошелек к различным dApp
Нет подключений
- Этот домен помечен как небезопасный несколькими поставщиками систем безопасности. Немедленно покиньте его, чтобы защитить свои активы.
+ Изменения в кошельке не обнаружены.
+ Обнаружены потенциальные риски или вредоносное поведение. Подключение или подписание транзакций может привести к потере средств.
Известный риск безопасности
Запрос от
+ Подписать всё равно
Тип подписи
+ Для подключения к dApp требуется как минимум одна выбранная сеть.
+ Укажите выбранные сети
+ Успешно подписано
На
Запрос транзакции
Запрос транзакции
Безлимитное количество
+ Убедитесь, что каждая попытка сопряжения использует новый и уникальный URI.
+ URI уже используется
Подключение кошелька
+ Подозрительная транзакция
Отказаться
Вы не закончили резервное копирование. Хотите продолжить?
Да, возобновить
diff --git a/core/res/src/main/res/values-uk-rUA/strings.xml b/core/res/src/main/res/values-uk-rUA/strings.xml
index bc736e28ba..9c820fac97 100644
--- a/core/res/src/main/res/values-uk-rUA/strings.xml
+++ b/core/res/src/main/res/values-uk-rUA/strings.xml
@@ -1286,10 +1286,12 @@
Обрана не вірна картка або кільце
Адреса
Підключення
+ Підключені мережі
Переглянути баланс гаманця та активність
Запит на підключення
Вміст
Копіювати дані
+ Виявлено потенційні ризики або шкідливу активність. Підключення чи підпис транзакцій можуть призвести до втрати коштів.
Запит від
Тип підпису
До
diff --git a/core/res/src/main/res/values/strings.xml b/core/res/src/main/res/values/strings.xml
index 37c1670198..62f1640aa6 100644
--- a/core/res/src/main/res/values/strings.xml
+++ b/core/res/src/main/res/values/strings.xml
@@ -12,6 +12,10 @@
Set a %s-digit Access Code to unlock your wallet.
Create Access Code
Access code
+ Archive account
+ Archive
+ You are archiving this account, but you can always get it back.
+ Account
Add account
Save
Account name
@@ -58,12 +62,16 @@
Tokens in %1$s network are not supported by this card or ring due to firmware limitation.
Are you having difficulty scanning your card or ring?
This card is not designed to work with this app
+ Use %1$s to quickly and securely unlock your wallet and authorize all sensitive actions, such as signing transactions. For hardware wallets, you will still need a card to sign.
Default Fee
Enable Default Fee to set transaction fees automatically and skip the Fee page when sending funds. You can always go back to this page if necessary.
Go to settings to enable biometric authentication in the Tangem App
Enable biometric authentication
+ Disabling %1$s will require you to enter your passcode to unlock the app and to interact with your wallet.
This will delete all the saved wallet access codes. Any further operation with the wallet will require submitting the access code.
Removing the saved devices deletes all the saved wallets and their access codes from the app.
+ Require Access Code
+ This option disables biometric authentication for sensitive actions. You will be required to enter your access code every time, such as when signing a transaction.
Save Access Code
Biometric authentication will be requested instead of the access code for interactions with your card or ring.
Keep the wallet in the app
@@ -188,6 +196,7 @@
- days
Delete
+ Disable
Disabled
Disconnect
Done
@@ -227,6 +236,7 @@
No
No address
Not Added
+ Not Now
Now
OK
Open in Browser
@@ -340,6 +350,7 @@
Details
Check your internet connection or switch to a different network
Terms of service
+ Receive assets
Sending assets in other networks will result in permanent loss.
%s network
Send funds using only
@@ -455,6 +466,7 @@
To complete setup, secure app access with Access Code.
If you do, you\'ll need to start over.
Are you sure you want to exit the activation process?
+ If you do, you\'ll need to start over.
Recover an existing wallet stored in your Google Drive backup
Google Drive Backup
Go to backup
@@ -977,12 +989,14 @@
Are you sure you want to change the token? After changing, previous data will be reset.
Changing token
Swap and send
+ Proceed with conversion? Previous data will be reset.
+ Confirm Convert
Send any token, and we’ll convert it on the way. Your recipient gets exactly what they need—seamlessly.
Recipient will receive
Will be sent a recipient
Amount to receive
Are you sure you want to cancel the conversion? After changing, previous data will be reset.
- Confirm cancelation
+ Confirm cancellation
Send with swap
Transaction sent
Prepare to scan card or ring you want to set up.
@@ -1479,7 +1493,7 @@
Failed to establish WalletConnect
This domain cannot be verified. Check the request carefully approving.
Please return to your browser and reconnect via WalletConnect.
- WalletConnect session was disconnected
+ Wallet Connect session was disconnected
Sign anyway
Error code: %s. If the problem persists — feel free to contact our support.
If the problem persists — feel free to contact our support.
@@ -1489,7 +1503,7 @@
Error code: 8 005. If the problem persists — feel free to contact our support.
We\'ve encountered unknown error
Tangem does not currently support a required network by %s.
- Unsuported networks
+ Unsupported networks
Tangem support a required network by %s
Verified domain
Wrong card or ring selected in the App
@@ -1530,17 +1544,18 @@
Add the %s network to your portfolio for this wallet
The wallet has no required networks
New connection
- Connect your wallet to a different dApps
+ Connect your wallet to different dApps
No sessions
No wallet changes detected
- This domain is flagged as unsafe by multiple security providers. Leave immediately to protect your assets
+ Potential risks or malicious behavior have been detected. Connecting or signing transactions may lead to loss of funds.
Known security risk
Request from
- Send anyway
+ Sign anyway
Signature Type
At least one network is required for dApp connection
Specify selected networks
Successfully signed
+ Wallet connect
To
Transaction request
Transaction request
diff --git a/features/manage-tokens/impl/src/main/kotlin/com/tangem/features/managetokens/choosetoken/DefaultChooseManagedTokensComponent.kt b/features/manage-tokens/impl/src/main/kotlin/com/tangem/features/managetokens/choosetoken/DefaultChooseManagedTokensComponent.kt
index 1ff16dac71..7b18b4dc84 100644
--- a/features/manage-tokens/impl/src/main/kotlin/com/tangem/features/managetokens/choosetoken/DefaultChooseManagedTokensComponent.kt
+++ b/features/manage-tokens/impl/src/main/kotlin/com/tangem/features/managetokens/choosetoken/DefaultChooseManagedTokensComponent.kt
@@ -72,6 +72,7 @@ internal class DefaultChooseManagedTokensComponent @AssistedInject constructor(
cryptoCurrency = cryptoCurrency,
shouldResetNavigation = params.selectedCurrency != null,
)
+ model.bottomSheetNavigation.dismiss()
params.callback?.onResult() ?: router.pop()
}
},
diff --git a/features/send-v2/impl/src/main/java/com/tangem/features/send/v2/subcomponents/amount/model/SendAmountAlertFactory.kt b/features/send-v2/impl/src/main/java/com/tangem/features/send/v2/subcomponents/amount/model/SendAmountAlertFactory.kt
index dadd0ea67c..f4373fe4b9 100644
--- a/features/send-v2/impl/src/main/java/com/tangem/features/send/v2/subcomponents/amount/model/SendAmountAlertFactory.kt
+++ b/features/send-v2/impl/src/main/java/com/tangem/features/send/v2/subcomponents/amount/model/SendAmountAlertFactory.kt
@@ -2,9 +2,10 @@ package com.tangem.features.send.v2.subcomponents.amount.model
import com.tangem.core.decompose.di.ModelScoped
import com.tangem.core.decompose.ui.UiMessageSender
-import com.tangem.core.ui.extensions.stringReference
+import com.tangem.core.ui.extensions.resourceReference
import com.tangem.core.ui.message.DialogMessage
import com.tangem.core.ui.message.EventMessageAction
+import com.tangem.features.send.v2.impl.R
import javax.inject.Inject
@ModelScoped
@@ -13,20 +14,19 @@ internal class SendAmountAlertFactory @Inject constructor(
) {
fun showResetSendingAlert(onConfirm: () -> Unit) {
- // todo fix localization [REDACTED_TASK_KEY]
uiMessageSender.send(
DialogMessage(
- title = stringReference("Confirm Convert"),
- message = stringReference("Proceed with conversion? Previous data will be reset."),
+ title = resourceReference(R.string.send_with_swap_convert_token_alert_title),
+ message = resourceReference(R.string.send_with_swap_convert_token_alert_message),
firstActionBuilder = {
EventMessageAction(
- title = stringReference("Confirm"),
+ title = resourceReference(R.string.common_confirm),
onClick = onConfirm,
)
},
secondActionBuilder = {
EventMessageAction(
- title = stringReference("Not Now"),
+ title = resourceReference(R.string.common_not_now),
onClick = onDismissRequest,
)
},
diff --git a/features/send-v2/impl/src/main/java/com/tangem/features/send/v2/subcomponents/destination/ui/DestinationBlock.kt b/features/send-v2/impl/src/main/java/com/tangem/features/send/v2/subcomponents/destination/ui/DestinationBlock.kt
index 5cdfd469ac..cea354ba6e 100644
--- a/features/send-v2/impl/src/main/java/com/tangem/features/send/v2/subcomponents/destination/ui/DestinationBlock.kt
+++ b/features/send-v2/impl/src/main/java/com/tangem/features/send/v2/subcomponents/destination/ui/DestinationBlock.kt
@@ -18,6 +18,7 @@ import androidx.compose.ui.tooling.preview.PreviewParameterProvider
import com.tangem.core.ui.components.icons.identicon.IdentIcon
import com.tangem.core.ui.extensions.TextReference
import com.tangem.core.ui.extensions.resolveReference
+import com.tangem.core.ui.extensions.resourceReference
import com.tangem.core.ui.extensions.stringResourceSafe
import com.tangem.core.ui.res.TangemTheme
import com.tangem.core.ui.res.TangemThemePreview
@@ -62,7 +63,7 @@ private fun AddressBlock(address: DestinationTextFieldUM.RecipientAddress) {
Text(
text = address.label.resolveReference(),
style = TangemTheme.typography.subtitle2,
- color = TangemTheme.colors.text.secondary,
+ color = TangemTheme.colors.text.tertiary,
)
Row(
verticalAlignment = Alignment.CenterVertically,
@@ -104,7 +105,7 @@ private fun MemoBlock(memo: DestinationTextFieldUM.RecipientMemo?) {
Text(
text = memo.label.resolveReference(),
style = TangemTheme.typography.subtitle2,
- color = TangemTheme.colors.text.secondary,
+ color = TangemTheme.colors.text.tertiary,
)
Text(
text = memo.value,
@@ -121,7 +122,7 @@ private fun AddressWithMemoBlock(
memo: DestinationTextFieldUM.RecipientMemo?,
) {
Text(
- text = stringResourceSafe(R.string.send_to_address),
+ text = stringResourceSafe(R.string.send_recipient),
style = TangemTheme.typography.subtitle2,
color = TangemTheme.colors.text.tertiary,
)
@@ -188,7 +189,7 @@ private class DestinationBlockPreviewProvider : PreviewParameterProvider Unit) {
- // todo fix localization [REDACTED_TASK_KEY]
uiMessageSender.send(
DialogMessage(
- title = stringReference("Confirm cancellation"),
- message = stringReference(
- "Are you sure you want to cancel the conversion? After changing, previous data will be reset.",
- ),
+ title = resourceReference(R.string.send_with_swap_remove_convert_alert_title),
+ message = resourceReference(R.string.send_with_swap_remove_convert_alert_message),
firstActionBuilder = {
EventMessageAction(
- title = stringReference("Confirm"),
+ title = resourceReference(R.string.common_confirm),
onClick = onConfirm,
)
},
secondActionBuilder = {
EventMessageAction(
- title = stringReference("Not Now"),
+ title = resourceReference(R.string.common_not_now),
onClick = onDismissRequest,
)
},
diff --git a/features/swap-v2/impl/src/main/java/com/tangem/features/swap/v2/impl/amount/model/SwapAmountModel.kt b/features/swap-v2/impl/src/main/java/com/tangem/features/swap/v2/impl/amount/model/SwapAmountModel.kt
index 5973ba9c7d..fb4748b307 100644
--- a/features/swap-v2/impl/src/main/java/com/tangem/features/swap/v2/impl/amount/model/SwapAmountModel.kt
+++ b/features/swap-v2/impl/src/main/java/com/tangem/features/swap/v2/impl/amount/model/SwapAmountModel.kt
@@ -661,7 +661,7 @@ internal class SwapAmountModel @Inject constructor(
).onEach { (state, route) ->
params.callback.onNavigationResult(
NavigationUM.Content(
- title = resourceReference(R.string.common_swap),
+ title = resourceReference(R.string.common_amount),
subtitle = null,
backIconRes = if (route.isEditMode) {
R.drawable.ic_back_24
diff --git a/features/swap-v2/impl/src/main/java/com/tangem/features/swap/v2/impl/choosetoken/fromSupported/model/SwapChooseTokenAlertFactory.kt b/features/swap-v2/impl/src/main/java/com/tangem/features/swap/v2/impl/choosetoken/fromSupported/model/SwapChooseTokenAlertFactory.kt
index 70433b8957..c7605a26cc 100644
--- a/features/swap-v2/impl/src/main/java/com/tangem/features/swap/v2/impl/choosetoken/fromSupported/model/SwapChooseTokenAlertFactory.kt
+++ b/features/swap-v2/impl/src/main/java/com/tangem/features/swap/v2/impl/choosetoken/fromSupported/model/SwapChooseTokenAlertFactory.kt
@@ -3,7 +3,6 @@ package com.tangem.features.swap.v2.impl.choosetoken.fromSupported.model
import com.tangem.core.decompose.di.ModelScoped
import com.tangem.core.decompose.ui.UiMessageSender
import com.tangem.core.ui.extensions.resourceReference
-import com.tangem.core.ui.extensions.stringReference
import com.tangem.core.ui.message.DialogMessage
import com.tangem.core.ui.message.EventMessageAction
import com.tangem.features.swap.v2.impl.R
@@ -26,22 +25,19 @@ internal class SwapChooseTokenAlertFactory @Inject constructor(
}
fun showChangeTokenAlert(onConfirm: () -> Unit, onDismiss: () -> Unit) {
- // todo fix localization [REDACTED_TASK_KEY]
uiMessageSender.send(
DialogMessage(
- title = stringReference("Changing token"),
- message = stringReference(
- "Are you sure you want to change the token? After changing, previous data will be reset.",
- ),
+ title = resourceReference(R.string.send_with_swap_change_token_alert_title),
+ message = resourceReference(R.string.send_with_swap_change_token_alert_message),
firstActionBuilder = {
EventMessageAction(
- title = stringReference("Change"),
+ title = resourceReference(R.string.common_change),
onClick = onConfirm,
)
},
secondActionBuilder = {
EventMessageAction(
- title = stringReference("Cancel"),
+ title = resourceReference(R.string.common_cancel),
onClick = onDismiss,
)
},
diff --git a/features/swap-v2/impl/src/main/java/com/tangem/features/swap/v2/impl/sendviaswap/success/ui/SendWithSwapSuccessContent.kt b/features/swap-v2/impl/src/main/java/com/tangem/features/swap/v2/impl/sendviaswap/success/ui/SendWithSwapSuccessContent.kt
index e730666446..2ad404315d 100644
--- a/features/swap-v2/impl/src/main/java/com/tangem/features/swap/v2/impl/sendviaswap/success/ui/SendWithSwapSuccessContent.kt
+++ b/features/swap-v2/impl/src/main/java/com/tangem/features/swap/v2/impl/sendviaswap/success/ui/SendWithSwapSuccessContent.kt
@@ -125,9 +125,12 @@ internal fun SendWithSwapSuccessContent(sendWithSwapUM: SendWithSwapUM) {
),
),
)
- .padding(top = 24.dp)
- .padding(horizontal = 16.dp),
-
+ .padding(
+ top = 24.dp,
+ bottom = 12.dp,
+ start = 16.dp,
+ end = 16.dp,
+ ),
)
}
}