|
@@ -106,3 +106,35 @@
|
|
|
*
|
|
*
|
|
|
* @member {Array.<String>|Object} module:core/editor/editorconfig~EditorConfig#toolbar
|
|
* @member {Array.<String>|Object} module:core/editor/editorconfig~EditorConfig#toolbar
|
|
|
*/
|
|
*/
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * Editor UI's language.
|
|
|
|
|
+ *
|
|
|
|
|
+ * The language code is defined in the [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) standard.
|
|
|
|
|
+ * CKEditor 5 currently supports around 20 languages and the number is growing.
|
|
|
|
|
+ *
|
|
|
|
|
+ * Note: You don't have to specify this option if your build is optimized for one language or if it's the default language
|
|
|
|
|
+ * (English is the default language for CDN builds).
|
|
|
|
|
+ *
|
|
|
|
|
+ * Simple usage:
|
|
|
|
|
+ *
|
|
|
|
|
+ * ClassicEditor
|
|
|
|
|
+ * .create( document.querySelector( '#editor' ), {
|
|
|
|
|
+ * language: 'de'
|
|
|
|
|
+ * } )
|
|
|
|
|
+ * .then( editor => {
|
|
|
|
|
+ * console.log( editor );
|
|
|
|
|
+ * } )
|
|
|
|
|
+ * .catch( error => {
|
|
|
|
|
+ * console.error( error );
|
|
|
|
|
+ * } );
|
|
|
|
|
+ *
|
|
|
|
|
+ * After this step you need to attach the corresponding translation file. Translation files are available at CDN for predefined builds:
|
|
|
|
|
+ * `<script src="https://cdn.ckeditor.com/ckeditor5/[version.number]/[distribution]/lang/[lang].js"></script>`
|
|
|
|
|
+ *
|
|
|
|
|
+ * But you can add them manually by coping from the `node_modules/@ckeditor/ckeditor5-build-[name]/build/lang/[lang].js'`.
|
|
|
|
|
+ *
|
|
|
|
|
+ * Check the {@glink features/ui-language UI language guide} for more information about the localization options and translation process.
|
|
|
|
|
+ *
|
|
|
|
|
+ * @member {String} module:core/editor/editorconfig~EditorConfig#language
|
|
|
|
|
+ */
|