useTranslation

useTranslation is a custom wrapper around next-intl's useTranslation.

Example

Params
paramDescriptionTypeDefault
namespacesAccess the namespace of the translation message.string -
returnDescriptionTypeDefault
tA translation function that returns the translated string. It also provided other translation functions, refer to next-intl docs for more details usage.(key: string, nameSpace?: string) => string-