Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

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

Open
butterflyhug opened this issue Aug 11, 2014 · 1 comment

Comments

@butterflyhug
Copy link

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
Copy link

benesch commented Aug 11, 2014

👍

Man, the developers of this project are responsive.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants