UNPKG

json-autotranslate

Version:

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

21 lines (20 loc) 532 B
export declare const generateSearchRegex: (input: string) => RegExp; export declare const replaceIcu: (input: string) => { clean: string; replacements: { from: string; to: string; }[]; }; export declare const reInsertIcu: (clean: string, replacements: { from: string; to: string; }[]) => string; export declare const translateStrings: (strings: { key: string; value: string; }[], from: string, to: string) => Promise<{ key: string; original: string; translated: string; }[]>;