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

docs(examples): add Remix Vite + Babel example #1946

Merged
merged 3 commits into from
Jun 12, 2024

Conversation

depsimon
Copy link
Contributor

@depsimon depsimon commented May 29, 2024

Description

This PR adds a Remix example that works with Vite & the Babel plugin.

I integrated a modified version of remix-i18n that makes it easy to detect the locale from multiple sources in Remix.

This should probably live in its own package at some point.

Copy link

vercel bot commented May 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
js-lingui ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2024 4:22pm

Copy link

github-actions bot commented May 29, 2024

size-limit report 📦

Path Size
./packages/core/dist/index.mjs 2.88 KB (0%)
./packages/detect-locale/dist/index.mjs 723 B (0%)
./packages/react/dist/index.mjs 1.67 KB (0%)
./packages/remote-loader/dist/index.mjs 7.26 KB (0%)

Copy link

@ericchernuka ericchernuka left a comment

Choose a reason for hiding this comment

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

@depsimon this is great! I liked the detection code. It's a nice tie back to how Remix i18next's detection is abstracted so it'll be easy to knowledge transfer. Just a single question regarding a title example.

examples/remix-vite-babel/app/root.tsx Show resolved Hide resolved
Copy link
Contributor

@andrii-bodnar andrii-bodnar left a comment

Choose a reason for hiding this comment

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

@depsimon thank you! 🚀

@andrii-bodnar andrii-bodnar merged commit 0a14aa4 into lingui:main Jun 12, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants