Рет қаралды 987
Welcome back to the "Remix Done Right" series! In this episode, we'll delve even deeper into the world of internationalization (i18n) in Remix Vite projects.
Join me as I show you how to seamlessly integrate i18n localization using URL segments.
🛠️ What You'll Learn in Part 4:
Custom routing configurations: Learn how to use remix routing conventions to your adventage and to leverage it to create custom urls
Language Switcher: Implement a language switcher to redirect users to the correct language URL.
Hydration avoidance: Learn how to avoid hydration mismatches with the translations in different urls by using smart url detection.
🚀 Get Ready to Remix:
Follow along and code with me as we lay the foundation for a globally accessible Remix e-commerce application with robust internationalization support.
Whether you're new or a seasoned developer, this tutorial is designed to be beginner-friendly yet packed with advanced insights.
🔗 Resources and Links:
GitHub Repo: github.com/AlemTuzlak/remix-e...
Remix Documentation: remix.run/docs/en/main
remix-custom-routes: github.com/jacobparis-insider...
👍 Don't forget to like, comment, and subscribe for more episodes in this series! Join our coding community and let's build something amazing together.
📌 Stay Connected:
Twitter: / alemtuzlak59192
GitHub: github.com/AlemTuzlak
⏱️ Timestamps:
00:00 - Intro
01:00 - Adding remix-custom-routes
01:32 - Creating our custom route convention
04:28 - Adding our lang to the url
05:16 - Extending our remix configuration
06:00 - Adding language switching to root.tsx
07:44 - First demo with the url
08:07 - Adding language detection to avoid hydration mismatches
11:40 - Demo with no hydration issues
13:00 - Finishing up by adding a Language Switcher component
14:46 - Final demo
🔖 Tags:
Remix framework, Vite, Remix Vite, internationalization, i18n, web development, frontend development, Remix tutorial, coding tutorial, i18n tutorial, Remix Vite tutorial, web app localization, i18n setup, language switcher, translating content, developer tools, open source, coding community.