Skip to content

fix: register the Pro tokens the specs already use - #170

Closed
mpretty-cyro wants to merge 1 commit into
mainfrom
fix/register-pro-localized-tokens
Closed

fix: register the Pro tokens the specs already use#170
mpretty-cyro wants to merge 1 commit into
mainfrom
fix/register-pro-localized-tokens

Conversation

@mpretty-cyro

Copy link
Copy Markdown
Collaborator

Enforce localized strings walks every tStripped('token') in the suite and compares what the localizer
returns against a string recorded in its own switch. A token with no entry is reported as an unknown
key
, which fails the test.

Ten Pro tokens had reached the specs without an entry:

from tokens
Clear All Data warning proClearAllDataDevice, proClearAllDataNetwork, clearDeviceAndNetworkConfirm
refund routes proRefundDescription, proImportantDescription, requestRefund
store providers pro_provider_app_store_store, pro_provider_app_store_account, pro_provider_app_store_platform, pro_provider_google_play_store

Not a string mismatch. The run printed no expected:/but got: line at all — every failure was the
absence of an entry. This had been recorded as the app loading a string set the source disagreed with,
which sent it to the wrong place; it is our own debt from adding Pro specs.

Recording the current values gives these tokens the property the other entries have: an upstream copy
change fails here rather than quietly altering what a spec asserts.

Verified by running the spec, which needs no device: unknown keys 10 → 0, failedpassed.

`Enforce localized strings` compares every `tStripped` token found in the suite
against a string recorded here, and reports a token with no entry as an unknown
key. Ten Pro tokens reached the specs without one — the Clear All Data warning,
the refund routes, and the store-provider names — so the test failed on their
absence rather than on any string differing.

Recording their current values is what gives them the property the other
entries have: an upstream copy change becomes a failure here instead of a
silent difference in what a spec asserts.
@mpretty-cyro
mpretty-cyro deleted the fix/register-pro-localized-tokens branch August 28, 2026 07:10
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.

1 participant