useTranslation()
ts
function useTranslation<TScopes>(): UseTranslationReturn<TScopes>;Defined in: client/hooks.tsx:38
React hook for translating a token.
Type Parameters
| Type Parameter | Default type |
|---|---|
TScopes extends Scopes | Scopes |
Returns
UseTranslationReturn<TScopes>
A callback of UseTranslationReturn, that takes TranslateFnArgs and returns the translation.
Since
1.0.0
Author
Simon Kovtyk