-
Notifications
You must be signed in to change notification settings - Fork 430
persist-preferredLanguage #174
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
persist-preferredLanguage #174
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Hi @PedroMarianoAlmeida , thanks for the work! The only reason why I didn't do this myself is because I consider that changing the language in the component page should instantly be reflected in the header as well and I didn't allocate time to implement this. Would you be interested in this challenge as part of your PR? |
Yep that's it :) |
Screen.Recording.2025-04-01.at.10.26.25.PM.movNote: I was also considering persisting the Default/Tailwind option too (because I always need to click for the Tailwind option). Can I do it in a separate MR? |
Thanks! I don't really want to do the same for the styling choice, so I'd say just leave it as is. |
…ferredLanguage persist-preferredLanguage
Before:
Screen.Recording.2025-03-30.at.1.08.42.AM.mov
After:
Screen.Recording.2025-03-30.at.1.09.56.AM.mov
Note: The
localStorage.getItem('preferredLanguage') || 'JS';
was already on the code, so I just added the SET when the user updates the option