UNPKG

zlocalz

Version:

ZLocalz - TUI Locale Guardian for Flutter ARB l10n/i18n validation and translation with AI-powered fixes

17 lines 635 B
import { LocalzConfig, Translation, LocaleFile } from '../types'; export declare class Translator { private genAI; private model; private config; private limit; constructor(config: LocalzConfig, apiKey: string); translateMissing(sourceFile: LocaleFile, targetFile: LocaleFile, targetLocale: string, keysToTranslate: string[]): Promise<Translation[]>; private translateChunk; private buildPrompt; private parseTranslationResponse; private validateTranslation; private checkGlossaryApplication; private chunkKeys; private extractPlaceholders; } //# sourceMappingURL=translator.d.ts.map