9 lines
341 B
TypeScript
9 lines
341 B
TypeScript
// Copyright 2017-2024 @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');
|
|
}
|