UNPKG

i18n-ai-translate

Version:

Use LLMs to translate your i18n JSON to any language.

23 lines (22 loc) 1.21 kB
import type ChatInterface from "../chats/chat_interface"; 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, overridePrompt?: OverridePrompt): 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, overridePrompt?: OverridePrompt): Promise<string>;