You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is for the discussion of the Working Group Ballot of the MF2.0 approval found in #955
This is the place to explain your "Approve" or "Disapprove" vote.
File individual issues for technical problems, editorial issues (such as spelling), or other topics orthogonal to whether we should approve the specification.
The text was updated successfully, but these errors were encountered:
For those of you playing along at home, the latest prerelease version of the JS messageformat library implements the current version of the spec, including everything except for :unit.
npm install --save-exact messageformat@next
import{MessageFormat}from'messageformat'constmsg=newMessageFormat('en','{$cost :currency u:locale=fi}');constcost={valueOf: ()=>42,options: {currency: 'EUR'}};msg.format({ cost });// '42,00 €'msg.format({cost: 42});// '{$cost}'// Warning: A currency code is required for :currencymsg.formatToParts({ cost });// see below
FWIW, I'm still not a fan of that deep structure, and much prefer a flattened representation as in the existing Intl APIs such as DateTimeFormat.prototype.formatRangeToParts.
I agree with this, but it does not have to do with MessageFormat 2.0, right? That has to do with Intl.MessageFormat. I don't see where in MessageFormat 2.0 it defines formatToParts.
This issue is for the discussion of the Working Group Ballot of the MF2.0 approval found in #955
The text was updated successfully, but these errors were encountered: