ghost-portal/packages/react-hooks/src/translate.ts
2026-01-30 11:03:02 +01:00

9 lines
341 B
TypeScript

// Copyright 2017-2026 @polkadot/react-hooks authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): { t: (key: string, options?: { replace: Record<string, unknown> }) => string } {
return useTranslationBase('react-hooks');
}