feat(lng): Added change language on the fly#456
Conversation
afc0175 to
1318774
Compare
Codecov Report
@@ Coverage Diff @@
## master #456 +/- ##
==========================================
- Coverage 84.22% 83.41% -0.81%
==========================================
Files 141 142 +1
Lines 1014 1067 +53
Branches 210 211 +1
==========================================
+ Hits 854 890 +36
- Misses 127 145 +18
+ Partials 33 32 -1
|
juanpicado
left a comment
There was a problem hiding this comment.
Looks great ! But few things I think worth to highlight
- We don't persist the language, on refresh I lose my previous selection, as we do with dark mode.
- Mobile view does not look fine, the menu + dark mode does not fit.
What do you think?
|
I just merged French, I think we need also to update it here. |
119d918 to
d52a2a5
Compare
|
@juanpicado thanks for the nice feedback! I just added the current language to localStorage, so it should be fine now if you reload the page ... I also updated the menu background color in dark mode 😉 Regarding the header on mobile devices, I plan to refactor it by adding a mobile menu, because atm it is impossible to add another icon / information ... as you said, it looks odd ... I will do this in a follow-up PR ... but in the meantime, the component switchLanguage will be hidden on smaller devices I'm not having much time lately, but I will try to do that as soon as I have some free time 🙂 |
|
Kudos, SonarCloud Quality Gate passed!
|
|
Thanks for your PR, the @verdaccio/ui package will be accessible from here for testing purposes: |
Perfect, good solution 👍 |
Change Language on the fly