Skip to content

Commit 2b0da1c

Browse files
aphillipseemeli
andauthored
Update default registry design doc to reflect LDML45 scope (#599)
* Update default registry design doc to reflect LDML45 scope In the 2024-01-15 call we agree that the functions listed in this document are the comprehensive set for the `LDML45` default registry. This updates our documentation to reflect that. The list of options, operands, etc. remain open for discussion, but no other functions will be considered. * Update exploration/default-registry-and-mf1-compatibility.md Co-authored-by: Eemeli Aro <[email protected]> * Update exploration/default-registry-and-mf1-compatibility.md Co-authored-by: Eemeli Aro <[email protected]> --------- Co-authored-by: Eemeli Aro <[email protected]>
1 parent 6024aeb commit 2b0da1c

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

exploration/default-registry-and-mf1-compatibility.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Default Registry and MF1 Compatibility
22

3-
Status: **Proposed**
3+
Status: **Accepted**
44

55
<details>
66
<summary>Metadata</summary>
@@ -23,6 +23,12 @@ along with their _operands_ and _options_.
2323
It also contains a section comparing MF1 (as embodied by ICU4J) and MF2
2424
to ensure that we don't forget something.
2525

26+
Implementations MAY provide other selectors or formatters using the mechanisms defined by MF2
27+
but these will not be considered for the LDML45 default registry.
28+
The default registry is a foundational set of selectors and formatters that an implementation
29+
claiming MF2 compatibility is required to supply.
30+
Therefore, addition to this list requires a higher level of rigor.
31+
2632
## Default Registry Entries
2733

2834
### Numbers
@@ -31,8 +37,6 @@ Function name: `:number`
3137

3238
Aliases:
3339
- `:integer` (implies: `maximumFractionDigits=0`)
34-
- `:currency` (implies: `style=currency`)
35-
- `:percent` (implies: `style=percent`)
3640
- `:plural` (no format, implies `select=plural` which is default)
3741
- `:ordinal` (implies: `select=ordinal`; we are missing `style=ordinal`)
3842

@@ -64,7 +68,8 @@ Options:
6468
Function name: `:datetime`
6569

6670
Aliases:
67-
- (none currently; should there be `:date` and `:time` aliases to shorthand getting particularly timeStyle?)
71+
- `:date` (with `style=...` option corresponding to `:datetime dateStyle=...`)
72+
- `:time` (with `style=...` option corresponding to `:datetime timeStyle=...`)
6873

6974
Operand: "iso8601"
7075

@@ -105,6 +110,16 @@ Options:
105110
### Other
106111

107112

113+
### Deliberately Excluded
114+
115+
The following functionality was deliberately excluded:
116+
* Spellout
117+
* Duration
118+
* ChoiceFormat
119+
* Percent (as an alias of `:number`)
120+
* Currency (as an alias of `:number`)
121+
122+
108123
## Compatibility Matrix
109124

110125
How to write an MF1 format or selector in MF2:

0 commit comments

Comments
 (0)