andrei-bread-i18n
Version:
Small and type-safe package to create multi-language interfaces.
14 lines (13 loc) • 494 B
TypeScript
/// <reference types="react" />
import { I18N } from "../i18n";
interface I18NProviderProps {
i18n: I18N<any>;
children: React.ReactNode;
}
export declare const I18NProvider: ({ i18n, children }: I18NProviderProps) => import("react/jsx-runtime").JSX.Element;
interface TaggedTextProps {
text: string;
tags?: Record<string, (str: string) => JSX.Element>;
}
export declare const TaggedText: ({ text, tags }: TaggedTextProps) => import("react/jsx-runtime").JSX.Element;
export {};