UNPKG

i18n-ai-translate

Version:

Use LLMs to translate your i18n JSON to any language.

14 lines (13 loc) 703 B
import type TranslateFileDiffOptions from "./interfaces/translate_file_diff_options"; import type TranslateFileOptions from "./interfaces/translate_file_options"; /** * Wraps translate to take an input file and output its translation to another file * @param options - The file translation's options */ export declare function translateFile(options: TranslateFileOptions): Promise<void>; /** * Wraps translateDiff to take two versions of a source file and update * the target translation's file by only modifying keys that changed in the source * @param options - The file diff translation's options */ export declare function translateFileDiff(options: TranslateFileDiffOptions): Promise<void>;