Optional
bind'languageChanged'
Optional
bindSet which events on store trigger a re-render, can be set to false or string of events
''
Optional
defaultSet it to the default parent element created by the Trans component.
'div'
Optional
keyOptional keyPrefix that will be automatically applied to returned t function in useTranslation for example.
undefined
Optional
nsSet it to fallback to let passed namespaces to translated hoc act as fallbacks
'default'
Optional
transSet fallback value for Trans components without children
undefined
Optional
transWhich nodes not to convert in defaultValue generation in the Trans component.
['br', 'strong', 'i', 'p']
Optional
transConvert eg.
found in translations to a react component of type br
true
Optional
transWrap text nodes in a user-specified element.
''
Optional
useSet it to false if you do not want to use Suspense
true
Optional
hashFunction to generate an i18nKey from the defaultValue (or Trans children) when no key is provided. By default, the defaultValue (Trans text) itself is used as the key. If you want to require keys for all translations, supply a function that always throws an error.
undefined
Optional
unescapeGenerated using TypeDoc
Set which events trigger a re-render, can be set to false or string of events