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.

32 lines (31 loc) 1.39 kB
import type ChatInterface from "../chats/chat_interface"; import type Glossary from "../interfaces/glossary"; import type OverridePrompt from "../interfaces/override_prompt"; /** * Confirm whether a given translation is valid * @param chat - the chat session * @param inputLanguage - the language of the input * @param outputLanguage - the language of the output * @param input - the input text * @param outputToVerify - the output text to verify * @param overridePrompt - An optional custom prompt */ export declare function verifyTranslation(chat: ChatInterface, inputLanguage: string, outputLanguage: string, input: string, outputToVerify: string, options?: { overridePrompt?: OverridePrompt; context?: string; glossary?: Glossary; }): Promise<string>; /** * Confirm whether a translation maintains the original styling * @param chat - the chat session * @param inputLanguage - the language of the input * @param outputLanguage - the language of the output * @param input - the input text * @param outputToVerify - the output text to verify * @param overridePrompt - An optional custom prompt */ export declare function verifyStyling(chat: ChatInterface, inputLanguage: string, outputLanguage: string, input: string, outputToVerify: string, options?: { overridePrompt?: OverridePrompt; context?: string; glossary?: Glossary; }): Promise<string>;