MessageLocalizer source

Specializes Montage

Tracks a message function and its data for changes in order to generate a localized message.

Properties

key :string source

A key for the default localizer to get the message function from.

Default Value:
  • null

localized :string source

The message localized with all variables replaced.

Default Value:
  • ""

Methods

callDelegateMethod(name) source

This method calls the method named with the identifier prefix if it exists. Example: If the name parameter is "shouldDoSomething" and the caller's identifier is "bob", then this method will try and call "bobShouldDoSomething"

Parameters:
Name Type Description
name string
Inherited From:

equals(anObject) → {boolean} source

Returns true if two objects are equal, otherwise returns false.

Parameters:
Name Type Description
anObject Object

The object to compare for equality.

Inherited From:
Returns: boolean

Returns true if the calling object and anObject are identical and their uuid properties are also equal. Otherwise, returns false.

init(keyOrFunction, data) → {Message} source

Parameters:
Name Type Description
keyOrFunction string | Function

A messageformat string or a function that takes an object argument mapping variables to values and returns a string. Usually the output of Localizer#localize.

data Object

Value for this data property.

Returns: Message

this.

Generated from a4679af

comments powered by Disqus

More help?

Can't find what you are looking for? Get in touch, we're more than happy in helping answer your questions.