Components

Locale Toggle

A Paraglide-powered dropdown for switching between configured locales with localized language labels.

Install
Add this registry item to your app with shadcn.
bunx --bun shadcn@latest add https://krakstack.net/r/locale-toggle.json

Overview

locale-toggle provides a compact language switcher for Paraglide projects. It reads the current locale from Paraglide, lists the configured locales, and updates the active locale from a dropdown menu.

Features

  • Uses Paraglide getLocale, setLocale, and locales
  • Localized menu label and locale names
  • Icon-only trigger with accessible screen-reader text
  • Includes component-scoped message files

Usage

import { LocaleToggle } from "@/components/ui/locale-toggle";

<LocaleToggle />
Dependencies
Packages and shadcn components required by this registry item.

Dependencies

Registry Dependencies