Repository navigation
fix(i18n): say "1 product" and "1 prompt/location", not the plural - #1741
Merged
Merged
Conversation
Four counts had no singular form: Product Visibility Readiness's first 40 words, wrong price and cheaper reseller titles read "· 1 products", and the Tracked prompts card "1 prompts/locations left to add". Each gets a `one` case; tests cover the count of one. Co-Authored-By: Claude Opus 5.5 <[email protected]>
5 of 6 tasks
gkhngyk
approved these changes
Oct 29, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good
Reviewed f0bb582, branched from ce9a3dc. Copy and tests only, no migration.
What I checked
- The four messages now have a
onecase:- Readiness:
firstWords,wrongPriceandresellerCheaper. Their=0cases are unchanged. - Insights:
slotsLeft.
- Readiness:
- The new tests catch it. I put main's
en.jsonback under the PR's tests: both new cases fail ("1 products", "1 prompts/locations"). With the PR'sen.json, all 16 tests in_kpi-cards.test.tsxand_readiness.test.tsxpass. - Other counts. I scanned
en.jsonfor plural messages with noone/=1case whoseotherreads# <noun>s. None are left. The rest, such as "+# more", "# still open" and "# over your plan limit", read correctly at 1. en.jsonis the only locale file, so no other language needs the same change.- It merges cleanly on ce9a3dc and alongside #1717 and #1719. All three touch
en.json, in different places.
This was referenced Oct 29, 2026
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.
Summary
Four counts had no singular form, so a count of one read as a plural:
Each now has a
onecase inweb/messages/en.json. The rest of en.json was checked for the same pattern; unnamed forms like "+# more" or "# left" read correctly in the singular and are left as they are.Related issue
None.
Type of change
fix— Bug fixHow to test
Checklist
yarn lint(0 errors),yarn typecheck,yarn buildpass;yarn test554/555 files,_before-publishtimed out under load (known; passes alone)_readiness.test.tsxand_kpi-cards.test.tsxcover the count of one)🤖 Generated with Claude Code