Skip to content

fix: translate expired payment cancellation - #1558

Merged
piotr-iohk merged 3 commits into
masterfrom
codex/translate-expired-payment-1544
Nov 30, 2026
Merged

piotr-iohk merged 3 commits into
masterfrom
codex/translate-expired-payment-1544

Conversation

@piotr-iohk

@piotr-iohk piotr-iohk commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #1544
Twin: synonymdev/bitkit-android#2210

Description

  • Translate the eight Send Pending cancellation messages in all 14 non-English locale files, including the cancellation prompt, progress, result, and release fee.
  • Use the same wording across shared Android and iOS locales and preserve the {fee} placeholder in every release prompt.

Out of Scope

None.

Design

N/A — no design available.

Preview

Pending a device run with an eligible retained payment.

QA Notes

Setup

Use a disposable wallet on isolated local regtest. Fund its Savings balance and use a controlled debug fixture to retain an on-chain attempt after a broadcast returns an unknown result without submitting to the network. Let the payment request expire, then select a non-English app language before reopening the retained payment in Send Pending. A previous iOS cancellation run describes the unknown-broadcast setup for a force-transfer variant. The standard journey environment lacks the debug fault fixture needed for this case.

Journeys

N/A — not drivable; see Manual Tests.

Manual Tests

  • 1. In Send Pending, open cancellation for the retained expired payment. Verify the action, confirmation title, ordinary-payment note, network check, and release prompt are localized. Verify the prompt shows the calculated fee in sats. This requires the controlled retained-payment fixture above.
  • 2. Authorize release and verify the localized success message. With independent fixture attempts, exercise delayed release confirmation, a payment that may still reach the network, and a sync failure. Verify the corresponding pending, refusal, and sync messages. This requires control of the network and release outcomes.

Automated Checks

  • ran cross-platform resource key, exact wording, and placeholder checks across every locale
  • ran iOS translation validator and Apple plist parser
  • ran git diff --check

Evidence

Targeted checks passed on e281d0f532. Every locale has all eight new keys, every release prompt has exactly one {fee}, and all shared copy matches across platforms.

Gaps

Manual cases 1 and 2 still need a controlled fixture and a device run. The full build, test suites and pinned SwiftFormat run in hosted CI. The installed SwiftFormat 0.58.4 cannot lint this checkout, which requires at least 0.64.6.

Models used

  • Planning/scoping: gpt-6.2-sol (reasoning: high)
  • Implementation: gpt-6.2-sol (reasoning: high)
  • Review: gpt-6.2-astra (reasoning: high)
  • Review rounds: 2

@piotr-iohk
piotr-iohk marked this pull request as ready for review November 30, 2026 10:04
@greptile-apps

greptile-apps Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · This PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge.

Summary

Adds eight expired-payment cancellation messages in all 14 non-English locales.

  • Expired-payment cancellation messages appear in 14 more languages.

Review covered the translations and their callers. No device run or full build was performed.

Reviews (1) · Last reviewed commit: "chore: rename changelog fragment" · Reviewed by Greptile

@talosmachina talosmachina left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No findings. Adds the eight wallet__onchain_abandon* cancellation strings to all 14 non-English Localizable.strings files, no code. Reviewed 57aa4e9, light tier, static (iOS does not build here).

What I checked, and 3 candidates I ruled out

Parsed: each .lproj/Localizable.strings on the head: no duplicate keys, 10 wallet__onchain_abandon* entries in each of the 15 files (the existing transfer_note/exit_note translations plus the 8 new ones), every new line matches "key" = "value"; with only escaped inner quotes.
Cross-platform: each value is identical to the matching wallet__send_pending__abandon* string in synonymdev/bitkit-android#2210 for all 14 shared locales.
CI: validate (the translation validator) and SwiftFormat green; Run Tests and integration tests were pending when I looked.

Ruled out

  • Broken .strings syntax from an unescaped ": none; apostrophes need no escaping in .strings.
  • Missing or doubled {fee}: exactly one in every abandon_release.
  • Overwriting existing keys: 0 deletions and no duplicates.

Merge confidence: 5/5, copy-only change, the translation validator passed and the files parse cleanly.

@piotr-iohk piotr-iohk self-assigned this Nov 30, 2026

@pwltr pwltr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 57aa4e9. No issues found.

The eight strings for cancelling an expired payment are now translated in all 14 locales. Every file parses cleanly with no duplicate keys, each translation of the fee prompt keeps the {fee} placeholder, and the text matches the Android translations of the same strings.

Review details

Quick review: Claude Opus 5.5, high reasoning effort
General review: GPT-6.2 Sol, high reasoning effort

@coreyphillips coreyphillips left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two independent reviews, nothing blocking a merge.

@piotr-iohk
piotr-iohk merged commit 9b1bb82 into master Nov 30, 2026
41 of 42 checks passed
@piotr-iohk
piotr-iohk deleted the codex/translate-expired-payment-1544 branch November 30, 2026 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: translate the cancel expired payment strings

4 participants