/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/

(function ($, Drupal) {
  Drupal.behaviors.ckeditorLanguageSettingsSummary = {
    attach() {
      $('#edit-editor-settings-plugins-language').drupalSetSummary(context => {
        const $selected = $('#edit-editor-settings-plugins-language-language-list-type option:selected');

        if ($selected.length) {
          return $selected[0].textContent;
        }

        return '';
      });
    }

  };
})(jQuery, Drupal);