UNPKG

react-tiny-i18n

Version:

A tiny (~500B) i18n implementation for handling translations in React

11 lines (10 loc) 322 B
interface Replacements { [k: string]: string; } interface TranslatorProps { children: string; replacements?: Replacements; } export declare function Translator({ children, replacements }: TranslatorProps): any; export declare function t(path: string, replacements?: Replacements): string; export {};