AITranslateConfig
interface
The configuration of the AI Translate feature.
The properties defined in this config are set in the config.ai.translate namespace.
ClassicEditor
.create( editorElement, {
ai: {
translate: {
// AI Translate configuration.
}
}
} )
.then( ... )
.catch( ... );Copy codeSee the full AI configuration.
See all editor options.
Properties
languages?: Array<AITranslateLanguage>module:ai/aitranslate/aitranslate~AITranslateConfig#languagesThe integrator can provide a custom list of languages for the AI Translate feature.
The list must be an array of objects containing the
idandlabelproperties like on example below:
Copy codeClassicEditor .create( editorElement, { ai: { translate: { languages: [ { id: 'german', label: 'German' }, { id: 'french', label: 'French' } ] } } } ) .then( ... ) .catch( ... );