Skip to content

Translate search button on NotFound page#2366

Merged
jordanarldt merged 1 commit into
canaryfrom
ja/add-not-found-translations
Jun 3, 2025
Merged

Translate search button on NotFound page#2366
jordanarldt merged 1 commit into
canaryfrom
ja/add-not-found-translations

Conversation

@jordanarldt

Copy link
Copy Markdown
Contributor

What/Why?

When writing e2e tests, I noticed that the "Search" button on the 404 page is not translated.

Testing

Tested locally via production build.

Migration

  1. Add "search" translation key in the "NotFound" translations
  2. In core/vibes/soul/sections/not-found/index.tsx, add a ctaLabel property and ensure it is used in place of the "Search" text
  3. In core/app/[locale]/not-found.tsx, pass the ctaLabel prop as the new translation key ctaLabel={t('search')}

@jordanarldt
jordanarldt requested a review from a team June 3, 2025 19:29
@changeset-bot

changeset-bot Bot commented Jun 3, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: cd44815

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

This PR includes changesets to release 1 package
Name Type
@bigcommerce/catalyst-core 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

@vercel

vercel Bot commented Jun 3, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
catalyst-canary ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 3, 2025 7:31pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
catalyst ⬜️ Ignored (Inspect) Jun 3, 2025 7:31pm
catalyst-au ⬜️ Ignored (Inspect) Visit Preview Jun 3, 2025 7:31pm
catalyst-uk ⬜️ Ignored (Inspect) Visit Preview Jun 3, 2025 7:31pm

@jordanarldt
jordanarldt force-pushed the ja/add-not-found-translations branch from 0f6cf60 to cd44815 Compare June 3, 2025 19:30
@jordanarldt
jordanarldt added this pull request to the merge queue Jun 3, 2025
Merged via the queue into canary with commit 2a7b05f Jun 3, 2025
9 checks passed
@jordanarldt
jordanarldt deleted the ja/add-not-found-translations branch June 3, 2025 19:34
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.

2 participants