-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial commit getting Fluent.js working in GFL:B, see phetsims/joist…
- Loading branch information
1 parent
208231d
commit 4833da8
Showing
5 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
distance-arrow-visible = Distance measured in kilometers. | ||
distance-arrow-removed = Distance measurement hidden. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright 2024, University of Colorado Boulder | ||
|
||
/** | ||
* Prototype for preparing fluent strings for Gravity Force Lab: Basics. Fluent strings are loaded in a preload script. | ||
* They are then processed into Properties so that they can be used in the simulation. | ||
* | ||
* See Classes in Chipper that support Fluent: | ||
* - https://github.com/phetsims/joist/issues/992 | ||
* - https://github.com/phetsims/chipper/issues/1532 | ||
* | ||
* @author Jesse Greenberg (PhET Interactive Simulations) | ||
*/ | ||
|
||
import { englishBundle } from '../../chipper/js/localizedFluentBundleProperty.js'; | ||
import FluentUtils from '../../chipper/js/FluentUtils.js'; | ||
import LocalizedMessageProperty from '../../chipper/js/LocalizedMessageProperty.js'; | ||
|
||
const GravityForceLabBasicsFluentMessages = {}; | ||
for ( const [ id ] of englishBundle.messages ) { | ||
|
||
// So that you can look up fluent strings with camelCase. | ||
GravityForceLabBasicsFluentMessages[ FluentUtils.fluentIdToMessageKey( id ) ] = new LocalizedMessageProperty( id ); | ||
} | ||
|
||
export default GravityForceLabBasicsFluentMessages; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters