ghost-portal/packages/react-hooks/src/translate.ts
Jaco 1e7ebdee40
Break (some) circular dependencies (#9464)
* Break (some) circular dependencies

* Rebuild translations
2023-05-19 10:26:23 +03:00

13 lines
440 B
TypeScript

// Copyright 2017-2023 @polkadot/react-hooks 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<'react-hooks', undefined> {
return useTranslationBase('react-hooks');
}
export default withTranslation(['react-hooks']);