FluentLibrary¶
Overview¶
/* eslint-disable phet/default-export-class-should-register-namespace */ An entry point for the Fluent library. In the browser-and-node directory, it lets Fluent be used by both simulation code and during the grunt modulify process. Follow tsconfig-dependencies.json to see how Fluent code is referenced for typescript. See the README in the sherpa/lib/fluent directory for more information on how Fluent is set up for PhET simulations.
@author Jesse Greenberg (PhET Interactive Simulations)
Class FluentLibrary¶
Static Methods¶
getFluentMessageKeys( fluentFileString : string ) : string[]¶
Gets all message keys (excluding terms) from a Fluent file string. This exists in FluentLiberary (instead of FluentUtils) because it needs to be used outside of simulation code.
verifyFluentFile( fluentFileString : string )¶
Verify syntax in the fluent file. Right now, it just checks for undefined terms.
Type FluentPattern¶
string | ComplexPattern
Source Code¶
See the source for FluentLibrary.ts in the chipper repository.