Skip to main content
Use shadcn/ui’s Select component when your app already uses shadcn and you want the language selector to match the rest of your interface.

Install Select

Create the selector

Connect shadcn’s controlled Select to anylang with value and onValueChange.

Use it anywhere

Render the selector anywhere inside AnyLangProvider.
The selector reads available languages from the generated anylang runtime, so it updates when you change targetLocales and run anylang scan again.