This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Measure Unit Syntax #3
Comments
Upstream issue reference: |
My personal uninformed opinions:
|
I think I prefer: { style: "measure", measureUnit: "length-meter", measureDisplay: "<width>" } As it makes it explicit that these options are for |
The precedent for currency is,
If we call this "unit", then the analogy would be,
|
We discussed this question in the May 2018 Intl meeting. The conclusion was:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In the March 2018 Ecma 402 call, we agreed to add measure units as a "style" option and to have the options themselves be specified in a flat settings object.
We now need to name the settings. We need to name the following pieces:
Possible names for each piece:
style
: this is already fixed in the spec.measure
: could bemeasure
,measureUnit
,unit
, ...unit
: could beunit
,measureUnit
, ...length-meter
: this is a CLDR unit identifier. Should we keep this format, or should we adopt a different format in Ecma 402?unitWidth
: could beunitWidth
,unitStyle
,unitDisplay
,measureDisplay
, ...currency
has a field calledcurrencyDisplay
, so we could name this field similarly<width>
: these are the unit width options. CLDR calls them "long", "short", and "narrow". ICU MeasureFormat calls them "wide", "short", and "narrow". ICU NumberFormatter calls them "full name", "short", and "narrow".Suggestions on each of the five parts of the syntax that need naming?
The text was updated successfully, but these errors were encountered: