ghost-portal/packages/react-components/src/translate.ts
Jaco 4929b1c6fd
Update headers for 2023 (#8665)
* Update headers for 2023

* Adjust env-config
2023-01-01 10:32:05 +02:00

13 lines
460 B
TypeScript

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