Skip to content

LocalizedMessageProperty

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/chipper/blob/main/js/browser/LocalizedMessageProperty.ts for the most up-to-date information.

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

import { LocalizedMessageProperty } from 'scenerystack/chipper';

Constructor

new LocalizedMessageProperty( bundleProperty : TReadOnlyProperty<FluentBundle>, derivation : ( bundle: FluentBundle ) => FluentPattern )

Instance Methods

Source Code

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