Skip to content

Localize user facing strings#814

Open
praveenperera wants to merge 3 commits into
masterfrom
localize-user-facing-strings
Open

Localize user facing strings#814
praveenperera wants to merge 3 commits into
masterfrom
localize-user-facing-strings

Conversation

@praveenperera

Copy link
Copy Markdown
Contributor

No description provided.

Move Rust-facing UI copy to typed states and render user-visible text through native iOS and Android localization resources.

Add platform mappings for Rust alerts and errors, localize existing flows, and update generated UniFFI bindings for the typed API changes.
Replace remaining Rust string payloads in exported UI state with typed values that native iOS and Android code can render through localization resources.

Update generated bindings, platform call sites, and focused tests for the typed state changes.
Refactors send-flow and wallet actor error surfaces to use typed variants without embedded strings across Rust, UniFFI-generated Swift/Kotlin bindings, and mobile handlers. Detailed failure context is now logged in Rust (`warn!`) instead of serialized through FFI, unknown wallet actor errors are reduced to a payload-free reconcile message, and insufficient-funds handling now maps directly to `SendFlowError::InsufficientFunds` so Android/iOS custom fee flows catch the correct error variant.
@greptile-apps

greptile-apps Bot commented Jul 1, 2026

Copy link
Copy Markdown

Too many files changed for review. (263 files found, 100 file limit)

Bypass the limit by tagging @greptile-apps to review.

@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 82ef1902-5d18-464f-b19c-cbb34c4db599

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch localize-user-facing-strings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 244099031a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +96 to +98
error => {
warn!("Wallet manager send flow error: {error}");
Self::WalletManager

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve locked-output send errors

When the wallet actor returns WalletManagerError::LockedOutputsSelected for a manual/coin-control transaction whose selected outpoints include a locked coin, this catch-all collapses it into SendFlowError::WalletManager. The frontends no longer receive the original wallet-manager variant that they previously special-cased, so users get a generic wallet-operation error instead of being told to unlock the coin or choose different coins; map this variant to a specific send-flow error before the catch-all.

Useful? React with 👍 / 👎.

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.

1 participant