How do I add a language switcher to my website?+
Pick your languages and style, copy the HTML where the switcher should appear, add the CSS to your stylesheet, and include the JavaScript before the closing body tag if you enabled same-page switching or the select style.
Does the language switcher work without JavaScript?+
Yes. The dropdown uses a native details element and the inline links are plain anchors, so both work without JavaScript. The script only keeps visitors on the equivalent page, and is required for the select style.
Should I use flags in a language switcher?+
Usually not. Flags represent countries, not languages: Spanish is spoken in many countries and Switzerland has four languages. Native language names are clearer, which is why flags are off by default.
Why show language names in their own language?+
A visitor who doesn't read your current language can still find theirs. Someone looking for German recognizes Deutsch far more easily than the word for German in a language they don't speak.
Is a language switcher good for SEO?+
It helps users and crawlers discover language versions through normal links, but it does not replace hreflang. Add the generated hreflang tags to each page's head so search engines understand which URLs are translations.
Does it support subdomains and query parameters?+
Yes. Choose subdirectories, subdomains, or a ?lang= parameter, and decide whether the default language has its own prefix. Links and the script follow that structure.