-
Notifications
You must be signed in to change notification settings - Fork 636
Adjust formatting rules to use i18n translations for :format
#1157
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
Conversation
yukideluxe
left a comment
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.
I like! Thanks @DRBragg 👏🏻
PS. default_format is calling currency.format which is the same as what the Money::LocaleBackend::Currency#format does. I see a bit of room for cleanup here but I have a semi-ready branch to remove the use_i18n deprecation and I can tackle that! 🙏🏻
|
Awesome! Thanks @yukideluxe. Just for planning purposes is there an ETA on version 7? This PR was born from some work I'm doing in Podia's codebase and I'm just wondering if I need to implement something similar for us or if we can try to wait for the upgrade. Thanks! |
I am slowly trying to remove the last very old deprecation – That said, at Harvest we've been pulling |
Yea, we'd be down for that. I'll take a look at the changelog but if you have (even a rough draft of) the migration guide I'd like to look at that too. I don't think it will take much to migrate but I wouldn't mind the look. |
@DRBragg I don't have anything written yet but it won't differ much from the current CHANGELOG! https://github.com/RubyMoney/money/blob/main/CHANGELOG.md#upcoming-700alpha. I think a great job has been done to keep that updated and very detailed! Props to @sunny! |
|
@yukideluxe Podia is now running |
|
@DRBragg thanks for letting me know! That brings some peace of mind and makes me a bit less stressed about the major bump 😇 |
What's changing?
Allow the default format for a language be configured via I18n.
Why?
Fixes #233 (which was closed with no solution).
This is an updated version of #1115