Skip to content

LocalePanel

Overview

A UI component that allows you to change language of the simulation at runtime by controlling the localeProperty. It appears in the "Localization" tab of the Preferences dialog.

This is a first iteration of this UI component. It may be improved in the future. See https://github.com/phetsims/joist/issues/814 for more history.

@author Jesse Greenberg (PhET Interactive Simulations)

Class LocalePanel

import { LocalePanel } from 'scenerystack/sim';

Constructor

new LocalePanel( localeProperty : LocaleProperty )

Instance Methods

Source Code

See the source for LocalePanel.ts in the joist repository.