Components
LocaleSelector
API reference for the <LocaleSelector> component
Overview
The <LocaleSelector> component is used to select the user's locale.
It is a client-side component that provides a drop-down to select the locale.
Reference
Returns
A component that allows the user to select their locale.
Examples
Basic usage
import { LocaleSelector } from 'gt-react';
export default function MyComponent() {
return (
<LocaleSelector />
);
}Notes
- The
<LocaleSelector>component lets you choose a different locale for your app. - The
<LocaleSelector>component isn’t available in the server component.
Next steps
How is this guide?