Fix JS locale data for release of Money 6.19#5683
Merged
spaghetticode merged 1 commit intosolidusio:mainfrom Mar 7, 2024
Merged
Fix JS locale data for release of Money 6.19#5683spaghetticode merged 1 commit intosolidusio:mainfrom
spaghetticode merged 1 commit intosolidusio:mainfrom
Conversation
The money gem in its latest iteration added a space between value and unit of the Swiss Franc. Our heuristic in `_js_locale_data.html.erb` can't deal with that, so we add a third branch to it: If the money gem has a format wish, we'll respect it, but replace its abbreviations with the one the `accounting.js` library prefers.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5683 +/- ##
=======================================
Coverage 88.87% 88.87%
=======================================
Files 699 699
Lines 16607 16607
=======================================
Hits 14760 14760
Misses 1847 1847 ☔ View full report in Codecov by Sentry. |
kennyadsl
approved these changes
Mar 7, 2024
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
This was referenced Dec 2, 2024
💔 Some backports could not be created
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
💔 Some backports could not be created
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
💔 Some backports could not be created
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The money gem in its latest iteration added a space between value and unit of the Swiss Franc. Our heuristic in
_js_locale_data.html.erbcan't deal with that, so we add a third branch to it: If the money gem has a format wish, we'll respect it, but replace its abbreviations with the one theaccounting.jslibrary prefers.Cf https://github.com/RubyMoney/money/blob/main/CHANGELOG.md#6190
Checklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs: