-
Notifications
You must be signed in to change notification settings - Fork 7
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
[feature request] show all languages in navbar or a button with the active language instead of "world button" #91
Comments
Thank you! I think @yabellini will agree with you as I think she said the world button was not optimal. Yani, could you please refresh my memory? Thanks for asking about credits. You don't have to add them at all, even our very own https://devguide.ropensci.org/ (which was why we created babelquarto) doesn't refer to the tool at all. 🙈 |
I agree with @tjebo and like the suggestion to have the language as a dropdown menu. I would use the full name: |
About the credit for the package, I also agree with @maelle , but if you want to mention it anyway, some website mention the tools they use in a kind of footer, here is an example of my website mentioning Hugo Apero: Thank you for asking! |
Thanks @yabellini! Let's collect others' thoughts and then I could work on this next year. @Nenuial @joelnitta do you have any preference regarding the language button? Would using a Wikipedia-style one be ok with you? I am not sure about showing the number of languages, as for most projects the goal won't be to have as many as possible. I like the language button on https://developer.mozilla.org/fr/docs/Web/HTML, it's really nice how one of them has an experimental button to indicate a language translation is in progress. |
I like the Mozilla one! I'm also okay with no showing the number of languages. It makes sense for Wikipedia, but probably not for us. |
thanks for your feedback and comments. I'm glad to hear that this is of interest. Maybe the below might also be of interest for you: For this to work, I have simply inserted a hyperlink to the portuguese index page. This works, but it feels a bit like a hack, because I am essentially using a link for a page that "not yet exists", and it might also break when you should maybe at some point modify the page structure. |
What if the following options were made available in the YAML configuration:
For the text link... maybe an R function could be provided that returns a link to the current page in the selected language? In a Quarto file:
It is a fundamentally different use of |
Maybe this is already possible, but I didn't see this in the vignette nor in the readme.
I wondered if it might be possible, instead of having a "world" button and a dropdown, to show the active language on the button, (with same functionality, a dropdown). (maybe by default the language code, e.g. "EN","FR", etc)
Or, if we have only say two languages, to show both languages as buttons?
Anyways, thanks for the package! It helped me creating my bilingual website. I am more than happy to credit your package if you have a suggestion where you would usually put those credits.
The text was updated successfully, but these errors were encountered: