ghost-keychain/packages/extension-ui/src/components/translate.ts

13 lines
406 B
TypeScript

// Copyright 2019-2023 @polkadot/extension-ui authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase, withTranslation } from 'react-i18next';
export function useTranslation (): UseTranslationResponse<string, undefined> {
return useTranslationBase();
}
export default withTranslation();