ghost-portal/packages/react-hooks/src/translate.ts
2021-01-03 11:33:39 +01:00

13 lines
434 B
TypeScript

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