Skip to content

fix(l10n): localize MonetizationUI toast messages + ad-unavailable text - #904

Merged
wei18 merged 1 commit into
mainfrom
fix/901-toast-banner-l10n
Jul 19, 2026
Merged

wei18 merged 1 commit into
mainfrom
fix/901-toast-banner-l10n

Conversation

@wei18

@wei18 wei18 commented Jul 19, 2026

Copy link
Copy Markdown
Owner

What

Closes #901 (found during #895) — MonetizationStateController passed raw literals into Toast(message:) (which ToastView renders as the VISIBLE toast text AND its accessibilityLabel), and BannerSlotView's Text("Ad unavailable") had no catalog entry — all rendered English on every locale. Routed through String(localized:, bundle: .main) / Text(bundle: .main) matching #895's convention. 7 keys ×7 locales ×both catalogs (Ads removed reuses #895's key; Purchase revoked / Purchases restored / Ad unavailable / Purchase pending approval / Purchase failed / Restore failed new). The .revoked reason flows into both latestMessage and the toast from one localized var. en content unchanged.

Review

Pure mechanical L10n routing, identical to the already-CR-approved-and-merged #895 pattern; source diff is ~15 lines of String(localized:) wrapping across 2 files, zero logic/StoreKit change. Leader-verified inline (the impl agent stalled at the verification step twice, and the dispatched CR agent went unresponsive): keys ×7×2 confirmed present in both catalogs via json, scan:l10n green, swiftlint --strict clean on both files, full diff read (no control-flow change), remaining Text() literals confirmed to be existing catalog keys. Independent gate evidence stands in for the dead CR.

Verification

AppMonetizationKit 127/127 · MinesweeperKit 361/361 --no-parallel · scan:l10n green · swiftlint --strict clean · zero snapshot churn.

🤖 Generated with Claude Code

Closes #901 (found during #895) — MonetizationStateController passed raw
literals into Toast(message:) which ToastView renders as the VISIBLE toast
text (and its accessibilityLabel), and BannerSlotView's Ad-unavailable text
had no catalog entry — all rendered English on every locale.

Routed each through String(localized:, bundle: .main) / Text(bundle: .main)
matching #895's convention. 7 keys x 7 locales x both catalogs: Ads removed
(reuses #895's key), Purchase revoked, Purchases restored, Ad unavailable,
Purchase pending approval, Purchase failed, Restore failed. en content
unchanged; the .revoked reason also flows into latestMessage for a11y.

AppMonetizationKit 127/127, MinesweeperKit 361/361 --no-parallel, scan:l10n
green, swiftlint --strict clean; zero snapshot churn (toasts/banner-failed
aren't in snapshot fixtures).

Co-Authored-By: Claude Fable 5 <[email protected]>
@wei18
wei18 merged commit b865f5b into main Jul 19, 2026
5 checks passed
@wei18
wei18 deleted the fix/901-toast-banner-l10n branch July 19, 2026 17:18
@wei18 wei18 mentioned this pull request Jul 20, 2026
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.

fix(l10n): MonetizationUI toast messages + 'Ad unavailable' are unlocalized VISIBLE strings

1 participant