NEWCKEditor AI is here! Register for our AI in Enterprise webinar.
Sign up (with export icon)

AITranslateConfig

Api-interface iconinterface

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

  • Chevron-right icon

    languages : Array<AITranslateLanguage> | undefined

    The integrator can provide a custom list of languages for the AI Translate feature.

    The list must be an array of objects containing the id and label properties like on example below:

    ClassicEditor
    	.create( editorElement, {
    		ai: {
    			translate: {
    				languages: [
    					{
    						id: 'german',
    						label: 'German'
    					},
    					{
    						id: 'french',
    						label: 'French'
    					}
    				]
    			}
    		}
    	} )
    	.then( ... )
    	.catch( ... );
    
    Copy code