Skip to content

chore: translate spark design strings - #1961

Closed
ovitrif wants to merge 18 commits into
feat/spark-design-v64from
chore/spark-design-translations
Closed

ovitrif wants to merge 18 commits into
feat/spark-design-v64from
chore/spark-design-translations

Conversation

@ovitrif

@ovitrif ovitrif commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Refs: #1840
Stacked on #1960, with #1963 and #1964 merged in

Description

Out of Scope

  • English copy: lives in the design PRs.

Design

N/A — no UI changes beyond the translated copy of the design PRs.

Preview

N/A — the screens are those of the design PRs, in other languages.

QA Notes

Setup

N/A — switch the device language to check a locale.

Journeys

N/A — no user-visible behaviour change beyond copy.

Manual Tests

N/A

Automated Checks

  • ran lintDevDebug — no missing or extra translations, all resources compile

Evidence

just compile and Android Lint pass on this branch. A script checked that every translated value keeps the English placeholders, accent tags and \n count.

Gaps

  • No native-speaker review yet.

Models used

  • Planning/scoping: claude-opus-5-5 (reasoning: low)
  • Implementation: claude-sonnet-5-5 (reasoning: low)
  • Review: Not performed

Verified: just compile, lintDevDebug (pass)
@ovitrif ovitrif added this to the 3.2.0 milestone Nov 17, 2026
@ovitrif ovitrif self-assigned this Nov 17, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T19:56:05.317235Z 369a40d PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ovitrif
ovitrif requested review from a team, ben-kaufman and pwltr and removed request for a team November 17, 2026 19:54
@greptile-apps

greptile-apps Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The translation changes appear safe to merge.

Summary

Updates Spark transfer copy across all 15 shipped locales to match the English strings from PR #1960.

  • Spark force-transfer screens now use updated local-language copy.
  • Spark-to-savings failure messages now appear in each shipped locale.

Reviews (1) · Last reviewed commit: "chore: translate spark design strings" · Reviewed by Greptile

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Regtest APK

Built from f23a5c9 (run).

Download bitkit-dev-debug universal APK (expires in 30 days).

@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. Translates the v64 Spark design strings (Transfer to Savings, force transfer) into the 15 shipped locales. Reviewed 369a40d, full tier, static: per this repo's rules the branch was not built here, so this rests on the diff and CI.

What I checked, and 2 candidates I ruled out

Coverage, scripted over all 15 locales (parsed each strings.xml at the head, at the design base and at master):

  • Every one of the 81 English keys the design branch adds or changes against master has a translation in every locale, and none of the 13 keys it removes survives in a locale file. No locale carries a key English lacks.
  • Every translated value this PR touches keeps the English placeholders ({amount}, {fees}, {rate}, {address}, {path}, {time}, {error}, %1$d), the same number of <accent> open and close tags, and the same \n count.

Read: the full values-de and values-fr hunks against the English. The force-transfer term stays the same through each file, and Spark is untranslated.

Base: the branch forks from 09a5d85, two commits behind #1960's head aea14d8; those two commits touch only SparkExitPayScreen.kt and SparkExitProgressScreen.kt, no strings, so nothing is missing from the stack.

CI: lint (Android Lint plus detekt), build-and-test, compose-ui and the e2e jobs green; multi_address_local and onchain_boost_receive_widgets were still running when I read them.

Ruled out

  • step_timelock unchanged in every locale, step_publish unchanged in pl, although the English changed (Waiting for the timelock to Waiting for timelock, Publishing exit transactions to Publishing of exit transaction). The existing translations still say the same thing, and Polish transakcji reads as singular or plural.
  • Unescaped apostrophes in fr, ca, it, pt: every apostrophe in the new values is written \', and Android Lint passed.

Not checked: wording quality, which needs a native speaker, as the PR's Gaps section already says.

Merge confidence: 5/5, CI green, every changed key covered in all 15 locales with placeholders and tags intact, and a copy change is not something a test would cover.

Reviewer model: claude-opus-5-5
Reasoning effort: Not exposed

Verified: just format, compile, test, lint; journeys on a regtest emulator
…v64' into chore/spark-design-translations

# Conflicts:
#	docs/screens-map.md
Verified: just compile, just lint; XML parse of all 15 locales
Verified: just format, compile, test, lint; journeys on a regtest emulator

@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 369a40d.

Low: The force-transfer progress screen uses one sweep label for pending and completed rows (SparkExitComponents.kt:245). Fourteen translations now say “Sent to savings” even while the emergency-fee payment is awaiting confirmation and the sweep row still shows a clock. For example, see values-b+es+419/strings.xml:326 and values-de/strings.xml:208. A neutral label such as “Send to savings” fits both states.

Pre-existing Low: Both completion templates already wrap their amount placeholders in accent tags. SparkExitProgressScreen.kt:416 and SparkExitProgressScreen.kt:419 select the templates, and the substitutions add another set of tags. The resulting message displays literal markup around the spending amount and, when fees were returned, around the fee amount too.

Pre-existing Low: SparkDetailScreen.kt:229 falls back to “Derivation path” in English across all 15 locales. The heading and explanatory text immediately above it are now translated.

Review details

Quick review
Model: Claude Opus 5.5
Reasoning effort: high

General review
Model: gpt-6.2-sol
Reasoning effort: high

Combined review
Model: gpt-6.2-sol
Reasoning effort: high

Verified: none (journey text only; the journey passed on bcaede8 with this setup)
@ovitrif ovitrif mentioned this pull request Nov 17, 2026
32 tasks done
Verified: none (changelog only)
…g-v64' and 'origin/feat/spark-design-v64' into chore/spark-design-translations
Verified: just lint; XML parse of all 15 locales
@ovitrif

ovitrif commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator Author

@pwltr thanks.

Fourteen translations now say “Sent to savings” even while the emergency-fee payment is awaiting confirmation and the sweep row still shows a clock.

The step keeps one label in both states by design: the in-progress frame shows "Sent to savings balance" next to the clock, as the English string does, so the translations follow the design.

Both completion templates already wrap their amount placeholders in accent tags.

Fixed in #1960 (6823000): the returned amounts are substituted as plain text now.

SparkDetailScreen.kt:229 falls back to “Derivation path” in English across all 15 locales.

Translated in d62d658, using each locale's existing term for derivation path.

@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 d62d658. The derivation-path label now uses each locale’s existing term. The findings below are in the transfer-to-spending changes included from #1963.

Medium: SpendingConfirmScreen.kt:224–238 drops the provisional markers from Service fees and To spending. Fast uses a fee ceiling and Normal uses an estimate, so the amount Spark credits can differ from the displayed amount. This is especially easy to misread on Transaction Signed, where SpendingHwSignedScreen.kt:93 shows the grid without the speed rows. Label the fee and credit as provisional in the grid itself.

Low: SpendingConfirmScreen.kt:253–255 truncates the middle of the address when it exceeds one line on Review & Sign. Tapping the row changes currency. Let the user reveal the full address to compare it with the hardware device prompt.

Low: TransferLearnMoreScreen.kt:56 calls the three-confirmation option Later, while SpendingConfirmScreen.kt:284 calls it Normal. Use the same name in both screens and in journeys/transfer/spark-transfer-to-spending.xml:28.

Low: journeys/transfer/spark-transfer-to-spending.xml:30 expects one delete to reduce the fiat amount. Deleting the last zero from 50.00 correctly produces 50.0. Assert that the input text changes, or use a fixture whose last displayed digit is nonzero.

Review details

Quick review
Model: Claude Opus 5.5
Reasoning effort: high

General review
Model: GPT-6.2 Sol
Reasoning effort: high

Combined review
Model: GPT-6.2 Sol
Reasoning effort: high

Verified: just format, just compile, just test, just lint
Verified: just format, just compile, just test, just lint
@ovitrif ovitrif mentioned this pull request Nov 17, 2026
14 tasks done
Verified: none (changelog text only)
@ovitrif

ovitrif commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator Author

@pwltr these four are in #1963's code, which this PR only carries for its strings, so the answers apply there.

Medium: SpendingConfirmScreen.kt:224–238 drops the provisional markers from Service fees and To spending.

The grid follows the frames as drawn: Review and Transaction signed show plain amounts in the grid, and the speed rows carry "max" and "est". Adding markers to the grid is a design change, so it stays as designed.

Low: SpendingConfirmScreen.kt:253–255 truncates the middle of the address when it exceeds one line on Review & Sign.

The middle truncation keeps both ends visible, which is what a user compares against the device prompt, and matches the frame and iOS (synonymdev/bitkit-ios#1357). No change.

Low: TransferLearnMoreScreen.kt:56 calls the three-confirmation option Later, while SpendingConfirmScreen.kt:284 calls it Normal.

Both names are as in the frames; #1963 lists it under Out of Scope.

Low: journeys/transfer/spark-transfer-to-spending.xml:30 expects one delete to reduce the fiat amount.

Fixed in dbb8b28: the step now checks that delete removes the last typed digit (50.00 becomes 50.0).

…ions

Verified: just format, just compile, just lint; XML parse of all 15 locales
@ovitrif
ovitrif requested a review from pwltr November 17, 2026 22:37

@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.

Consider splitting the Spark transfer review changes from the translation update so the amount, destination, and fees can be reviewed together across the transfer flow.

Reviewed 7b1fec8.

Medium: SpendingConfirmScreen.kt:255 hides the middle of the address when it exceeds one line on Review & Sign. Tapping the row switches currency. Make the full address available so the user can compare it with the destination on the hardware device.

Medium: After switching from bitcoin to fiat on either review screen and going back, SpendingAmountScreen.kt:197 loads the formatted amount into the keypad. In a system locale that uses Arabic-Indic digits, deleting the last digit can leave a nonempty amount on screen while AmountInputViewModel.kt:364 fails to parse it, sets the effective amount to zero, and disables Continue. Keep the keypad value parseable independently of how it is displayed.

Medium: Normal’s service fee and credited amount in SpendingConfirmScreen.kt:224 and SpendingConfirmScreen.kt:234 are computed from a fee estimate. Spark can charge a different fee at maturity. The review screens label the fee in the Normal speed row, but Transaction Signed shows only the grid at SpendingHwSignedScreen.kt:93. Identify both provisional amounts in the grid itself.

Low: Spark’s receiving indicators use SDK readiness without accounting for a lost network connection. After disconnecting an initialized wallet, the Open Connections row can still say “no limit” at LightningConnectionsScreen.kt:448, and the detail screen can show both unlimited indicators alongside Offline at SparkDetailScreen.kt:121 and SparkDetailScreen.kt:134. Use a receiving state that accounts for connectivity in both screens.

Low: SparkExitComponents.kt:247 shows the same sweep title while the force transfer is waiting and after it completes. The updated translations say the funds were sent even while the step shows a clock. Use wording that also fits the pending state in values-b+es+419/strings.xml:327, values-ca/strings.xml:324, values-cs/strings.xml:327, values-de/strings.xml:209, values-el/strings.xml:320, values-es-rES/strings.xml:326, values-es/strings.xml:268, values-fr/strings.xml:208, values-it/strings.xml:325, values-nl/strings.xml:324, values-pl/strings.xml:210, values-pt-rBR/strings.xml:328, values-pt/strings.xml:205, and values-ru/strings.xml:336.

Review details

Quick review
Model: Claude Opus 5.5
Reasoning effort: high

General review
Model: GPT-6.2 Sol
Reasoning effort: high

Combined review
Model: GPT-6.2 Sol
Reasoning effort: high

Verified: just format, just compile, just test, just lint
@ovitrif

ovitrif commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator Author

@pwltr

Consider splitting the Spark transfer review changes from the translation update

They are split: the transfer review is #1963 and the Spark connection work is #1964. This PR only merges them in to translate their strings, so their code shows in this diff until they merge; please review that code there.

Medium: SpendingConfirmScreen.kt:255 hides the middle of the address

Same answer as before: the middle truncation keeps both ends visible, as in the frame and on iOS, so it stays as designed.

Medium: […] In a system locale that uses Arabic-Indic digits, deleting the last digit can leave a nonempty amount on screen while AmountInputViewModel.kt:364 fails to parse it

Real, and older than these PRs: the 25%, Max and in-screen unit switch paths on master load the same locale-formatted text into the keypad. Out of scope here: tracked in #1965.

Medium: Normal's service fee and credited amount […] Identify both provisional amounts in the grid itself.

Same answer as before: the grids follow the Review and Transaction signed frames, with "max" and "est" on the speed rows; marking the grid itself is a design change.

Low: Spark's receiving indicators use SDK readiness without accounting for a lost network connection.

Fixed in #1964 (54acd5a), merged in here: receiving now needs the device online as well as a usable Spark, on both screens.

Low: SparkExitComponents.kt:247 shows the same sweep title while the force transfer is waiting and after it completes.

Same answer as before: the in-progress frame shows "Sent to savings balance" next to the clock, so the translations follow the English string.

@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 f23a5c9. No findings in the translation changes. All 15 locales include the new English keys and preserve the placeholders, markup and line breaks in the changed strings.

Review details

Quick review
Model: Claude Opus 5.5
Reasoning effort: high

General review
Model: GPT-6.2 Sol
Reasoning effort: high

Combined review
Model: GPT-6.2 Sol
Reasoning effort: high

@ovitrif

ovitrif commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator Author

Closing this PR: its translations moved into the design PRs, so each one ships its strings translated in every locale.

The coming feat: update spending balance modal PR translates its own strings too.

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.

3 participants