Localization
Some components are localized by default. It involves both language translation and rtl/ltr layouts.
I18nProvider
The I18nProvider allows you to change the default locale from the localized components, which is en-US by default.
import { experimental_I18nProvider as I18nProvider } from '@vtex/admin-ui'
function Example() {
return (
<I18nProvider locale="pt-BR">
<RootApp />
</I18nProvider>
)
}
Props
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| locale | string | Current locale | 🚫 | - |
| children | ReactNode | Content to apply the locale | 🚫 | - |