Skip to content

What is the use case of resolvedOptions().message #55

@FrankYFTang

Description

@FrankYFTang

https://tc39.es/proposal-intl-messageformat/#sec-intl.messageformat.prototype.resolvedoptions

i. Perform ! CreateDataPropertyOrThrow(options, p, v).

and in
https://tc39.es/proposal-intl-messageformat/#sec-properties-of-intl-messageformat-instances

[[MessageData]] is an Object conforming to the JSON Schema definition of the Unicode MessageFormat 2.0 specification.

where it came from
https://tc39.es/proposal-intl-messageformat/#sec-initializemessageformat
2. Let msgData be ? GetMessageData(source).
and
8. Set messageFormat.[[MessageData]] to msgData.

but why do we need to returnt this parsed JSON object in resolvedOptions()? what is the use case for this ? Why it cannot be just in internal representation or keep it as the input String but need to be return as a JSON object?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions