Skip to content

Commit

Permalink
include locale code when running with ?dev, #905
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Feb 1, 2023
1 parent ba42969 commit 83f081c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion js/preferences/LanguageSelectionNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ export default class LanguageSelectionNode extends Rectangle {
private readonly disposeLanguageSelectionNode: () => void;

public constructor( localeProperty: Property<Locale>, locale: Locale ) {
const text = new Text( localeInfoModule[ locale ].localizedName, {

// Include the locale code when running with ?dev.
const string = phet.chipper.queryParameters.dev ?
`${localeInfoModule[ locale ].localizedName} (${locale})` :
localeInfoModule[ locale ].localizedName;

const text = new Text( string, {
font: PreferencesDialog.CONTENT_FONT
} );

Expand Down

0 comments on commit 83f081c

Please sign in to comment.