Skip to content

Localize the public site across 22 locales - #553

Merged
Ducksss merged 3 commits into
devfrom
codex/site-multilingual-support
Sep 3, 2026
Merged

Ducksss merged 3 commits into
devfrom
codex/site-multilingual-support

Conversation

@Ducksss

@Ducksss Ducksss commented Sep 2, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • add explicit 22-locale routing, native-language switching, RTL support, and per-locale message catalogs for the public site
  • add Crowdin synchronization with structurally validated ICU catalogs and native-review publication status
  • keep machine translations and English fallbacks honest through canonical, robots, hreflang, sitemap, structured-data, docs-shell, and legal-copy policy
  • replace type-inferred Payload field localization with explicit semantic policies and an opt-in versioned migration
  • reject translation transport markers and avoid rewriting current non-localized installs whose legacy state predates localization-policy bookkeeping

Verification

  • pnpm test:release
  • 333 message keys validated across 21 translated catalogs
  • 675 integration tests passed; 620 browser tests passed across functional, component visual, template visual, accessibility, RTL, and WebKit suites
  • Production build generated 6,656 static pages

Registry Checklist

  • Registry changes keep generated public/r output out of git.
  • Component changes update source, manifest, docs, and installer tests together.
  • Payload target code keeps Local API and hook examples transaction-safe.

Notes

  • Tracking context: CHA-205
  • The Crowdin workflow requires CROWDIN_PROJECT_ID and CROWDIN_PERSONAL_TOKEN repository secrets.
  • Non-English machine translations remain noindex,follow until a resource is marked reviewed in messages/status.json.

Copilot AI lite review requested due to automatic review settings September 2, 2026 15:22
@vercel

vercel Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
payload-components Ready Ready Preview Sep 3, 2026 6:21am UTC
payload-components-97bf Ready Ready Preview Sep 3, 2026 6:21am UTC

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 158 files, which is 58 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: d65c1ffd-a1d7-4f6f-a2e1-0d8370144f3a

📥 Commits

Reviewing files that changed from the base of the PR and between 464f036 and 90fe46a.

⛔ Files ignored due to path filters (2)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • public/blog/shared-fields-across-component-families/figure-01-shared-fields.svg is excluded by !**/*.svg
📒 Files selected for processing (158)
  • .github/workflows/crowdin.yml
  • DESIGN.md
  • content/docs/cli.mdx
  • content/docs/localization.mdx
  • crowdin.yml
  • messages/README.md
  • messages/en.json
  • messages/locales/ar.json
  • messages/locales/de.json
  • messages/locales/es.json
  • messages/locales/et.json
  • messages/locales/fi.json
  • messages/locales/fr.json
  • messages/locales/he.json
  • messages/locales/hu.json
  • messages/locales/id.json
  • messages/locales/it.json
  • messages/locales/ja.json
  • messages/locales/ko.json
  • messages/locales/nl.json
  • messages/locales/pl.json
  • messages/locales/pt.json
  • messages/locales/sr.json
  • messages/locales/th.json
  • messages/locales/tr.json
  • messages/locales/uk.json
  • messages/locales/vi.json
  • messages/locales/zh.json
  • messages/status.json
  • package.json
  • payload-components/source/blocks/CallToActionSignup/config.ts
  • payload-components/source/blocks/CallToActionSplit/config.ts
  • payload-components/source/blocks/ComparatorGrid/config.ts
  • payload-components/source/blocks/ComparatorStack/config.ts
  • payload-components/source/blocks/ComparatorTable/config.ts
  • payload-components/source/blocks/ContactChannels/config.ts
  • payload-components/source/blocks/ContactRoutingForm/config.ts
  • payload-components/source/blocks/ContentCommunity/config.ts
  • payload-components/source/blocks/ContentFeatureMedia/config.ts
  • payload-components/source/blocks/ContentFeatureSplit/config.ts
  • payload-components/source/blocks/ContentList/config.ts
  • payload-components/source/blocks/ContentListColumns/config.ts
  • payload-components/source/blocks/ContentListIcons/config.ts
  • payload-components/source/blocks/ContentQuote/config.ts
  • payload-components/source/blocks/ContentRows/config.ts
  • payload-components/source/blocks/ContentShowcase/config.ts
  • payload-components/source/blocks/ContentSplitRows/config.ts
  • payload-components/source/blocks/ContentStats/config.ts
  • payload-components/source/blocks/EmbedBasic/config.ts
  • payload-components/source/blocks/FaqGrouped/config.ts
  • payload-components/source/blocks/FaqIcons/config.ts
  • payload-components/source/blocks/FeatureAccordion/config.ts
  • payload-components/source/blocks/FeatureBento/config.ts
  • payload-components/source/blocks/FeatureCardsMedia/config.ts
  • payload-components/source/blocks/FeatureGridBasic/config.ts
  • payload-components/source/blocks/FeatureIconGrid/config.ts
  • payload-components/source/blocks/FeatureSplit/config.ts
  • payload-components/source/blocks/FeatureSteps/config.ts
  • payload-components/source/blocks/FooterCentered/config.ts
  • payload-components/source/blocks/FooterColumns/config.ts
  • payload-components/source/blocks/HeroAurora/config.ts
  • payload-components/source/blocks/HeroBasic/config.ts
  • payload-components/source/blocks/HeroKinetic/config.ts
  • payload-components/source/blocks/HeroProductTilt/config.ts
  • payload-components/source/blocks/HeroSplit/config.ts
  • payload-components/source/blocks/HeroVideo/config.ts
  • payload-components/source/blocks/IntegrationTestimonial/config.ts
  • payload-components/source/blocks/PricingEnterprise/config.ts
  • payload-components/source/blocks/StatsGrid/config.ts
  • payload-components/source/blocks/StatsInline/config.ts
  • payload-components/source/blocks/StatsProof/config.ts
  • payload-components/source/blocks/TeamBios/config.ts
  • payload-components/source/blocks/TeamGrid/config.ts
  • payload-components/source/blocks/TeamRoster/config.ts
  • payload-components/source/blocks/shared/callToActionFields.ts
  • payload-components/source/blocks/shared/comparatorFields.ts
  • payload-components/source/blocks/shared/contactFields.ts
  • payload-components/source/blocks/shared/contentFields.ts
  • payload-components/source/blocks/shared/faqFields.ts
  • payload-components/source/blocks/shared/featureFields.ts
  • payload-components/source/blocks/shared/footerFields.ts
  • payload-components/source/blocks/shared/heroFields.ts
  • payload-components/source/blocks/shared/integrationFields.ts
  • payload-components/source/blocks/shared/localizeFields.ts
  • payload-components/source/blocks/shared/logoCloudFields.ts
  • payload-components/source/blocks/shared/pricingFields.ts
  • payload-components/source/blocks/shared/statsFields.ts
  • payload-components/source/blocks/shared/teamFields.ts
  • payload-components/source/blocks/shared/testimonialFields.ts
  • src/app/[locale]/about/page.tsx
  • src/app/[locale]/blog/[slug]/page.tsx
  • src/app/[locale]/blog/blog.css
  • src/app/[locale]/blog/layout.tsx
  • src/app/[locale]/blog/page.tsx
  • src/app/[locale]/brand-guide/page.tsx
  • src/app/[locale]/components/page.tsx
  • src/app/[locale]/components/preview/[slug]/page.tsx
  • src/app/[locale]/docs/[[...slug]]/page.tsx
  • src/app/[locale]/docs/docs.css
  • src/app/[locale]/docs/layout.tsx
  • src/app/[locale]/layout.tsx
  • src/app/[locale]/llms.mdx/docs/[[...slug]]/route.ts
  • src/app/[locale]/not-found.tsx
  • src/app/[locale]/og/blog/[slug]/image.png/route.tsx
  • src/app/[locale]/og/docs/[...slug]/route.tsx
  • src/app/[locale]/page.tsx
  • src/app/[locale]/privacy/page.tsx
  • src/app/[locale]/templates/[slug]/opengraph-image.tsx
  • src/app/[locale]/templates/[slug]/page.tsx
  • src/app/[locale]/templates/[slug]/preview/[[...page]]/page.tsx
  • src/app/[locale]/templates/opengraph-image.tsx
  • src/app/[locale]/templates/page.tsx
  • src/app/globals.css
  • src/app/locale/route.ts
  • src/app/sitemap.ts
  • src/components/blog/BlogCard.tsx
  • src/components/site/CatalogThemeControl.tsx
  • src/components/site/ComponentCatalogBrowser.tsx
  • src/components/site/LanguageSwitcher.tsx
  • src/components/site/SiteHeader.tsx
  • src/components/site/TranslationNotice.tsx
  • src/components/site/sections/HeroSection.tsx
  • src/i18n/Link.tsx
  • src/i18n/config.ts
  • src/i18n/message-catalog.ts
  • src/i18n/publication.ts
  • src/i18n/request.ts
  • src/i18n/routing.ts
  • src/lib/i18n.ts
  • src/lib/layout.shared.tsx
  • src/lib/source.ts
  • src/lib/structured-data.ts
  • src/proxy.ts
  • tests/e2e/consent.e2e.spec.ts
  • tests/e2e/frontend.e2e.spec.ts
  • tests/e2e/geo.e2e.spec.ts
  • tests/int/analytics-contract.int.spec.ts
  • tests/int/blog-platform.int.spec.ts
  • tests/int/fumadocs-site.int.spec.ts
  • tests/int/payload-components-add-command.int.spec.ts
  • tests/int/payload-components-cli.int.spec.ts
  • tests/int/payload-components-doctor-command.int.spec.ts
  • tests/int/payload-components-localization.int.spec.ts
  • tests/int/payload-components-update-command.int.spec.ts
  • tests/int/site-i18n.int.spec.ts
  • tests/int/template-showcases.int.spec.ts
  • tests/int/visual-standards.int.spec.ts
  • tools/blog/visual-system/artifacts.ts
  • tools/i18n/catalog.ts
  • tools/i18n/check.ts
  • tools/payload-components/cli.ts
  • tools/payload-components/commands/add.ts
  • tools/payload-components/commands/doctor.ts
  • tools/payload-components/commands/localize.ts
  • tools/payload-components/commands/update.ts
  • tools/payload-components/inventory.ts
  • tools/payload-components/state.ts
  • tools/payload-components/types.ts

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Summary:
- fix localized asset paths, default-locale parsing, and privacy fallbacks
- use reviewed docs-shell translations and reject transport markers
- avoid rewriting legacy state for current non-localized installs

Rationale:
- never present duplicated or unreviewed legal copy as translated content
- stop malformed translation imports and unnecessary CLI updates

Tests:
- pnpm test:release through the production build
- E2E_PORT=3123 PLAYWRIGHT_SERVER_MODE=production pnpm run test:e2e

Co-authored-by: Codex <[email protected]>
@Ducksss Ducksss changed the title feat(i18n): localize the public site Localize the public site across 22 locales Sep 2, 2026
@Ducksss

Ducksss commented Sep 2, 2026

Copy link
Copy Markdown
Owner Author

[codex] Changes since last review:

  • Corrected localized Tailwind source paths and explicit default-locale parsing.
  • Kept unreviewed privacy and docs-shell content on honest English fallback.
  • Rejected translation transport markers and repaired affected Hebrew/Japanese messages.
  • Prevented unnecessary updates for legacy non-localized install state.
    Commit: f53a9cd
    Tests: full release gate complete (333 keys across 21 translated catalogs, 675 integration tests, 620 browser tests, 6,656-page production build).

Summary:
- integrate lifecycle hardening before localization support
- preserve transactional update ownership and explicit localization migration
- stabilize the mobile wiring assertion through hydration

Rationale:
- keep dev's reviewed CLI architecture while retaining semantic-v1 migration gates

Tests:
- E2E_PORT=3133 pnpm test:release

Co-authored-by: Codex <[email protected]>
@Ducksss

Ducksss commented Sep 3, 2026

Copy link
Copy Markdown
Owner Author

[codex] Integrated current dev at merge commit 90fe46a9 and resolved the CLI overlap by preserving both contracts:

  • lifecycle hardening remains transactional and ownership-aware
  • legacy localized installs still require --accept-localization-policy-change before adopting semantic-v1
  • ordinary add cannot silently change an existing localized schema
  • the 390px wiring assertion now polls the live node through hydration without weakening its wrap/overflow checks

Verification on the integrated tree:

  • E2E_PORT=3133 pnpm test:release
  • 333 catalog keys across 21 translated locales
  • 695 integration tests passed (1 skipped)
  • 6,656 static pages built
  • all 620 browser checks passed

The earlier Linux MDX import-analysis failure did not reproduce locally after this sync; fresh remote checks are now running.

@Ducksss
Ducksss merged commit 8dc23df into dev Sep 3, 2026
12 checks passed
@Ducksss
Ducksss deleted the codex/site-multilingual-support branch September 3, 2026 07:01

This branch was successfully deployed

2 active deployments
Preview – payload-components-97bf — 90fe46a9 Deployed Sep 3, 2026 by vercel[bot]
Preview – payload-components — 90fe46a9 Deployed Sep 3, 2026 by vercel[bot]
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