i18n API - {style: "currency"} redundant when currency is declared

Nebojša Ćirić cira at google.com
Tue Sep 4 10:20:34 PDT 2012


And {currency: 'USD', style:'percent'} would still produce {currency:'USD',
style: 'currency'}, i.e. currency property dictates the style?



2012/9/4 Marcos Caceres <ecmascript at marcosc.com>

> Hi,
> If I define a "currency" option for NumberFormat, then {style: "currency"}
> should automagically be set, no?
>
> I think is redundant to have to do the following:
>  {style: "currency", currency: "USD"}.
>
> I should just be able to say: {currency: "USD"} without having to declare
> the "style".
>
>
> --
> Marcos Caceres
> http://datadriven.com.au
>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>



-- 
Nebojša Ćirić
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120904/3a1c023a/attachment.html>


More information about the es-discuss mailing list