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( {
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 list of languages available in the AI Translate feature.
The list must be an array of objects containing the
idandlabelproperties like on example below:ClassicEditor .create( { ai: { translate: { languages: [ { id: 'german', label: 'German' }, { id: 'french', label: 'French' } ] } } } ) .then( ... ) .catch( ... );Copy codeLanguages available by default are:
{ label: 'English', id: 'english' }, { label: 'Spanish', id: 'spanish' }, { label: 'French', id: 'french' }, { label: 'German', id: 'german' }, { label: 'Chinese (Simplified)', id: 'chinese' }, { label: 'Japanese', id: 'japanese' }, { label: 'Russian', id: 'russian' }, { label: 'Portuguese', id: 'portuguese' }, { label: 'Korean', id: 'korean' }, { label: 'Italian', id: 'italian' }Copy code