Skip to content

Commit

Permalink
IOS-2393 IOS-2211 Added backup service localisation
Browse files Browse the repository at this point in the history
  • Loading branch information
megakoko committed Oct 25, 2022
1 parent 03ab40c commit ed4c495
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" = "Приложите резервную карту";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public class ResetPinService: ObservableObject {
private func scanResetPinCard(resetCardId: String?, _ completion: @escaping CompletionResult<Void>) {
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 {
Expand All @@ -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 {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ed4c495

Please sign in to comment.