Room for improvement with Remix + i18n #3847
Replies: 2 comments 13 replies
-
I don't think you're being "too nerdy" about this, Remix just doesn't have a good story for i18n right now (after setting up Until then I'm probably just going to try rolling i18n manually with some clever routing and loaders, with the hope that in the future something stable comes out that ticks more of the boxes. |
Beta Was this translation helpful? Give feedback.
-
Hi @Xiphe , any news about your project/case study since your last commit 3 months ago? |
Beta Was this translation helpful? Give feedback.
-
👋 Hey translation fans (or haters)
🚄 TL;DR:
If you have a minute to spare please have a look at
remix-polyglot
, my prove of concept about all the things that could be even better with i18n + remix.I'd love to get some feedback to wether I'm too nerdy about this or if I should continue pushing this discussion.
I just listened to the Call Kent podcast about "i18n and Remix" where @kentcdodds1 describes i18next and remix-i18next as the de-facto solutions to internationalisation with remix.
👍 I fully agree with this statement regarding "stood the test of time" and "adoption rate" criteria and would advise anyone planing to build a stable, translated app with remix to go with this exact solution.
But... as someone trying to optimise UX, performance and DX to the highest possible level 🚀, I want to point out some edge-cases and areas where I see room for improvement in the i18n sector.
remix-i18next
2.I've discussed this with @sergiodxa. And we both agree that remix needs a way to declare route dependencies as blocking in order to solve this.
/public
(like withremix-i18next
2) without further tooling makes this really hard if not impossible for most current remix stacks.The current LinksFunction is not sufficient here because it does not have access to route or cookies (where i18n state would be stored)
(this is also true for stylesheets)
To demonstrate that all these things are in fact solvable I've created
remix-polyglot
as a prove of concept.So If this sounds somewhat interesting to you, please get in touch with me 🙏.
1 Hi Kent, hope you don't mind the mention I'd really love know your opinions on this.
2 I don't want to bash remix-i18next in any way. I have the highest respect for the work done here. I feel referencing it is required to make my point and would love to help getting my findings integrated into the package given there is interest.
Beta Was this translation helpful? Give feedback.
All reactions