15 lines
424 B
TypeScript
15 lines
424 B
TypeScript
// Copyright 2019-2023 @polkadot/extension-ui authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { useTranslation as useTranslationBase } from 'react-i18next';
|
|
|
|
export type TFunction = (key: string, options?: { replace: Record<string, string | number> }) => string;
|
|
|
|
interface UseTranslation {
|
|
t: TFunction
|
|
}
|
|
|
|
export default function useTranslation (): UseTranslation {
|
|
return useTranslationBase();
|
|
}
|