WhoopInc / frozen-moment-OLD

NOW A MOMENT PLUGIN:
https://github.com/WhoopInc/frozen-moment
MIT License
9 stars 0 forks source link

Optional parameter in format functions to override the instance's locale #12

Open butterflyhug opened 10 years ago

butterflyhug commented 10 years ago

Format functions [1] should accept an optional locale key. If provided, the specified locale overrides the one associated with the instance itself, for just one formatting operation.

Related to #2. Could be a port of moment#1621. See also #13, we may want an optional options hash with timezone and locale as possible options.

[1] For this purpose, "format functions" are frozenMoment.format(), frozenMoment.calendar(), and anything else sensible in the "Display" section of the docs)

benesch commented 10 years ago

:thumbsup:

Man, the developers of this project are responsive.