Skip to content

fix(ui): keep reader font labels as brand names - #438

Merged
Dustin-Kelley merged 4 commits into
mainfrom
cursor/hardcode-reader-font-names-f22c
Oct 8, 2026
Merged

Dustin-Kelley merged 4 commits into
mainfrom
cursor/hardcode-reader-font-names-f22c

Conversation

@Dustin-Kelley

@Dustin-Kelley Dustin-Kelley commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Why

Reader font settings translated the font names. Arabic showed إدخال for Inter. Welsh showed Serif Dideitl for Untitled Serif. Brand names stay fixed, so the buttons now render Inter and Untitled Serif directly.

What changed

  • The reader font buttons render Inter and Untitled Serif. Their accessible names come from that same text.
  • Code no longer calls interFontName or untitledSerifFontName.
  • sourceSerifFontName was already unused in code. It remains only in locale JSON.
  • Locale JSON was not edited.

Scope

This covers the two reader font labels. It leaves fontLabel and the font-size and line-spacing labels translated. It leaves the locale files for the next platform-localization sync, which can drop interFontName, untitledSerifFontName, and the already-unused sourceSerifFontName.

Tradeoffs

JSX text literals fail i18next/no-literal-string. The names live in two constants so the lint stays on and the labels stay fixed.

Blast Radius

Anyone who opens reader font settings sees Inter and Untitled Serif in every language. The generic Font label still follows the locale.

Verification

  • Before the fix, Arabic reader settings named the sans button الخطإدخال. After the fix, that button includes Inter. Welsh named the serif button Serif Dideitl. After the fix, it includes Untitled Serif.
  • pnpm check:i18n passed with warnings. interFontName and untitledSerifFontName are now orphan warnings. sourceSerifFontName was already an orphan. Warnings do not fail the check.
  • pnpm lint passed.
  • pnpm typecheck passed.
  • pnpm test passed. Core 306 tests, hooks 198, UI 522.
Open in Web Open in Cursor 

RetriggerConfidence Score: 5/5

This PR appears safe to merge; the previous testing-style issue is fixed.

What we checked:

  • Locale changes stay inside the test: The test awaits language restoration in finally. The shared setup removes rendered elements after each test.

Summary

The reader’s font buttons now show Inter and Untitled Serif in every language. Other settings labels remain translated, and locale files are unchanged.

  • The latest change combines the Arabic and Welsh checks into one test and restores the previous language inline.
  • The previous testing-style finding is fully addressed. No new actionable issues were found.
  • Dustin-Kelley explicitly accepted fixed brand text outside t() so translations cannot change the font names.

Reviews (2) · Last reviewed commit: "fix(ui): address review feedback on font..." · Reviewed by Greptile

Arabic renders interFontName as إدخال and Welsh renders
untitledSerifFontName as Serif Dideitl. The settings buttons
should keep Inter and Untitled Serif in those locales.
Reader settings called t('interFontName') and t('untitledSerifFontName'),
so some locales renamed Inter and Untitled Serif. The buttons now render
those names directly. Locale JSON stays upstream-owned.
The reader font tests still named interFontName and untitledSerifFontName.
Those strings are gone from code.
@Dustin-Kelley
Dustin-Kelley requested a review from camrun91 October 8, 2026 14:22
@Dustin-Kelley
Dustin-Kelley marked this pull request as ready for review October 8, 2026 14:23
Comment thread packages/ui/src/components/bible-reader.test.tsx Outdated
Combine the Arabic and Welsh checks into one test and restore the previous language in try/finally.
@changeset-bot

changeset-bot Bot commented Oct 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2c72ff5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@youversion/platform-react-ui Patch
vite-react Patch
@youversion/platform-core Patch
@youversion/platform-react-hooks Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@abharms abharms left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@camrun91 camrun91 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Dustin-Kelley
Dustin-Kelley merged commit 60d022e into main Oct 8, 2026
21 checks passed
@Dustin-Kelley
Dustin-Kelley deleted the cursor/hardcode-reader-font-names-f22c branch October 8, 2026 16:51
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.

4 participants