ghost-portal/packages/react-hooks/src/translate.ts
2020-09-17 16:46:46 +02:00

11 lines
381 B
TypeScript

// Copyright 2017-2020 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse, withTranslation } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('react-hooks');
}
export default withTranslation(['react-hooks']);