Repository navigation
feat(l10n): add pt-BR translations for Smart Care dashboard - #145
Conversation
|
The premise is correct and I verified it: the 2.9.3 Smart Care redesign (e3a0536) introduced ~50 user-facing literals that were never added to the catalog. Good catch. Blocking issue: adding the 50 keys to Two smaller things:
Also a count correction for the description: this adds 50 pt-BR entries, not 39 the first hunk's 11 are not counted. |
The 2.9.3 Smart Care redesign introduced ~50 user-facing string literals (dashboard hero, Care areas, and the appearance controls) that were never added to the localization catalog, so they fell back to English regardless of the app language. Add Brazilian Portuguese translations for these strings, matching the app's existing pt-BR terminology (e.g. "Verificar"/"Verificação" for scan). LocalizationFilesTests enforces exact English key parity across all ten catalogs, so add the same 50 keys to every other catalog (ar, es, ja, pl, ru, uk, zh-Hans, zh-Hant) as English fallbacks (value == source), marked pending translation, so the suite stays green without shipping unreviewed translations for languages I don't speak. - 50 entries per catalog, including the interpolated keys "%lld-POINT LOCAL SCAN" and "%@ free" - Hero description kept as one wrapping sentence (no forced newline) so it is not clipped by the fixed-height SmartCareStageSurface - Validated with plutil -lint and the ported parity check Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
c0fefee to
de6488b
Compare
|
Thanks for the detailed review Moamen
Built on macOS 13.0 deployment target (BUILD SUCCEEDED). |
momenbasel
left a comment
There was a problem hiding this comment.
Re-verified the updated branch as part of an automated maintainer pass:
- Parity: ported
LocalizationFilesTestslogic and ran it against this branch — all 10 catalogs now carry the identical 395-key set (345 on main + the 50 added here). No missing, no extra, no duplicate keys,plutil -lintclean on all files. - Format specifiers: signature check passes for every key in every catalog; spot-checked the interpolated ones against the call sites (
%lld-POINT LOCAL SCAN← Int interpolation at DashboardView.swift:238,%@ free← String at :315,Last clean: %@,%lld checks,%lld selected) — all types line up. - Review points: copula fixed (
Nada é removido até você aprovar.), hard\ndropped (the remaining\ns inMake room.\nKeep control./Scan first.\nDecide what goes.mirror the English source exactly, which is correct), English-fallback strategy for catalogs you couldn't verify matches how we want to stage translations. - Risk: zero code changes, additive-only
.stringsentries — no deletion-logic, threading, or privacy surface touched. CI build is green.
Merging via squash. Thanks for the careful follow-up, and for catching that the 2.9.3 dashboard shipped ~50 unlocalized literals in the first place — the en.lproj backfill is the real fix here, the other locales can now translate incrementally.
— automated maintainer pass on behalf of @momenbasel
…ump 2.9.7 Ships the simctl runtime listing/deletion feature (#147), the pt-BR Smart Care dashboard translations (#145), the full French localization (#129), and the Xcode Junk description key restoration (#150), all already merged to main. Regenerated project picks up the new source and strings files. Co-authored-by: Cursor <[email protected]>
The Smart Care dashboard redesign introduced many string literals that were never added to the localization catalog, so they fell back to English regardless of the app language.
Add the missing Brazilian Portuguese strings for DashboardView, plus "Appearance" and "Advanced Tools", and backfill the same source strings in the English catalog to keep both files in sync.