google / mdbook-i18n-helpers

Translation support for mdbook. The plugins here give you a structured way to maintain a translated book.
Apache License 2.0
127 stars 25 forks source link

How to display a toggle button #99

Open Demian101 opened 11 months ago

Demian101 commented 11 months ago

I want to know how to display a toggle button on my homepage after configuring the language folder, so that I can switch languages?

I looked at dojo's mdbook, and they seemed to have manually written some JavaScript dom code?

Is there some convenient way for me to add this toggle button to mdbook?

PLS ~

mgeisler commented 11 months ago

Hi @Demian101! Good question: we don't have a good solution for this right now and so we're also hand-coding the list of languages right now.

Eventually, @sakex's work on #70 will solve this.