13 lines
437 B
TypeScript
13 lines
437 B
TypeScript
// Copyright 2017-2020 @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<string> {
|
|
return useTranslationBase('react-components');
|
|
}
|
|
|
|
export default withTranslation(['react-components']);
|