mirror of
https://github.com/pezkuwichain/pezkuwi-sdk-ui.git
synced 2026-04-22 16:07:58 +00:00
d949863789
Comprehensive web interface for interacting with Pezkuwi blockchain. Features: - Blockchain explorer - Wallet management - Staking interface - Governance participation - Developer tools Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
15 lines
590 B
TypeScript
15 lines
590 B
TypeScript
// Copyright 2017-2026 @pezkuwi/react-params authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type React from 'react';
|
|
|
|
import { useTranslation as useTranslationBase, withTranslation } from 'react-i18next';
|
|
|
|
export function useTranslation (): { t: (key: string, options?: { replace: Record<string, unknown> }) => string } {
|
|
return useTranslationBase('react-params');
|
|
}
|
|
|
|
export default function translate <T, P = Omit<T, 't'>> (C: React.ComponentClass<T>): React.ComponentType<P> {
|
|
return withTranslation(['react-params'])(C) as unknown as React.ComponentType<P>;
|
|
}
|