Fejlesztőknek
Kezdj bele
Témák/Theme SDK/Modules/chrome/Defaults: LocaleSwitcher

Defaults: LocaleSwitcher

Ez az oldal még csak angolul érhető el.

The defaults of @poltura/theme-sdk/chrome, LocaleSwitcher to LocaleSwitcher.

Ezen az oldalon
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 | null

The 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

Utoljára frissítve