UNPKG

i18n-ai-translate

Version:

AI-powered localization CLI, Node library, and GitHub Action. Translate i18next JSON, Gettext PO, Java .properties, and iOS .strings with ChatGPT, Claude, Gemini, or local Ollama models.

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; }>;