Repository navigation
Conversation
Contributor
Author
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.

This updates the currency formatting settings and fixes price parsing when a price contains multiple thousand separators.
This should fix the incorrect total price displayed when clicking the Select Unowned DLC button on pages such as
https://store.steampowered.com/app/1222670/The_Sims_4/?cc=vn. You need to open this page while logged out of Steam (or in a private window) for theccparameter to work. The total should now be displayed as32.077.000₫instead of₫32,077.00.The currency map still isn't perfect, as Valve formats prices differently across some pages. For example, on the
https://store.steampowered.com/app/2691920/MolCollabo_v2/?cc=frstore page, the price is displayed as1 473,--€, whereas on thehttps://store.steampowered.com/search/?sort_by=Price_DESC&ndl=1&cc=frsearch page, it's displayed as1 473,00€. On the Community Market, the currency symbol can also appear to the left of the amount.Update 1
I forgot to mention that in all countries using USD except the USA,

USDis also appended to the price, e.g.$1,605.86 USD.(the price on the left shows how Augmented Steam currently formats the total, while the price on the right is the total displayed natively on the Steam website for all DLCs)