mirror of
https://github.com/pezkuwichain/pezkuwi-extension.git
synced 2026-05-07 12:57:58 +00:00
5d54192e6d
- Update all copyright headers from 2025 to 2026 - Fix @polkadot references to @pezkuwi in config files - Fix eslint.config.js import path Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
25 lines
692 B
TypeScript
25 lines
692 B
TypeScript
// Copyright 2019-2026 @pezkuwi/extension-mocks authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type React from 'react';
|
|
|
|
interface useTranslationReturnObj {
|
|
i18n: { changeLanguage: () => Promise<unknown>; };
|
|
t: (str: string) => string;
|
|
}
|
|
|
|
export const useTranslation = (): useTranslationReturnObj => {
|
|
return {
|
|
i18n: {
|
|
changeLanguage: () => new Promise(() => { /**/ })
|
|
},
|
|
t: (str: string) => str
|
|
};
|
|
};
|
|
|
|
export const withTranslation = () => (component: React.ReactElement): React.ReactElement => component;
|
|
|
|
export const Trans = ({ children }: { children: React.ReactElement }): React.ReactElement => children;
|
|
|
|
export default withTranslation;
|