Skip to content

Commit 48ffdfa

Browse files
authored
chore(ui-contexts): Deprecate useTranslation in favor of react-i18next alternative (RocketChat#36445)
1 parent 97d698c commit 48ffdfa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/ui-contexts/src/hooks/useTranslation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ import { useContext } from 'react';
33
import type { TranslationContextValue } from '../TranslationContext';
44
import { TranslationContext } from '../TranslationContext';
55

6+
/** @deprecated prefer `useTranslation` from `react-i18next` */
67
export const useTranslation = (): TranslationContextValue['translate'] => useContext(TranslationContext).translate;

0 commit comments

Comments
 (0)