Skip to main content

useTranslation


Returns

NameTypeDescription
localeStringThe current locale
getTranslationFunctionThe function to get a translation. See below

getTranslation

NameMandatorydefault valueTypeDescription
translationKeyYStringThe key you'd like to get the translation from
defaultValueNStringThe value to display if the key is not found
parametersNRecord<string: any>parameters if you'd like to use parameters