UNPKG

i18n-llm-translate

Version:

Automatically translates namespace-based JSON translation files across multiple languages from any source language

15 lines (14 loc) 389 B
import { TranslateEngine } from "../../type"; type OpenAIModel = 'gpt-4o-mini' | 'gpt-4o-2024-08-06'; export interface OpenAIConfig { apiKey: string; model?: OpenAIModel | (string & {}); /** * Max: 100 * Min: 5 * Default: 50 */ chunkSize?: number; } export declare function createOpenAITranslateEngine(config: OpenAIConfig): TranslateEngine; export {};