Skip to content

Commit

Permalink
DOC-1020: add language_load option to ui-localization.adoc page. (#…
Browse files Browse the repository at this point in the history
…3027)

* DOC-1020: add  option to  page that configures whether additional plugin/theme languages are loaded when bundling.

* DOC-1020: updates to language_load options and admons.

* DOC-1020: copy edits and improvements.

* Update modules/ROOT/partials/configuration/language_load.adoc

Co-authored-by: Mitchell Crompton <[email protected]>

* Update changelog.md

* Update modules/ROOT/partials/configuration/language_load.adoc

Co-authored-by: Mitchell Crompton <[email protected]>

* Update modules/ROOT/partials/configuration/language_load.adoc

Co-authored-by: Mitchell Crompton <[email protected]>

---------

Co-authored-by: Mitchell Crompton <[email protected]>
  • Loading branch information
kemister85 and MitchC1999 authored Dec 20, 2023
1 parent 0623f5d commit a2f6074
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is loosely based on [Keep a Changelog](https://keepachangelog.com/en/

### Unreleased

### 2023-12-20

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

### 2023-12-19

- DOC-2220: add generation of `latest` and `6` documentation in parallel.
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[]
29 changes: 29 additions & 0 deletions modules/ROOT/partials/configuration/language_load.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[[language_load]]
== `+language_load+`

This option determines whether additional plugin or theme languages are loaded during {productname} editor initialization. By default, plugins which have support for languages other than English will automatically load the additional language packs.

*Type:* `+boolean+`

*Default value:* `+true+`

* When the `+language_load+` option is set to `+true+`, any available language packs can be loaded and used by {productname} and plugins that support multiple-languages.
* When set to `+false+`, only explicitly configured language packs will load.

[IMPORTANT]
Setting `+language_load+` option to `+false+` is not recommended unless loading local language packs.

=== Example: using `+language_load+`

[source,js]
----
tinymce.init({
selector: 'textarea', // Change this value according to your HTML
language_load: true, // Disables the automatic loading of additional plugin and theme language files.
});
----

[TIP]
When bundling, it is advisable for plugins that support multiple languages to load the additional language packs locally, and to set this option to `+false+`. This will ensure that all required languages are available for the editor, and that no additional language packs will be retrieved by the plugins.

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

0 comments on commit a2f6074

Please sign in to comment.