-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add JavaScript dateFormat & numberFormat function #299
Labels
Comments
Sounds good! I don't know why it's not included already. Interested in sending PR? |
I would but I have very limited bandwidth so do not wait for me :( |
👍 🍺 |
Released in v2.7.0. |
Thank you a ton @tricoder42 ! |
Photonios
pushed a commit
to SectorLabs/js-lingui
that referenced
this issue
Dec 9, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
For a usage outside of react, in javascript
i18n
containst, plural, select, selectOrdinal
but nodateFormat
nornumberFormat
helpers like react components.Using
date
from core works, but it requires to create a function with current language before being able to use it. If you don't have the need for cached formatter this is tedious.This is just sugar, but nice sugar :)
Describe the solution you'd like
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: