Skip to content

getFluentModule

Overview

Constructs the modules needed to use Fluent.js messages in a PhET simulation. Fluent has the following concepts:

  • Bundle: A collection of messages for a single locale.
  • Message: An data structure in a FluentBundle. The message can be formatted with arguments into a final string. If there are no arguments, the message is a string.

This is used in generated files from modulify.

@author Jonathan Olson <jonathan.olson> @author Jesse Greenberg (PhET Interactive Simulations)

Source Code

See the source for getFluentModule.ts in the chipper repository.