UNPKG

json-autotranslate

Version:

Translate a folder of JSON files containing translations into multiple languages.

21 lines (20 loc) 635 B
export declare const xmlStyleReplacer: (index: number) => string; export declare const matchNothing: Matcher; export type Matcher = (input: string, replacer: (index: number) => string) => { from: string; to: string; }[]; export declare const matcherMap: { [k: string]: Matcher; }; export declare const replaceInterpolations: (input: string, matcher?: Matcher, replacer?: (index: number) => string) => { clean: string; replacements: { from: string; to: string; }[]; }; export declare const reInsertInterpolations: (clean: string, replacements: { from: string; to: string; }[]) => string;