Overview obeying the currency's default locale#11202
Closed
Conversation
Contributor
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Contributor
|
Size Change: +23 B (0%) Total Size: 928 kB
ℹ️ View Unchanged
|
…w-change-depending-on-woo-store
Member
Author
|
Closed since this does not apply anymore |
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.
Fixes WOOPMNT-2973
Changes proposed in this Pull Request
Balances in Payments > Overview (Available funds, Pending funds) were formatted using the store's country settings instead of the currency's default locale. This caused incorrect display when the store location used different decimal separators or decimal places.
Example: With store location set to Kuwait (comma separator, 3 decimals), EUR balance of €-1.85 would display as €-1,850.
Updated balance-related currency formatting to use useLocaleFormatting=true, which formats based on the currency's default locale rather than the store's country settings.
Testing instructions
npm run changelogto add a changelog file, choosepatchto leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge