Skip to content

chore(examples): update website localization example #12476

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

francoishernandez
Copy link

Hi there 👋

What?

This is an attempt at providing an up to date localization example using the latest website template.

Why?

Getting familiar with payload, I wanted to dive into the localization part of it.
Though, I quickly faced the issue of the official example being not fully up to date.
Such examples are critical (IMO) in smoothing the learning curve and facilitating adoption of complex features.

I am not the only one having the issue it seems.

How?

It's mostly based on #10134, applying relevant parts to the latest website template (created with npx create-payload-app@latest on May 21st 2025).

To improve readability, you can check a diff between the "raw" website code and the proposed changes here:
https://github.com/francoishernandez/payload-website-template/pull/1/files

--> This can also be helpful (I hope!) for anyone trying to pinpoint what kind of adaptations are required to enable localization on any payload project.

Important Note

Changes are probably not exhaustive. This is merely a proposal to gauge interest. If that's considered merge-worthy, we can probably have another go to refine or extend. (E.g. better seeding, messages and some components lacking locale support.)

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