This custom code upgrades Super’s native multi-language control into a compact, responsive navbar dropdown with matching flags, language codes, and a clear selected state.

Recommended setup
- Set up the Super’s built-in multi-language feature (Pro Plan) and configure the required languages before installing the custom code.
- Confirm that Super’s original language switcher is visible and that its language links work correctly.
- On desktop, the dropdown can display up to 10 language rows when enough viewport space is available. Longer lists remain accessible through internal scrolling.
Installation
- Open your site in the Super Dashboard.
- Go to the Code section.
- Remove any previous language-switcher stylesheet or JavaScript.
- Add this stylesheet to the Head:
- Add this script to the Head:
- Save your changes.
- Publish the site or refresh the pages.
- Refresh the live page and test at least two language options on desktop and mobile.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/super-so/super-so.github.io@master/switcher/langswitcher.css"/><script defer src="https://cdn.jsdelivr.net/gh/super-so/super-so.github.io@master/switcher/langswitcher.js"></script>Behavior and limitations
- The switcher reads the language choices provided by Super.
- The current language is detected automatically and displayed with its associated flag and base language code, such as
EN,JA, orZH. - The opened dropdown uses specific locale codes where regional variants need to be distinguished, such as
EN-US,EN-GB,ZH-CN,ZH-TW,PT-BR, andPT-PT. - The currently selected language is shown with a highlighted row and checkmark.
- Longer language lists use internal vertical scrolling.
- The menu includes positioning adjustments for standard navbars, hidden navbars, and hidden-navbar layouts with a sidebar.