* Bump deps * Adjust withTranslation usage * Omit<T, 't'> * Adjust translate Props * Adjust straglers
9 lines
341 B
TypeScript
9 lines
341 B
TypeScript
// Copyright 2017-2023 @polkadot/react-hooks authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { useTranslation as useTranslationBase } from 'react-i18next';
|
|
|
|
export function useTranslation (): { t: (key: string, options?: { replace: Record<string, unknown> }) => string } {
|
|
return useTranslationBase('react-hooks');
|
|
}
|