LocalizedMessageProperty¶
Overview¶
A Property for the Fluent module that will recompute the value when the FluentBundle changes. The fluent bundle is dependent on the locale, so this Property will also recompute when the locale changes.
A reference to the bundle is available so that it can be used to format the message with arguments.
@author Jesse Greenberg (PhET Interactive Simulations)
Class LocalizedMessageProperty¶
Constructor¶
new LocalizedMessageProperty( bundleProperty : TReadOnlyProperty<FluentBundle | null>, derivation : ( bundle: FluentBundle | null ) => FluentPattern | null )¶
Instance Methods¶
Instance Properties¶
bundleProperty : TReadOnlyProperty<FluentBundle | null>¶
(readonly)
Source Code¶
See the source for LocalizedMessageProperty.ts in the chipper repository.