Language links
Add a language link to switch between languages on your page. Although this is optional, it is usually mandatory to provide the language toggle link.
Implementation
Language links are added in the top
section of the page. There are three configuration options:
"href"
: the url of the page in the other language."text"
: the text of the link that is displayed"lang"
: the language (code) of the web page
defTop.outerHTML = wet.builder.top({ ... "lngLinks": [{ "lang": "fr", "href": "languagelinks-fr.html", "text": "Français" }] ... });