Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
9 lines
490 B
Plaintext
9 lines
490 B
Plaintext
import type { JSX } from 'react';
|
|
import type { I18n, I18nClient, TFunction } from '../types.js';
|
|
type LabelType = (() => JSX.Element) | ((args: {
|
|
i18n: I18nClient;
|
|
t: TFunction;
|
|
}) => string) | JSX.Element | Record<string, string> | string;
|
|
export declare const getTranslation: <T extends LabelType>(label: T, i18n: Pick<I18n<any, any>, "fallbackLanguage" | "language" | "t">) => T extends JSX.Element ? JSX.Element : string;
|
|
export {};
|
|
//# sourceMappingURL=getTranslation.d.ts.map |