Skip to content

feat(testimonials): filter quotes by locale with English fallback#12

Merged
spokodev merged 1 commit into
mainfrom
feat/testimonials-locale-filter
Jul 7, 2026
Merged

feat(testimonials): filter quotes by locale with English fallback#12
spokodev merged 1 commit into
mainfrom
feat/testimonials-locale-filter

Conversation

@spokodev

@spokodev spokodev commented Jul 7, 2026

Copy link
Copy Markdown
Owner

What

Testimonials now render in the speaker's own language: TestimonialList shows the quotes whose locale matches the active locale, and falls back to the English set when none match. findTestimonialFor(slug, locale) (case-page inline quote) prefers the active-locale quote, then English, then any.

Why

We're about to collect real client testimonials in mixed languages — Nazar (GreenOlivia) in Ukrainian, Eduardo Pêgo in Portuguese, RSR/Inside-Out in English. Without this filter every quote showed on every locale (a Ukrainian quote would appear on the German site). Quotes stay in the speaker's authentic voice; each locale sees a coherent set.

Notes

  • No visible change today — the testimonials array is still empty and the block hides itself.
  • Minimal touch: uses useLocale() inside the two server components; no changes to about or work/[slug] pages.
  • pnpm typecheck clean.

🤖 Generated with Claude Code

Testimonials now render in the speaker's own language: show the quotes
said in the active locale, falling back to the English set when none
match (so a German visitor sees the English quotes, not a stray
Ukrainian one). Case-page inline quote respects locale too.

No behaviour change today (the array is still empty); this unblocks
collecting real UA/PT/EN client quotes without them cross-showing on
every locale.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@spokodev
spokodev merged commit 5afe92d into main Jul 7, 2026
2 checks passed
@spokodev
spokodev deleted the feat/testimonials-locale-filter branch July 7, 2026 14:19
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