Components
LocaleProvider
Code

LocaleProvider

LocaleProvider(props): Element

Provides the locale

Parameters

NameType
propsLocaleProviderProps

Returns

Element

Example

example.tsx
<LocaleProvider locale="pt-BR">...</LocaleProvider>
import React from 'react'
import { LocaleProvider } from '@vtex/shoreline-components'

export default function App() {
return (<>
<LocaleProvider locale="pt-BR">
...
</LocaleProvider>
</>
)}

Defined in

packages/components/src/locale/locale-provider.tsx:12 (opens in a new tab)