phetsims / joist

Joist is the main framework for PhET Interactive Simulations. Joist creates and displays the simulation content, home screen, navigation bar, About dialog, enables switching between tabs, and other framework-related features.
http://scenerystack.org/
MIT License
9 stars 6 forks source link

Test Fluent.js for complex accessibility strings #992

Open jessegreenberg opened 1 week ago

jessegreenberg commented 1 week ago

After #990, we are going to try Fluent.js to support i18n for complex accessibility strings.

In this issue Ill track changes and progress. First, we are going to bring Fluent in as a dependency. Then, we are going to try it out with 3 sims. We are then going to test the strings with translators to get feedback.

jessegreenberg commented 1 week ago

The latest version of Fluent.js was not compatible with our preload system/sherpa which requires a standalone built file. We found a build in this format at https://www.npmjs.com/package/fluent. It is 5 years old.

We will want to figure out how we can get the latest version. For other POSE reasons, PhET is exploring how we can use a more standard way of importing dependencies. But if that isn't figured out, we will need to find a way to bundle a more recent version of Fluent so it can be used in sherpa.

jessegreenberg commented 5 days ago

The above commits complete a first pass at using Fluent in ohms-law for accessibility strings.

jessegreenberg commented 1 day ago

I am making a branch in chipper called fluent to hold preloads and utility classes that are supporting this work. See #1532.