UNPKG

i18n-ai-translate

Version:

Use LLMs to translate your i18n JSON to any language.

15 lines (14 loc) 811 B
import type TranslateDirectoryDiffOptions from "./interfaces/translate_directory_diff_options"; import type TranslateDirectoryOptions from "./interfaces/translate_directory_options"; /** * Wraps translate to take all keys of all files in a directory and re-create the exact * directory structure and translations for the target language * @param options - The directory translation's options */ export declare function translateDirectory(options: TranslateDirectoryOptions): Promise<void>; /** * Wraps translateDiff to take the changed keys of all files in a directory * and write the translation of those keys in the target translation * @param options - The directory translation diff's options */ export declare function translateDirectoryDiff(options: TranslateDirectoryDiffOptions): Promise<void>;