import { component$, getLocale } from "@builder.io/qwik"; import { _, locales } from "compiled-i18n"; export const LocaleSelector = component$(() => { const currentLocale = getLocale(); return ( <> {locales.map((locale) => { const isCurrent = locale === currentLocale; return ( // Note, you must use `` and not `` so the page reloads {locale} ); })} ); });