Skip to content

chore: bring every locale catalog up to the English key set - #1165

Merged
romchornyi merged 1 commit into
developfrom
chore/l10n-locales-catch-up-en
Sep 28, 2026
Merged

romchornyi merged 1 commit into
developfrom
chore/l10n-locales-catch-up-en

Conversation

@romchornyi

@romchornyi romchornyi commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Issue being fixed or feature implemented

Follow-up to #1163. On develop, the 42 non-English Localizable.strings catalogs lack 147 keys
that en.lproj already has. Every local build (BartyCrouch) adds them to all locales, and the churn
lands in whichever feature PR commits it — after #1163 these were the remaining ~6 000 foreign lines
in #1141.

What was done?

How Has This Been Tested?

  • plutil -lint on all 43 catalogs.
  • Key-set check: after this PR every locale holds all 2 475 keys of en.lproj; no key added twice
    (the two pre-existing duplicates, "Abstain" and "Lock the name", are untouched).
  • Not changed here: each locale also keeps 5 older keys that en.lproj no longer has (e.g. "Shielded
    transfer", "DEVICE SECURITY COMPROMISED…"). Removing them is a catalog-cleanup question for chore: repair the localization sources and regenerate the string catalogs #1126.

Breaking Changes

None.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Localization
    • Added interface text across multiple language options for wallet migration and recovery, support diagnostics, Shielded sync, contacts, transfers, swaps, token purchases, masternode actions, username flows, and Devnet settings.
    • The new entries currently display in English in these language options. They include prompts, status messages, errors, and recovery guidance.

42 locale catalogs lack 147 keys that `en.lproj` on develop already has, so
each local build (BartyCrouch) adds them and the churn lands in whatever
feature PR commits it — after #1163 this was the remaining ~6 000 foreign
lines in dashwallet-ios#1141.

Each missing key is added with its English text, as new keys ship until
Transifex supplies translations, at the position the regenerated catalogs
give it. Strings only, no code.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 2bc35c55-3797-410f-aa69-7f7fcc40f4bb

📥 Commits

Reviewing files that changed from the base of the PR and between c713e1e and 59b027b.

📒 Files selected for processing (42)
  • DashWallet/ar.lproj/Localizable.strings
  • DashWallet/bg.lproj/Localizable.strings
  • DashWallet/ca.lproj/Localizable.strings
  • DashWallet/cs.lproj/Localizable.strings
  • DashWallet/da.lproj/Localizable.strings
  • DashWallet/de.lproj/Localizable.strings
  • DashWallet/el.lproj/Localizable.strings
  • DashWallet/eo.lproj/Localizable.strings
  • DashWallet/es.lproj/Localizable.strings
  • DashWallet/et.lproj/Localizable.strings
  • DashWallet/fa.lproj/Localizable.strings
  • DashWallet/fi.lproj/Localizable.strings
  • DashWallet/fil.lproj/Localizable.strings
  • DashWallet/fr.lproj/Localizable.strings
  • DashWallet/hr.lproj/Localizable.strings
  • DashWallet/hu.lproj/Localizable.strings
  • DashWallet/id.lproj/Localizable.strings
  • DashWallet/it.lproj/Localizable.strings
  • DashWallet/ja.lproj/Localizable.strings
  • DashWallet/ko.lproj/Localizable.strings
  • DashWallet/mk.lproj/Localizable.strings
  • DashWallet/ms.lproj/Localizable.strings
  • DashWallet/nb.lproj/Localizable.strings
  • DashWallet/nl.lproj/Localizable.strings
  • DashWallet/pl.lproj/Localizable.strings
  • DashWallet/pt.lproj/Localizable.strings
  • DashWallet/ro.lproj/Localizable.strings
  • DashWallet/ru.lproj/Localizable.strings
  • DashWallet/sk.lproj/Localizable.strings
  • DashWallet/sl.lproj/Localizable.strings
  • DashWallet/sl_SI.lproj/Localizable.strings
  • DashWallet/sq.lproj/Localizable.strings
  • DashWallet/sr.lproj/Localizable.strings
  • DashWallet/sv.lproj/Localizable.strings
  • DashWallet/th.lproj/Localizable.strings
  • DashWallet/tr.lproj/Localizable.strings
  • DashWallet/uk.lproj/Localizable.strings
  • DashWallet/vi.lproj/Localizable.strings
  • DashWallet/zh-Hans.lproj/Localizable.strings
  • DashWallet/zh-Hant-TW.lproj/Localizable.strings
  • DashWallet/zh.lproj/Localizable.strings
  • DashWallet/zh_TW.lproj/Localizable.strings

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

Localization catalogs add English-valued interface strings across multiple locales. The additions cover wallet migration and support, transaction and transfer states, contacts, masternode operations, Devnet settings, token purchases, and swaps. No runtime logic or public declarations change.

Changes

Localization catalog updates

Layer / File(s) Summary
Wallet and transaction interface strings
DashWallet/*.lproj/Localizable.strings
The locale catalogs add strings for wallet migration, support diagnostics, Shielded sync, transaction and transfer statuses, contacts, masternodes, Devnet, token purchases, and swaps. Most additions use English text as the value. Some existing entries are retained, reordered, or removed.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 59b02

The catalog sync does not change the displayed text for these previously untranslated strings or remove Simplified Chinese entries. No actionable issue remains before merge.

Architecture Summary

Architecture risk: 🔵 Low · up to 59b02

The change affects 1 system.

Changed systems: DashWallet

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — DashWallet (service) was modified; 42 changed files map to changed impact.

Before / after behavior

  • observed — Modified behavior in DashWallet/ar.lproj/Localizable.strings: Adds the “Shielded sync is not running” localization entry.
  • observed — Modified behavior in DashWallet/ar.lproj/Localizable.strings: Adds wallet-migration failure guidance and support-message strings, including PIN-gated diagnostic-log export, diagnostic-report disclosure, and fallback instructions when preparing a support message fails.
  • observed — Modified behavior in DashWallet/ar.lproj/Localizable.strings: Adds contact and progress strings for already-spent items, unreachable nodes, and finished items; the existing %d change and %d evonodes entries remain.
  • observed — Modified behavior in DashWallet/ar.lproj/Localizable.strings: Adds a string for the count of items waiting for the network.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding the complete English key set to every locale catalog.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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.

@thepastaclaw

thepastaclaw commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🕓 Queued for automated review — 2nd in line, estimated start in ~10 min (commit 59b027b)
Estimated review time once started: ~45 min (two-phase automated review; median of recent runs).

  • Request priority review — click to move this review to the front of the queue.

@llbartekll llbartekll left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Verified locally against origin/develop (c713e1ebf) → 59b027b04:

  • 42 files, all DashWallet/*.lproj/Localizable.strings, +147 / −0 each. en.lproj is byte-identical to develop; no .stringsdict or code touched.
  • In every locale the added key set is exactly en − base — the same 147 keys in all 42 catalogs — with values byte-identical to en.lproj. No existing value changed, no key removed, no new duplicate (only the pre-existing "Abstain" / "Lock the name" pairs remain).
  • After merge each locale holds all 2 475 en.lproj keys; the 5 legacy keys per locale that en no longer has are left as described (→ #1126).
  • plutil -lint OK on all 43; UTF-8 without BOM, LF, single trailing newline preserved.
  • Placement is consistent: 11 hunks per file, identical across all 42; keys inserted into the sorted block land in alphabetical position, the rest join the appended block from #1163.
  • Localizable.stringsdict is already at parity (same 22 keys in all 43 locales), so a BartyCrouch run after this has nothing left to add in any catalog.

English placeholder values follow the convention settled in #1163 (Transifex is the only translation source). Approving.

@romchornyi
romchornyi merged commit 22b08e4 into develop Sep 28, 2026
5 checks passed
@romchornyi
romchornyi deleted the chore/l10n-locales-catch-up-en branch September 28, 2026 12:31
romchornyi pushed a commit that referenced this pull request Sep 28, 2026
…me-redesign

Brings in #1165, which gave the 42 non-English catalogs the 147 keys en.lproj
already had. Catalog conflicts resolved as this branch's catalog plus every
key develop has and this branch's regenerated catalogs dropped (16 per
locale), so the PR no longer removes any string. No duplicate keys; plutil
passes on all 43 files.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
romchornyi pushed a commit that referenced this pull request Sep 28, 2026
Brings in the latest #1141 base (locale catalogs brought up to the English
key set in #1165, DashUIKit pinned to master). Every locale catalog took the
base version plus this branch's invitation keys, in English until
translations arrive from Transifex.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
romchornyi pushed a commit that referenced this pull request Sep 29, 2026
The two DEX strings this PR adds ("Max %@" and the below-minimum copy)
were only in en.lproj, so the 42 other catalogs fell behind the key set
#1165 had just brought them up to. Add both with the English value, the
way new keys ship until Transifex translates them.

Drop the two keys the PR orphaned from every catalog: the buy screen's
dex_enter_amount_invalid fallback, and "The maximum transaction amount
is %@", replaced by "Max %@" on the convert screen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
romchornyi added a commit that referenced this pull request Sep 29, 2026
* fix(ui): read SwapKit's error codes on the DEX amount screens

Every amount-related failure on Enter amount rendered as a dead end
("Something went wrong setting up your swap") even when SwapKit had said
exactly what was wrong. Two causes, both about where the code was read
from.

`decodeQuoteError` returned `body.message` before `body.error`, so the
prose reached the mapper and the code never did: "No routes found for
DASH.DASH -> BTC.BTC" does not match `noRoutesFound`, and the buy
screen's own `contains("noRoutesFound")` check missed it for the same
reason. And a failure a provider reports — an HTTP 200 with no routes
and `providerErrors[]` — was passed on as its prose alone, dropping
`errorCode`, the only stable identifier in the response.

Measured against api.swapkit.dev on 2026-08-28: at 0.05 DASH a
DASH -> BTC quote answers 200 with `sellAssetAmountTooSmall`; below
about 0.01 DASH it answers 404 `noRoutesFound`; above the pool's depth
it answers 200 with `apiRequestFailed`. All three read as "something
went wrong".

- `providerErrorMessage` puts the code back in front of the prose, so
  provider-level and top-level failures reach the mapper the same way.
- Below-minimum codes are family-matched on an `AmountTooSmall` /
  `AmountTooLow` suffix rather than enumerated, since SwapKit does not
  document the per-provider vocabulary.
- `apiRequestFailed`, `invalidRoute`, `invalidAsset` and
  `memoTooLongForSourceChain` are mapped; the last shares the copy the
  wallet already uses when it catches an over-length memo locally.
- Routability probing classifies on codes too: a below-minimum reply
  says the probe amount was too small, not that the asset is unroutable,
  so the coin picker no longer hides an asset on that evidence.
- The convert screen's over-balance line follows the redesign to
  "Max $205.32" (Figma 24034:44864).

Mirrors Android's `SwapKitErrors` (dashpay/dash-wallet#1526) and the
enter-amount copy from dashpay/dash-wallet#1539.

* fix(ui): stop pruning the Buy picker on an ambiguous no-route

Review follow-up.

A top-level `noRoutesFound` was cached as a conclusive negative for ten
minutes, but SwapKit answers with it for an amount far below a route's
floor as well as for a pair it cannot carry — measured 2026-08-28,
DASH -> BTC returned it at 0.01 DASH and quoted a route at 0.3. The
probe is a $50 estimate that falls back to one whole unit when no USD
price is cached, so a cheap asset could be probed under its own floor
and disappear from the picker for the rest of the window. Only a
provider naming its own no-route in `providerErrors[]` stays conclusive:
it answers for the single provider the probe asked about.

Also from review: drop `isAmountTooLow(_:)`, which had no callers once
the amount screens moved to `message(for:coin:)` and routability took
the two narrower tests; move the ambiguity it documented onto
`isNoRoute(_:)`, which is what acts on it. Point two doc comments at
symbols that exist.

Adds regression coverage for the normalization rules: code-before-prose
composition and its fallbacks, blank and nil handling, the
case-insensitive below-minimum suffix family, the four newly mapped
codes, the shared memo-too-long copy, unknown-code fallback, and the
anchor case — prose without its code must not be mistaken for a mapping.

* test(ui): drive SwapKit quote decoding and routability through the production functions

The helper tests pinned the rules but not the functions that apply them, so
reverting decodeQuoteError to prose-first or restoring top-level noRoutesFound
pruning left every test green. decodeQuoteError(from:) and routability(from:)
become internal statics and SwapKitQuoteBoundaryTests feeds them recorded
SwapKit bodies: code-first decoding and its fallbacks, and each routability
outcome (route, ambiguous top-level no-route, blank provider errors, provider
no-route, below-minimum, upstream failure).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

* chore(ui): keep every locale catalog on the English key set

The two DEX strings this PR adds ("Max %@" and the below-minimum copy)
were only in en.lproj, so the 42 other catalogs fell behind the key set
#1165 had just brought them up to. Add both with the English value, the
way new keys ship until Transifex translates them.

Drop the two keys the PR orphaned from every catalog: the buy screen's
dex_enter_amount_invalid fallback, and "The maximum transaction amount
is %@", replaced by "Max %@" on the convert screen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Roman <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.

4 participants