-
Notifications
You must be signed in to change notification settings - Fork 0
Do something about locale translation modules #2
Comments
See also @icambron's moment#1761, which proposes an upstream refactoring of moment's locale system. We should probably pull those changes when they're finalized. |
See also @suprememoocow's moment#1621, which adds the ability to configure the language as part of the format method instead of changing it globally. |
Hi folks. I've just discovered your fork of Moment via the mention. I love the idea of this fork. Immutable value types lead to far fewer bugs - especially with dates. I've used Joda Time for years (a Java date library with immutable types) and believe it makes much more resilient code. How far along is this project? Are you using it in production? I'm keen to move Gitter across to frozen moment once it's stable. |
Awesome! Glad to have you here, @suprememoocow! Do you have any thoughts about the expected behavior of setting I've got a proposal at the top of this issue, but I'm not sure whether it's the best way to go. I'm hoping to get some feedback from future users before I fix the localization system, especially since we aren't using any of the language translation modules in Whoop's (beta-quality) production app yet. Project status report: We just started developing this fork last weekend, so it's still early days here. (PRs are more than welcome, if you want to get involved!) Our copy of the docs should be up to date with the current state of our code. FrozenMoment instances are actually immutable (unless you mess with their private properties yourself, of course), and all core Moment functionality except |
Not sure how this should work. Current idea:
I think this proposal feels nicely consistent with the rest of the immutable API, but I'm not sure how it'll feel in use, and we at WhoopInc aren't currently using moment localization so I won't quickly gain much experience to drive my instincts on this issue.
The text was updated successfully, but these errors were encountered: