This library is still in development and is available only for internal usage at VTEX.
Skip to main content

Localization

Version: 0.132.0

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

NameTypeDescriptionRequiredDefault
localestringCurrent locale🚫-
childrenReactNodeContent to apply the locale🚫-