-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Hold for Payment] Translation Inconsistency between balance in Settings page & payments page #4448
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
Comments
Triggered auto assignment to @alexpensify ( |
This is actually a bit difficult since currency formatting varies by locale and not by language, i.e. among Spanish-speaking countries, the formatting can vary. This means they'll use commas or decimals as separators differently and place the currency symbol or abbreviation either before or after the amount. For example, in Spain, the currency would be formatted to To my knowledge, right now, we are not localizing at a country-specific level. (cc: @iwiznia to confirm) Here's the formatting for Spanish-speaking countries (reference): The majority place the currency symbol to the left. There's almost an even split between using commas or decimals as separators for grouping and fractions. 10 comma grouping/decimal fraction (1,205.34) vs 12 decimal grouping/comma fraction (1.205,34). If we are not locale-specific and need to choose one format and want to go with the majority, then it appears we would need to go with: |
I drafted a PR based on the discussion we had earlier here. One thing is clear here either the settings page or payment page needs a change. Waiting for confirmation, what needs to be done. I'll put PR on hold for now. |
IMO given @marklouisdeshaun post we should just standardize on US formatting ( |
Posting in the slack thread to get more discussion |
Triggered auto assignment to @TomatoToaster ( |
@marklouisdeshaun we only added Spanish (Spain) as a translation and locale, but the library already has configured all the number formatting options for every location in the world. The fact that the currency is always USD does not mean that the format should always be the one in USA. So, the fix should be to use the locale aware methods to print the amount in both places. |
@iwiznia thanks for confirming. So, if we do have the ability to format numbers/dates/currencies at the locale-specific level, then we should definitely do so. |
@TomatoToaster proposed changes are available in #4461. I'll mark PR as ready for review once you say go ahead. Thanks |
Ah sorry, I thought this was already marked for exported. Marking it so the job could be made/proposal can be properly evaluated. |
Triggered auto assignment to @dylanexpensify ( |
Working on this now |
Upwork job issue: https://www.upwork.com/jobs/~01c99cb1728a0bcc52 |
Triggered auto assignment to @johnmlee101 ( |
@dylanexpensify applied for the job. |
Proposal looks good to me. Feel free to hire away if you haven't already @dylanexpensify ! |
@stitesExpensify sent offer! |
Thanks, accepted the offer! |
@johnmlee101 Huh... This is 4 days overdue. Who can take care of this? |
@johnmlee101 Still overdue 6 days?! Let's take care of this! |
It's not overdue, everything is completed. Yet to close. |
@johnmlee101 Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it! |
@dylanexpensify can we close this or update the status? |
Waiting for 7 days after deploy to prod |
@johnmlee101 12 days overdue now... This issue's end is nigh! |
This issue has not been updated in over 14 days. @johnmlee101 eroding to Weekly issue. |
@dylanexpensify Kindly assign this to me, before closing out! |
Paid. @Santhosh-Sellavel I also added the bonus you receive for reporting AND fixing the issue to the total. |
Uh oh!
There was an error while loading. Please reload this page.
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
https://expensify.slack.com/archives/C01GTK53T8Q/p1628198667040500
Action Performed:
Español
in Settings -> preferences.$0.00
for English, but in Spanish, we show0,00 US$.
But when we open the payments page, In there we show the balance as
$0.00
for both languages.$0.00
for Spanish, without any locale formatting.Expected Result:
Should be consistent on all pages. @marklouisdeshaun
Actual Result:
Payments page: English

Payments page: Espanol

Settings page balance: English

Settings page balance: Espanol

Workaround:
Can the user still use Expensify without this being fixed? Yes
Platform:
Where is this issue occurring?
Proposal
Based on @marklouisdeshaun inputs. Need to decide where changes need to be done.
Version Number:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
View all open jobs on Upwork
The text was updated successfully, but these errors were encountered: