media contract

LocaleSwitcher

Language / region selector. Lives in the header or settings footer.

Variants

  • menu
  • segmented

Sizes

  • sm
  • md

Example

<LocaleSwitcher current={locale} options={locales} />

Usage rule

Show the locale label in its own language ("Türkçe", not "Turkish").

The full LocaleSwitcher contract has 4 more rules, plus the do-not patterns. Get the full recipe.

Get the LocaleSwitcher contract in your project.