Repository navigation
fix(l10n): localize MonetizationUI toast messages + ad-unavailable text - #904
Merged
Merged
Conversation
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]>
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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'sText("Ad unavailable")had no catalog entry — all rendered English on every locale. Routed throughString(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