UNPKG

@curatedotfun/translate-transform

Version:

Translation transform plugin for curatedotfun using DeepL

14 lines (13 loc) 373 B
export type TagHandlingMode = "html" | "xml"; export interface TranslateTextOptions { preserveFormatting?: boolean; tagHandling?: TagHandlingMode; outlineDetection?: boolean; splittingSentences?: boolean; nonSplittingTags?: string[]; ignoreTags?: string[]; } export interface TranslationResult { text: string; detectedSourceLang?: string; }