TranslatePress Language Switch
A language switcher for TranslatePress, rendered on the server.
Topics: Integration
Highlights
Server-side rendering
Flags or language names
Works in headers and menus
Accessibility
Current language is marked, links use the language as accessible name.
Privacy
No external requests.
Live demo
See it in action
Everything below is the real element, configured in Breakdance. Try it with your keyboard, zoom in, or open the page on your phone.
Requirement
Needs TranslatePress
The switcher reads the languages from TranslatePress and renders them on the server. This website is English only and TranslatePress is not active here, so the element below intentionally renders nothing.
In a multilingual site the element shows the language names or flags as links, marks the current language with aria-current and works inside menus and headers.