10000 Apply suggestions from code review · unicode-org/message-format-wg@bb95599 · GitHub
[go: up one dir, main page]

Skip to content

Commit bb95599

Browse files
eemelidminor
authored andcommitted
Apply suggestions from code review
Co-authored-by: Dan Minor <dminor@mozilla.com>
1 parent d1d3faf commit bb95599

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ type Message = PatternMessage | SelectMessage
109109
110110
A PatternMessage contains a list of PatternElement values,
111111
some of which are directly defined literal values,
112-
while others are placeholders with formatted values depending on additional data.
112+
while others are placeholders with formatted values that depend on additional data.
113113
114114
```ts
115115
interface PatternMessage {
@@ -127,6 +127,9 @@ Each SelectCase is defined by a `key` of one or more string identifiers,
127127
and selection between them is made according to the corresponding Selector values.
128128
From this it follows that a valid SelectMessage must have at least as many `select` entries
129129
as its highest count of SelectCase `key` entries within its `cases`.
130+
The `fallback` value of a Selector is used in addition to its `value`
131+
when selecting one of the `cases` during formatting.
132+
It should match exactly one of the corresponding SelectCase `key` values.
130133

131134
As a SelectMessage is not a valid PatternElement,
132135
it is not possible for it to be placed within the `value` of another message.

0 commit comments

Comments
 (0)
0