Skip to content

Commit

Permalink
Normative: turn useGrouping to false for hours and smaller unit when …
Browse files Browse the repository at this point in the history
…the style is 2-digits or numeric

Fix #192
  • Loading branch information
FrankYFTang authored Apr 25, 2024
1 parent 5e1edb2 commit 29e8223
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ contributors: Ujjwal Sharma, Younies Mahmoud
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, *"numberingSystem"*, _durationFormat_.[[NumberingSystem]]).
1. If _style_ is *"2-digit"*, then
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, *"minimumIntegerDigits"*, *2*<sub>𝔽</sub>).
1. If _style_ is not *"fractional"*, *"numeric"*, or *"2-digit"*, then
1. If _style_ is *"fractional"*, *"numeric"*, or *"2-digit"*, then
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, *"useGrouping"*, *false*).
1. Else,
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, *"style"*, *"unit"*).
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, *"unit"*, _numberFormatUnit_).
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, *"unitDisplay"*, _style_).
Expand Down

0 comments on commit 29e8223

Please sign in to comment.