<commit_before>// Copyright 2022, University of Colorado Boulder

/**
 * Controls specific to localization that will appear under a "Localization" section
 * in the general preferences tab panel.
 *
 * @author <NAME> (PhET Interactive Simulations)
 */

import joist from '../joist.js';
import PreferencesPanelSection from './PreferencesPanelSection.js';
import { Text } from '../../../scenery/js/imports.js';
import PreferencesDialog from './PreferencesDialog.js';

// This is NOT translatable yet. This is still being designed and I don't want
// strings to float in translatable strings until this is finished. See
// https://github.com/phetsims/joist/issues/814
const localizationString = 'Localization';

class LocalizationControlsPanelSection extends PreferencesPanelSection {

  /**
   * @param localizationControls - Node you want under the "Localization" section
   */
  public constructor( localizationControls: Node ) {
    super( {
      titleNode: new Text( localizationString, PreferencesDialog.PANEL_SECTION_LABEL_OPTIONS ),
      contentNode: localizationControls
    } );
  }
}

joist.register( 'LocalizationControlsPanelSection', LocalizationControlsPanelSection );
export default LocalizationControlsPanelSection;
<commit_msg>localization label updated, see https://github.com/phetsims/joist/issues/814<commit_after>// Copyright 2022, University of Colorado Boulder

/**
 * Controls specific to localization that will appear under a "Localization" section
 * in the general preferences tab panel.
 *
 * @author <NAME> (PhET Interactive Simulations)
 */

import joist from '../joist.js';
import PreferencesPanelSection from './PreferencesPanelSection.js';
import { Text } from '../../../scenery/js/imports.js';
import PreferencesDialog from './PreferencesDialog.js';

// This is NOT translatable yet. This is still being designed and I don't want
// strings to float in translatable strings until this is finished. See
// https://github.com/phetsims/joist/issues/814
const localizationSettingsString = 'Localization Settings';

class LocalizationControlsPanelSection extends PreferencesPanelSection {

  /**
   * @param localizationControls - Node you want under the "Localization" section
   */
  public constructor( localizationControls: Node ) {
    super( {
      titleNode: new Text( localizationSettingsString, PreferencesDialog.PANEL_SECTION_LABEL_OPTIONS ),
      contentNode: localizationControls
    } );
  }
}

joist.register( 'LocalizationControlsPanelSection', LocalizationControlsPanelSection );
export default LocalizationControlsPanelSection;

{'fraction_non_alphanumeric': 0.09433229813664597, 'fraction_numerical': 0.006599378881987578, 'mean_word_length': 4.663736263736264, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1882430', 'n_tokens_mistral': 682, 'n_tokens_neox': 648, 'n_words': 215}