Skip to content

Commit

Permalink
Moving i18n Properties to i18n directory, see phetsims/chipper#1302
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Sep 13, 2022
1 parent b4dcd69 commit 8972509
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
* @author Jonathan Olson <jonathan.olson@colorado.edu>
*/

import Property from '../../axon/js/Property.js';
import localeInfoModule from '../../chipper/js/data/localeInfoModule.js';
import Tandem from '../../tandem/js/Tandem.js';
import ArrayIO from '../../tandem/js/types/ArrayIO.js';
import StringIO from '../../tandem/js/types/StringIO.js';
import joist from './joist.js';
import Property from '../../../axon/js/Property.js';
import localeInfoModule from '../../../chipper/js/data/localeInfoModule.js';
import Tandem from '../../../tandem/js/Tandem.js';
import ArrayIO from '../../../tandem/js/types/ArrayIO.js';
import StringIO from '../../../tandem/js/types/StringIO.js';
import joist from '../joist.js';

const fallbackLocalesProperty = new Property<string[]>( [], {
tandem: Tandem.GENERAL_MODEL.createTandem( 'fallbackLocalesProperty' ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
* @author Jonathan Olson <jonathan.olson@colorado.edu>
*/

import DerivedProperty from '../../axon/js/DerivedProperty.js';
import localeInfoModule from '../../chipper/js/data/localeInfoModule.js';
import joist from './joist.js';
import DerivedProperty from '../../../axon/js/DerivedProperty.js';
import localeInfoModule from '../../../chipper/js/data/localeInfoModule.js';
import joist from '../joist.js';
import localeProperty from './localeProperty.js';

const isLeftToRightProperty = new DerivedProperty( [ localeProperty ], locale => {
Expand Down
4 changes: 2 additions & 2 deletions js/localeOrderProperty.ts → js/i18n/localeOrderProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* @author Jonathan Olson <jonathan.olson@colorado.edu>
*/

import DerivedProperty from '../../axon/js/DerivedProperty.js';
import joist from './joist.js';
import DerivedProperty from '../../../axon/js/DerivedProperty.js';
import joist from '../joist.js';
import localeProperty from './localeProperty.js';
import fallbackLocalesProperty from './fallbackLocalesProperty.js';

Expand Down
8 changes: 4 additions & 4 deletions js/localeProperty.ts → js/i18n/localeProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
* @author Jonathan Olson <jonathan.olson@colorado.edu>
*/

import StringProperty from '../../axon/js/StringProperty.js';
import { globalKeyStateTracker, KeyboardUtils } from '../../scenery/js/imports.js';
import Tandem from '../../tandem/js/Tandem.js';
import joist from './joist.js';
import StringProperty from '../../../axon/js/StringProperty.js';
import { globalKeyStateTracker, KeyboardUtils } from '../../../scenery/js/imports.js';
import Tandem from '../../../tandem/js/Tandem.js';
import joist from '../joist.js';

const locales = Object.keys( phet.chipper.strings ).sort();

Expand Down
2 changes: 1 addition & 1 deletion js/preferences/OverviewPreferencesPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import merge from '../../../phet-core/js/merge.js';
import { VBox, VoicingRichText } from '../../../scenery/js/imports.js';
import isLeftToRightProperty from '../isLeftToRightProperty.js';
import isLeftToRightProperty from '../i18n/isLeftToRightProperty.js';
import joist from '../joist.js';
import JoistStrings from '../JoistStrings.js';
import PreferencesDialog from './PreferencesDialog.js';
Expand Down
2 changes: 1 addition & 1 deletion js/preferences/PreferencesModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import optionize, { EmptySelfOptions } from '../../../phet-core/js/optionize.js'
import localizationManager, { RegionAndCultureDescriptor } from './localizationManager.js';
import SpeechSynthesisAnnouncer from '../../../utterance-queue/js/SpeechSynthesisAnnouncer.js';
import Tandem from '../../../tandem/js/Tandem.js';
import localeProperty from '../localeProperty.js';
import localeProperty from '../i18n/localeProperty.js';
import merge from '../../../phet-core/js/merge.js';
import TReadOnlyProperty from '../../../axon/js/TReadOnlyProperty.js';

Expand Down
2 changes: 1 addition & 1 deletion js/preferences/VoicingPanelSection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import PreferencesDialog from './PreferencesDialog.js';
import { AudioModel } from './PreferencesModel.js';
import PreferencesPanelSection, { PreferencesPanelSectionOptions } from './PreferencesPanelSection.js';
import PreferencesToggleSwitch from './PreferencesToggleSwitch.js';
import localeProperty from '../localeProperty.js';
import localeProperty from '../i18n/localeProperty.js';

// constants
// none of the Voicing strings or feature is translatable yet, all strings in this file
Expand Down

0 comments on commit 8972509

Please sign in to comment.