Function: useI18n()
useI18n():
object
Returns
object
children?
optional
children:ReactNode
defaultLocale
defaultLocale:
string
intl
intl:
IntlShape
loadLocaleData?
optional
loadLocaleData:LoadLocaleData
locale?
optional
locale:string
messages?
optional
messages:Messages
onError()?
optional
onError: (err
) =>void
Parameters
• err: Error
Returns
void
setLocale()
setLocale: (
language
) =>void
Parameters
• language: string
Returns
void