UNPKG

i18n-ai-translate

Version:

Use LLMs to translate your i18n JSON to any language.

15 lines (14 loc) 578 B
import type TranslateDiffOptions from "./interfaces/translate_diff_options"; import type TranslateOptions from "./interfaces/translate_options"; /** * Translate the input JSON to the given language * @param options - The options for the translation */ export declare function translate(options: TranslateOptions): Promise<Object>; /** * Translate the difference of an input JSON to the given languages * @param options - The options for the translation */ export declare function translateDiff(options: TranslateDiffOptions): Promise<{ [language: string]: Object; }>;