Skip to content

Commit

Permalink
Support dynamic locale for AtomIdentifier element name, phetsims/buil…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Nov 16, 2023
1 parent 35a4c31 commit 70c8edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/game/view/InteractiveSymbolNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class InteractiveSymbolNode extends Node {
const updateElement = protonCount => {
symbolText.string = protonCount > 0 ? AtomIdentifier.getSymbol( protonCount ) : '';
symbolText.center = new Vector2( SYMBOL_BOX_WIDTH / 2, SYMBOL_BOX_HEIGHT / 2 );
elementCaption.string = protonCount > 0 ? AtomIdentifier.getName( protonCount ) : '';
elementCaption.string = protonCount > 0 ? AtomIdentifier.getName( protonCount ).value : '';
elementCaption.centerX = SYMBOL_BOX_WIDTH / 2;
};

Expand Down

0 comments on commit 70c8edb

Please sign in to comment.