Skip to content
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

Refactor playground to be more useful #1623

Open
amannn opened this issue Dec 19, 2024 · 0 comments
Open

Refactor playground to be more useful #1623

amannn opened this issue Dec 19, 2024 · 0 comments
Labels
contributions welcome Good for people looking to contribute documentation Improvements or additions to documentation

Comments

@amannn
Copy link
Owner

amannn commented Dec 19, 2024

Currently, https://github.com/amannn/next-intl/tree/main/examples/example-app-router-playground is used for e2e testing.

That's absolutely fine, but I think if we'd refactor it to something like https://app-router.vercel.app it could also be helpful to document more advanced use cases.

Therefore, I'd propose to refactor the playground example to:

  1. Look nicer and be approachable to users
  2. Keep all existing tests
  3. Group tests logically into different sections of the app (i.e. no home page that demonstrates all kinds of wild patterns)

Related to this, https://next-intl-example-app-router.vercel.app is also a bit random in what it demonstrates. It's a basic test for i18n routing, it might make sense to clarify which patterns to demonstrate on this example and potentially include a few more features like date formatting. This is TBD.

@amannn amannn added documentation Improvements or additions to documentation contributions welcome Good for people looking to contribute labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributions welcome Good for people looking to contribute documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant