LocaleProvider
▸ LocaleProvider(props
): Element
Provides the locale
Parameters
Name | Type |
---|---|
props | LocaleProviderProps |
Returns
Element
Example
<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)