UNPKG

i18n-ai-translate

Version:

Use LLMs to translate your i18n JSON to any language.

16 lines (15 loc) 685 B
import type { TranslationStatsItem } from "../types"; import type Chats from "../interfaces/chats"; import type TranslateOptions from "../interfaces/translate_options"; /** * Complete the initial translation of the input text. * @param flatInput - The flatinput object containing the json to translate * @param options - The options to generate the translation * @param chats - The options to generate the translation * @param translationStats - The translation statistics */ export default function translateCSV(flatInput: { [key: string]: string; }, options: TranslateOptions, chats: Chats, translationStats: TranslationStatsItem): Promise<{ [key: string]: string; }>;