1
1
## Interchange Data Model
2
2
3
- This section defines a data model representation of MessageFormat 2 _ messages_ .
3
+ This section defines a data model representation of Unicode MessageFormat _ messages_ .
4
4
5
5
Implementations are not required to use this data model for their internal representation of messages.
6
6
Neither are they required to provide an interface that accepts or produces
7
7
representations of this data model.
8
8
9
9
The major reason this specification provides a data model is to allow interchange of
10
10
the logical representation of a _ message_ between different implementations.
11
- This includes mapping legacy formatting syntaxes (such as MessageFormat 1 )
12
- to a MessageFormat 2 implementation.
11
+ This includes mapping legacy formatting syntaxes (such as ICU MessageFormat )
12
+ to a Unicode MessageFormat implementation.
13
13
Another use would be in converting to or from translation formats without
14
14
the need to continually parse and serialize all or part of a message.
15
15
16
16
Implementations that expose APIs supporting the production, consumption, or transformation of a
17
17
_ message_ as a data structure are encouraged to use this data model.
18
18
19
19
This data model provides these capabilities:
20
- - any MessageFormat 2.0 message can be parsed into this representation
20
+ - any Unicode MessageFormat _ message _ can be parsed into this representation
21
21
- this data model representation can be serialized as a well-formed
22
- MessageFormat 2.0 message
23
- - parsing a MessageFormat 2.0 message into a data model representation
22
+ Unicode MessageFormat _ message _
23
+ - parsing a Unicode MessageFormat _ message _ into a data model representation
24
24
and then serializing it results in an equivalently functional message
25
25
26
26
This data model might also be used to:
27
- - parse a non-MessageFormat 2 message into a data model
28
- (and therefore re-serialize it as MessageFormat 2 ).
27
+ - parse non Unicode MessageFormat messages into a data model
28
+ (and therefore re-serialize it as Unicode MessageFormat ).
29
29
Note that this depends on compatibility between the two syntaxes.
30
- - re-serialize a MessageFormat 2 message into some other format
30
+ - re-serialize a Unicode MessageFormat _ message _ into some other format
31
31
including (but not limited to) other formatting syntaxes
32
32
or translation formats.
33
33
@@ -43,7 +43,7 @@ declarations, options, and attributes to be optional rather than required proper
43
43
44
44
> [ !IMPORTANT]
45
45
> The data model uses the field name ` name ` to denote various interface identifiers.
46
- > In the MessageFormat 2 [ syntax] ( /spec/syntax.md ) , the source for these ` name ` fields
46
+ > In the Unicode MessageFormat [ syntax] ( /spec/syntax.md ) , the source for these ` name ` fields
47
47
> sometimes uses the production ` identifier ` .
48
48
> This happens when the named item, such as a _ function_ , supports namespacing.
49
49
@@ -100,7 +100,7 @@ interface LocalDeclaration {
100
100
In a ` SelectMessage ` ,
101
101
the ` keys ` and ` value ` of each _ variant_ are represented as an array of ` Variant ` .
102
102
For the ` CatchallKey ` , a string ` value ` may be provided to retain an identifier.
103
- This is always ` '*' ` in MessageFormat 2 syntax, but may vary in other formats.
103
+ This is always ` '*' ` in the Unicode MessageFormat syntax, but may vary in other formats.
104
104
105
105
``` ts
106
106
interface Variant {
0 commit comments