Language Icon #2553
-
|
Hello, if i configured extra.alternate in mkdocs.yml i have a menu where i can choose the language with the material icon "Transtlate". Is it possible to change/configure this icon? I saw on source of mkdocs material in partials/header.html the following line Thanks in advance for your help Regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
It's still undocumented, but should work if set from theme:
icon:
translate: "material/translate" |
Beta Was this translation helpful? Give feedback.
-
|
Just for reference in case someone gets to this question and wonders why it doesn't work for them: theme:
icon:
alternate: octicons/globe-24 |
Beta Was this translation helpful? Give feedback.
Just for reference in case someone gets to this question and wonders why it doesn't work for them:
The configuration given in the answer isn't correct (at least, it didn't work for me). The correct setting name is
theme.icon.alternate, nottheme.icon.translate. For example, add the following tomkdocs.ymlto change the icon to:octicons-globe-24::