Skip to content

LocaleSwitcher

stable

Locale selection dropdown with flag, native name, BCP 47 code, and RTL indicator. Two variants: compact (icon+code) and full (flag+name).

NavigationInteractive/Storybook ↗
import { LocaleSwitcher } from "@nodus/design-system"
Loading demo…

Props

valuerequired
Type stringDefault

Current locale code (BCP 47)

onChangerequired
Type (locale: string) => voidDefault

Called when the user selects a new locale

variant
Type "compact" | "full"Default "full"

compact: flag + code; full: flag + native name

locales
Type LocaleOption[]Default

Available locales. Defaults to DS_LOCALES (7 locales: en-US, ar-SA, he-IL, zh-CN, ja-JP, de-DE, fr-FR)

disabled
Type booleanDefault false

Disable the switcher

label
Type stringDefault "Switch locale"

aria-label for the trigger button

Metadatasemantictypebordersurfacemotion
Design Rationale

This component was designed to express:

Explore Related

Was this helpful?