Select component when your app already uses shadcn and you want the language selector to match the rest of your interface.
Install Select
- npm
- pnpm
- yarn
- bun
Create the selector
Connect shadcn’s controlledSelect to anylang with value and onValueChange.
Use it anywhere
Render the selector anywhere insideAnyLangProvider.
The selector reads available languages from the generated anylang runtime, so it updates when you change
targetLocales and run anylang scan again.