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 code
See the full AI configuration.
See all editor options.
Properties
languages : Array<AITranslateLanguage> | undefinedmodule: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:ClassicEditor .create( editorElement, { ai: { translate: { languages: [ { id: 'german', label: 'German' }, { id: 'french', label: 'French' } ] } } } ) .then( ... ) .catch( ... );Copy code