-
-
Notifications
You must be signed in to change notification settings - Fork 834
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
Added ES6 local support for formatNumber helper as per #2951 #3099
Conversation
|
You can indeed use |
Updated to support the user's local and make the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much! We'll merge this after we release Flarum v1.1
#2951
Changes proposed in this pull request:
Updated
formatNumber
helper to use ES6 method to format numbers via provided locale. Unsure how to grab the current user's locale to inject when the helper is used inPostStreamScrubber.js
. Wouldapp.session.user.locale
work if it's not necessarily set?Confirmed