From ed4c495d1ac8d86ade34979d4135e26770f12ed1 Mon Sep 17 00:00:00 2001 From: Andrey Chukavin Date: Tue, 25 Oct 2022 18:08:59 +0500 Subject: [PATCH] IOS-2393 IOS-2211 Added backup service localisation --- .../Common/Localization/de.lproj/Localizable.strings | 3 +++ .../Common/Localization/en.lproj/Localizable.strings | 3 +++ .../Common/Localization/fr.lproj/Localizable.strings | 3 +++ .../Common/Localization/it.lproj/Localizable.strings | 3 +++ .../Common/Localization/ru.lproj/Localizable.strings | 3 +++ .../TangemSdk/Operations/ResetCode/ResetPinService.swift | 6 +++--- 6 files changed, 18 insertions(+), 3 deletions(-) diff --git a/TangemSdk/TangemSdk/Common/Localization/de.lproj/Localizable.strings b/TangemSdk/TangemSdk/Common/Localization/de.lproj/Localizable.strings index 65f5d942b..a94ab26c8 100644 --- a/TangemSdk/TangemSdk/Common/Localization/de.lproj/Localizable.strings +++ b/TangemSdk/TangemSdk/Common/Localization/de.lproj/Localizable.strings @@ -53,6 +53,9 @@ "attestation_online_failed_title" = "Online attestation failed"; "attestation_online_failed_body" = "We cannot finish card's online attestation at this time. You can continue at your own risk and try again later, retry now or cancel the operation"; "attestation_warning_attest_wallets" = "Too many runs of Attest Wallet or Sign looks suspicious."; +"reset_codes_scan_first_card" = "Scan the card on which you want to reset the pin"; +"reset_codes_scan_confirmation_card" = "Scan another linked card"; +"reset_codes_scan_to_reset" = "Scan card to reset user codes"; "reset_codes_message_title_restore" = "Tap the card you want to restore"; "reset_codes_message_body_restore" = "First, prepare the card for restore process"; "reset_codes_message_title_backup" = "Tap a backup card"; diff --git a/TangemSdk/TangemSdk/Common/Localization/en.lproj/Localizable.strings b/TangemSdk/TangemSdk/Common/Localization/en.lproj/Localizable.strings index 92785fe1e..d4e0a9aeb 100644 --- a/TangemSdk/TangemSdk/Common/Localization/en.lproj/Localizable.strings +++ b/TangemSdk/TangemSdk/Common/Localization/en.lproj/Localizable.strings @@ -53,6 +53,9 @@ "attestation_online_failed_title" = "Online attestation failed"; "attestation_online_failed_body" = "We cannot finish card's online attestation at this time. You can continue at your own risk and try again later, retry now or cancel the operation"; "attestation_warning_attest_wallets" = "Too many runs of Attest Wallet or Sign looks suspicious."; +"reset_codes_scan_first_card" = "Scan the card on which you want to reset the pin"; +"reset_codes_scan_confirmation_card" = "Scan another linked card"; +"reset_codes_scan_to_reset" = "Scan card to reset user codes"; "reset_codes_message_title_restore" = "Tap the card you want to restore"; "reset_codes_message_body_restore" = "First, prepare the card for restore process"; "reset_codes_message_title_backup" = "Tap a backup card"; diff --git a/TangemSdk/TangemSdk/Common/Localization/fr.lproj/Localizable.strings b/TangemSdk/TangemSdk/Common/Localization/fr.lproj/Localizable.strings index 9c15806da..25573fb82 100644 --- a/TangemSdk/TangemSdk/Common/Localization/fr.lproj/Localizable.strings +++ b/TangemSdk/TangemSdk/Common/Localization/fr.lproj/Localizable.strings @@ -53,6 +53,9 @@ "attestation_online_failed_title" = "Online attestation failed"; "attestation_online_failed_body" = "We cannot finish card's online attestation at this time. You can continue at your own risk and try again later, retry now or cancel the operation"; "attestation_warning_attest_wallets" = "Too many runs of Attest Wallet or Sign looks suspicious."; +"reset_codes_scan_first_card" = "Scan the card on which you want to reset the pin"; +"reset_codes_scan_confirmation_card" = "Scan another linked card"; +"reset_codes_scan_to_reset" = "Scan card to reset user codes"; "reset_codes_message_title_restore" = "Tap the card you want to restore"; "reset_codes_message_body_restore" = "First, prepare the card for restore process"; "reset_codes_message_title_backup" = "Tap a backup card"; diff --git a/TangemSdk/TangemSdk/Common/Localization/it.lproj/Localizable.strings b/TangemSdk/TangemSdk/Common/Localization/it.lproj/Localizable.strings index e55b9322d..668e72667 100644 --- a/TangemSdk/TangemSdk/Common/Localization/it.lproj/Localizable.strings +++ b/TangemSdk/TangemSdk/Common/Localization/it.lproj/Localizable.strings @@ -53,6 +53,9 @@ "attestation_online_failed_title" = "Online attestation failed"; "attestation_online_failed_body" = "We cannot finish card's online attestation at this time. You can continue at your own risk and try again later, retry now or cancel the operation"; "attestation_warning_attest_wallets" = "Too many runs of Attest Wallet or Sign looks suspicious."; +"reset_codes_scan_first_card" = "Scan the card on which you want to reset the pin"; +"reset_codes_scan_confirmation_card" = "Scan another linked card"; +"reset_codes_scan_to_reset" = "Scan card to reset user codes"; "reset_codes_message_title_restore" = "Tap the card you want to restore"; "reset_codes_message_body_restore" = "First, prepare the card for restore process"; "reset_codes_message_title_backup" = "Tap a backup card"; diff --git a/TangemSdk/TangemSdk/Common/Localization/ru.lproj/Localizable.strings b/TangemSdk/TangemSdk/Common/Localization/ru.lproj/Localizable.strings index acc3d544c..f0fdd9d25 100644 --- a/TangemSdk/TangemSdk/Common/Localization/ru.lproj/Localizable.strings +++ b/TangemSdk/TangemSdk/Common/Localization/ru.lproj/Localizable.strings @@ -53,6 +53,9 @@ "attestation_online_failed_title" = "Онлайн-аттестация не удалась"; "attestation_online_failed_body" = "В настоящее время мы не можем завершить онлайн-аттестацию карты. Вы можете продолжить на свой страх и риск и повторить попытку позже, повторить сейчас или отменить операцию."; "attestation_warning_attest_wallets" = "Слишком большое количество вызовов Attest Wallet или Sign выглядит подозрительно."; +"reset_codes_scan_first_card" = "Отсканируйте карту, на которой вы хотите сбросить пин-код"; +"reset_codes_scan_confirmation_card" = "Отсканируйте другую привязанную карту"; +"reset_codes_scan_to_reset" = "Отсканируйте карту для сброса кода"; "reset_codes_message_title_restore" = "Отсканируйте карту, которую хотите восстановить"; "reset_codes_message_body_restore" = "Сначала подготовьте карту к процессу восстановления"; "reset_codes_message_title_backup" = "Приложите резервную карту"; diff --git a/TangemSdk/TangemSdk/Operations/ResetCode/ResetPinService.swift b/TangemSdk/TangemSdk/Operations/ResetCode/ResetPinService.swift index f837bf22e..c5ef85ec3 100644 --- a/TangemSdk/TangemSdk/Operations/ResetCode/ResetPinService.swift +++ b/TangemSdk/TangemSdk/Operations/ResetCode/ResetPinService.swift @@ -93,7 +93,7 @@ public class ResetPinService: ObservableObject { private func scanResetPinCard(resetCardId: String?, _ completion: @escaping CompletionResult) { self.session = TangemSdk().makeSession(with: config, cardId: resetCardId, - initialMessage: Message(header: "Scan the card on which you want to reset the pin")) + initialMessage: Message(header: "reset_codes_scan_first_card".localized)) session!.start(with: GetResetPinTokenCommand()) { result in switch result { @@ -114,7 +114,7 @@ public class ResetPinService: ObservableObject { self.session = TangemSdk().makeSession(with: config, cardId: nil, - initialMessage: Message(header: "Scan the confirmation card")) + initialMessage: Message(header: "reset_codes_scan_confirmation_card".localized)) session!.start(with: SignResetPinTokenCommand(resetPinCard: resetPinCard)) { result in switch result { @@ -163,7 +163,7 @@ public class ResetPinService: ObservableObject { self.session = TangemSdk().makeSession(with: config, cardId: resetPinCard.cardId, - initialMessage: Message(header: "Scan card to reset user codes")) + initialMessage: Message(header: "reset_codes_scan_to_reset".localized)) let task = ResetPinTask(confirmationCard: confirmationCard, accessCode: accessCodeUnwrapped, passcode: passcodeUnwrapped)