Closed KevinLatino closed 21 hours ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
revolutionary-farmers | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 25, 2024 0:30am |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Pull Request Overview
📝 Summary
This PR implements the functionality for multilingual support, enabling users to switch between different languages dynamically. (es / en are the lenguages added)
🪧 Related Issues
🏁 Type of Change
Mark with an
x
all the checkboxes that apply (like[x]
).🔄 Changes Made
Refactored Project Structure
[locale]
folder inside theapp
directory.localhost:3001/en
).Added i18n Folder
i18n
folder to centralize and organize localization logic:routing
: Defines supported languages and their respective routes.request
: Manages locale-specific requests to ensure consistent behavior.Added Messages Folder
messages
directory containing JSON files for each supported language.Implemented Middleware for Locale Detection
/en
,/de
)./en
).Added Language Store
localStorage
, ensuring users' choices are retained across sessions.LanguageSwitcher
component and other parts of the app requiring localization.Integrated LanguageSwitcher Component
LanguageSwitcher
component to the application, enabling users to dynamically switch between supported languages.LanguageSwitcher
updates the language in the store and redirects the user to the appropriate localized route.Header
component for accessibility across the site.Additional Updates
RootLayout
to dynamically load translation messages based on the selected language.🚀 Implementation Details
🛠 Technical Notes
✅ Tests Results
Test Coverage
📸 Evidence
🔍 Testing Notes
🔜 Next Steps
Summary by CodeRabbit
Release Notes
New Features
LanguageSwitcher
component for easy language selection.Bug Fixes
Documentation
Chores