Skip to content

Translate the customer portal#12311

Draft
sebastianekstrom wants to merge 5 commits into
mainfrom
chore/i18n-strings-customer-portal
Draft

Translate the customer portal#12311
sebastianekstrom wants to merge 5 commits into
mainfrom
chore/i18n-strings-customer-portal

Conversation

@sebastianekstrom

@sebastianekstrom sebastianekstrom commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary by cubic

Localized the entire customer portal with a shared locale context and added robust locale resolution, covering both authenticated and unauthenticated routes. Also decoupled portal UI from dashboard dependencies to keep components self-contained.

  • New Features
    • Introduced PortalLocaleProvider and useTranslations; wrapped CustomerPortalPage and unauth pages (/authenticate, /claim, /request, /verify-email).
    • Added resolvePortalLocale to pick locale from ?locale, customer profile, or Accept-Language (falls back to default if localization is disabled).
    • Replaced hardcoded text with t(...) across auth flows, navigation, overview, orders, subscriptions, settings (payment methods, billing details), team (roles), usage, wallet, seats, pagination, and payment retry.
    • Decoupled from dashboard: added local OrderStatus and moved WalletCard under the portal.
    • Expanded portal.* keys and updated locales (en, de, es, fr, hu, it, ja, ko, nl, pt, pt-PT, sv); refreshed i18n cache.

Written for commit 6279691. Summary will update on new commits.

Review in cubic

@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
polar Ready Ready Preview, Comment Jun 10, 2026 3:59pm
polar-sandbox Ready Ready Preview, Comment Jun 10, 2026 3:59pm
polar-test Ready Ready Preview, Comment Jun 10, 2026 3:59pm

Request Review

@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Preview Environment
URL: https://polar-preview-vm.taildbff7b.ts.net/pr-12311
API: https://polar-preview-vm.taildbff7b.ts.net/pr-12311/v1/
Logs: backend
SHA: 4db4857b8a56be5700cc3b719a1ec3b0d72a69c7

@sebastianekstrom sebastianekstrom force-pushed the chore/i18n-strings-customer-portal branch from aa75bce to 4db4857 Compare June 10, 2026 15:01
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