Repository navigation
chore: bring every locale catalog up to the English key set - #1165
Conversation
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]>
|
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 configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (42)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughLocalization 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. ChangesLocalization catalog updates
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to 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 SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
🕓 Queued for automated review — 2nd in line, estimated start in ~10 min (commit 59b027b)
|
llbartekll
left a comment
There was a problem hiding this comment.
Verified locally against origin/develop (c713e1ebf) → 59b027b04:
- 42 files, all
DashWallet/*.lproj/Localizable.strings, +147 / −0 each.en.lprojis byte-identical to develop; no.stringsdictor 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 toen.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.lprojkeys; the 5 legacy keys per locale thatenno longer has are left as described (→ #1126). plutil -lintOK 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.stringsdictis 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.
…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]>
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]>
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]>
* 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]>
Issue being fixed or feature implemented
Follow-up to #1163. On
develop, the 42 non-EnglishLocalizable.stringscatalogs lack 147 keysthat
en.lprojalready has. Every local build (BartyCrouch) adds them to all locales, and the churnlands in whichever feature PR commits it — after #1163 these were the remaining ~6 000 foreign lines
in #1141.
What was done?
value (how new keys ship until Transifex supplies translations — see chore: add strings the code already uses to every locale catalog #1163's review). 6 174 lines,
strings only — no code,
en.lprojuntouched.back to
en.lproj's order for the rest.How Has This Been Tested?
plutil -linton all 43 catalogs.en.lproj; no key added twice(the two pre-existing duplicates, "Abstain" and "Lock the name", are untouched).
en.lprojno longer has (e.g. "Shieldedtransfer", "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:
For repository code-owners and collaborators only
🤖 Generated with Claude Code
Summary by CodeRabbit