mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-04-23 07:07:58 +00:00
18 lines
472 B
TypeScript
18 lines
472 B
TypeScript
// Copyright 2017-2026 @pezkuwi/apps authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { useTranslation as useTranslationBase } from 'react-i18next';
|
|
|
|
interface TOptions {
|
|
ns?: string;
|
|
replace?: Record<string, unknown>;
|
|
}
|
|
|
|
interface Translation {
|
|
t: (key: string, optionsOrText?: string | TOptions, options?: TOptions) => string
|
|
}
|
|
|
|
export function useTranslation (): Translation {
|
|
return useTranslationBase('apps') as unknown as Translation;
|
|
}
|