Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "i18n/I18nProvider"

Index

Type aliases

Variables

Type aliases

I18nProviderProps

I18nProviderProps: object

Type declaration

  • antdLocaleMapping: Record<string, Locale | undefined>
  • children: React.ReactNode | React.ReactNode[] | null
  • messagesMapping: Record<string, Record<string, string> | undefined>

Variables

Const I18nProvider

I18nProvider: (Anonymous function) = observer(({messagesMapping, antdLocaleMapping, children}: I18nProviderProps) => {const mainStore = getMainStore();if (!mainStore || !mainStore.locale) {return null;}return (<IntlProvider locale={mainStore.locale} messages={messagesMapping[mainStore.locale]}><ConfigProvider locale={antdLocaleMapping[mainStore.locale]}>{children}</ConfigProvider></IntlProvider>);})

Generated using TypeDoc