disableLanguage(languageCode) {
      let languageCodes = this.settingsPrefs_.prefs.intl.accept_languages.value;
      const languages = languageCodes.split(',');
      const index = languages.indexOf(languageCode);
      if (index == -1)
        return;
      languages.splice(index, 1);
      languageCodes = languages.join(',');
      this.settingsPrefs_.set(
          'prefs.intl.accept_languages.value', languageCodes);
      if (cr.isChromeOS) {
        this.settingsPrefs_.set(
            'prefs.settings.language.preferred_languages.value', languageCodes);
      }
    }
/**
     * Disables a language, removing it from the Accept-Language list.
     * @param {string} languageCode
     */
Disables a language, removing it from the Accept-Language list.
@param {string} languageCode
Disables a language removing it from the Accept - Language list . @param { string } languageCode
disableLanguage(languageCode) {
      let languageCodes = this.settingsPrefs_.prefs.intl.accept_languages.value;
      const languages = languageCodes.split(',');
      const index = languages.indexOf(languageCode);
      if (index == -1)
        return;
      languages.splice(index, 1);
      languageCodes = languages.join(',');
      this.settingsPrefs_.set(
          'prefs.intl.accept_languages.value', languageCodes);
      if (cr.isChromeOS) {
        this.settingsPrefs_.set(
            'prefs.settings.language.preferred_languages.value', languageCodes);
      }
    }
disableLanguage ( languageCode ) { let languageCodes = this . settingsPrefs_ . prefs . intl . accept_languages . value ; const languages = languageCodes . split ( ',' ) ; const index = languages . indexOf ( languageCode ) ; if ( index == - 1 ) return ; languages . splice ( index , 1 ) ; languageCodes = languages . join ( ',' ) ; this . settingsPrefs_ . set ( 'prefs.intl.accept_languages.value' , languageCodes ) ; if ( cr . isChromeOS ) { this . settingsPrefs_ . set ( 'prefs.settings.language.preferred_languages.value' , languageCodes ) ; } }
Disables a language, removing it from the Accept-Language list.
Disables a language removing it from the Accept - Language list .