Skip to content

Commit

Permalink
DOC-1020: add option to page that configures whether additional plugi…
Browse files Browse the repository at this point in the history
…n/theme languages are loaded when bundling.
  • Loading branch information
kemister85 committed Dec 7, 2023
1 parent a7d31ec commit 7712558
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The format is loosely based on [Keep a Changelog](https://keepachangelog.com/en/

### Unreleased

- DOC-1020: add `language_load` option to `ui-localization.adoc` page that configures whether additional plugin/theme languages are loaded when bundling.

### 2023-12-06

Expand Down
5 changes: 1 addition & 4 deletions modules/ROOT/pages/ui-localization.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,4 @@ include::partial$configuration/language.adoc[]

include::partial$configuration/language_url.adoc[]

////
undocumented
include::partial$configuration/language_load.adoc[]
////
include::partial$configuration/language_load.adoc[]
22 changes: 22 additions & 0 deletions modules/ROOT/partials/configuration/language_load.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[[language_load]]
== `+language_load+`

// This option configures whether additional plugin/theme languages are loaded.

// When bundling, plugins that support multiple languages its a good recommended to load the additional language packs in addition.

*Type:* `+boolean+`

*Default value:* `+true+`

=== Example: using `+language_load+`

[source,js]
----
tinymce.init({
selector: 'textarea', // change this value according to your HTML
language_load: true,
});
----

You can find and download languages link:{gettiny}/language-packages/[here].

0 comments on commit 7712558

Please sign in to comment.