Skip to content

Conversation

@anderswr
Copy link
Owner

Motivation

  • Ensure the home page "See sample report" button uses the same external sample-report URL for every language.
  • Avoid hardcoded English-only links in the UI and make the sample link configurable via the i18n data.

Description

  • Move the sample report URL into locale files as ui.home.example_link and add the key to all locale JSON files (13 languages updated).
  • Update the home client to read the link from i18n by changing www/app/home/HomeClient.tsx to use t(dict, "ui.home.example_link", "https://sleep-test.org/result/sgBetFGTxra") for the Link href.
  • Commit message: Localize sample report link and updated the listed locale files under www/public/locales/*.json.

Testing

  • No automated tests were run for this content-only change.
  • Manual verification: the ui.home.example_link key is present in all updated locale files and HomeClient.tsx reads it as the href.
  • Lint/build not executed as part of this change.
  • If desired, run the dev server and navigate to the home page in different languages to confirm the link points to https://sleep-test.org/result/sgBetFGTxra.

Codex Task

@vercel
Copy link

vercel bot commented Jan 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
sleep-test-org Ready Ready Preview, Comment Jan 11, 2026 9:44pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants