-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
feat: add navbar to support multi language #42
Conversation
✅ Deploy Preview for sauced-intro ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job @geoffreylgv.
Apart from my specific comments, here is one of the reasons to not including French related translation in this PR.
- This PR introduces the basic structure to support multiple language.
- Once merged, to add a new idiom translation, I would just add the language in the
_layouts/navbar.md
and create a new folder under translations with the language short form, likept-br
for Brazilian Portuguese.
This is to avoid conflicts with #38 and #35.
And also, you can not add semi translated docs here. If this PR gets merged now, users will see that there's a French version, but they won't see because it is not available yet. :)
IMHO, the only change we need in this PR is:
* Languages
* [:us: English](/)
The rest you can include in #38.
Hello @antonio-pedro99 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Left a comment.
When I'm in dark mode, the text for the language gets lighter. I think this is a docsify thing, but let me know if there's a different setting we need to add. Also, do you know why the dropdown with the language disappears if you don't comment out |
Hi @BekahHW, for the dark/light mode on language dropdown, it's a docsify thing; let dig on settings that can help to have it also changeable.
And for the CSS commented, hmm there is a way actually to have the centered navbar behavior |
@geoffreylgv for the commented out portion, does that impact css elsewhere? I haven't tested it out, but before merging this in, I want to make sure that it's not impacting things I haven't seen |
No it doesn't affect, @BekahHW |
Hey @CBID2 @BekahHW @antonio-pedro99 By editing the position property from Final app-nav style .app-nav {
display: flex;
align-items: center;
justify-content: center;
position: relative !important;
margin-top: 16px !important;
margin-right: unset !important;
} Basically, this means to keep the |
Hey @geoffreylgv. I can't test it locally unless you grant me permission to push code to your PR. Invite me to your repo |
Ok @CBID2 done! Check your mail |
Thanks @geoffreylgv. I pushed the code. The text does come out light in dark mode, but once I hover over the language name, it darkens a bit. As far as other parts @BekahHW, they're ok. testing-navbar.mov |
Well done @geoffreylgv |
Woohoo! We did @geoffreylgv and @antonio-pedro99! Now onto PR #38 @BekahHW! |
Thank you all, we did it😃 |
Description
This PR is a feature adding a sidebar for the multi-language version of the intro course.
What type of PR is this? (check all applicable)
Related Tickets & Documents
Closes #16
Mobile & Desktop Screenshots/Recordings
Added tests?
Added to documentation?
[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?