UNPKG

@_sh/strapi-plugin-ckeditor

Version:

Integrates CKEditor 5 into your Strapi project as a fully customizable custom field. (Community Edition)

16 lines (15 loc) 619 B
import type { EditorConfig } from './types'; /** * Sets the language property for the provided editor configuration and loads translations. * * @internal * * @remarks * * - UI language: If the language is not set, it defaults to the admin's preferred language, falling * back to 'en'. If the language is other than 'en', the CKEditor translation will be loaded. * * - Content language: Checks whether the field is localized (`isFieldLocalized`) and applies * the determined i18n language accordingly. */ export declare function setUpLanguage(config: EditorConfig, isFieldLocalized: boolean): Promise<void>;