@ckeditor/ckeditor5-language
Version:
Text part language feature for CKEditor 5.
26 lines (25 loc) • 702 B
TypeScript
/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
/**
* @module language/textpartlanguageconfig
*/
import type { LanguageDirection } from 'ckeditor5/src/utils.js';
/**
* The text part language feature option descriptor.
*/
export interface TextPartLanguageOption {
/**
* The user-readable title of the option.
*/
title: string;
/**
* The language code in the ISO 639 format.
*/
languageCode: string;
/**
* The language text direction. Automatically detected if omitted.
*/
textDirection?: LanguageDirection;
}