UNPKG

i18n-ai-translate

Version:

Use LLMs to translate your i18n JSON to any language.

21 lines (19 loc) 594 B
import type { ChatParams, Model } from "../types"; import type Engine from "../enums/engine"; import type OverridePrompt from "./override_prompt"; export default interface Options { engine: Engine; model: Model; chatParams: ChatParams; rateLimitMs: number; apiKey?: string; host?: string; templatedStringPrefix?: string; templatedStringSuffix?: string; verbose?: boolean; ensureChangedTranslation?: boolean; batchSize?: number; skipTranslationVerification?: boolean; skipStylingVerification?: boolean; overridePrompt?: OverridePrompt; }