File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ type Message = PatternMessage | SelectMessage
109
109
110
110
A PatternMessage contains a list of PatternElement values,
111
111
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.
113
113
114
114
` ` ` ts
115
115
interface PatternMessage {
@@ -127,6 +127,9 @@ Each SelectCase is defined by a `key` of one or more string identifiers,
127
127
and selection between them is made according to the corresponding Selector values.
128
128
From this it follows that a valid SelectMessage must have at least as many ` select ` entries
129
129
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.
130
133
131
134
As a SelectMessage is not a valid PatternElement,
132
135
it is not possible for it to be placed within the ` value ` of another message.
You can’t perform that action at this time.
0 commit comments