Defaults: LocaleSwitcher
The defaults of @poltura/theme-sdk/chrome, LocaleSwitcher to LocaleSwitcher.
On this page
import { … } from '@poltura/theme-sdk/chrome';LocaleSwitcher
The complete language and currency switcher: each group shows only when it offers a choice, and with neither it draws nothing.
LocaleSwitcher(props: LocaleSwitcherProps): ReactElement | nullThe dropdown's button shows the current language as label asks and the current currency's symbol, such as HU and Ft, divided by a thin rule; picking a currency switches through useCurrencySwitcher. A store with other storefronts adds them as a group of its own, each by its country's flag and name, moving there through useStorefrontSwitcher.
Props: LocaleSwitcherProps
import { LocaleSwitcher } from '@poltura/theme-sdk/chrome';
export function FooterLanguages() {
return <LocaleSwitcher display="inline" flags />;
}See also: useLocaleSwitcher