-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2023-03-17] [$4000] Add translations for State & Country Pickers #14549
Comments
Still on hold |
Not on hold anymore! Asked for quick feedback on the plan here: https://expensify.slack.com/archives/C01GTK53T8Q/p1675770086903069 (Will probably also try to translate state picker items in this issue too) |
Job added to Upwork: https://www.upwork.com/jobs/~01b4c798f34b03ef03 |
Triggered auto assignment to @puneetlath ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
Current assignee @Beamanator is eligible for the External assigner, not assigning anyone new. |
ProposalPlease re-state the problem that we are trying to solve in this issue.As of now, all the countries and states displayed using What is the root cause of that problem?For CountryPicker, we have defined the countries as a constant array in ALL_COUNTRIES object in src/CONST.js. For StatePicker, the states are listed in an array in english language in the CONST.jsx file in expensify-common repository. What changes do you think we should make in order to solve the problem?To tackle this problem for StatePicker, we could shift the States array from expensify-common to the Expensify/App repo and the respective locale files. I do not understand why it was originally kept in a separate library. I'll get the PR ready ASAP as soon as I am assigned to the issue. If the required data about the translation to spanish is not available, I can prepare it myself and then have it reviewed in the PR. |
@Santhosh-Sellavel thoughts on the proposal? |
Thanks for the bump, sound's good at a glance, but there are a few doubts. Questions to @puneetlath or @Beamanator
|
The only other place where we are using the
I'm not sure if I understood this completely, country codes are language independent standard and we are currently using country code for phone numbers.
We are already doing this, in the To test it out, I tried the different locales and here are the results -
|
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.81-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-03-17. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
@Beamanator @Santhosh-Sellavel @0xmiroslav I was working on this issue and it came to my notice that the list of countries is sorted alphabetically as per the country ISO code, instead of country name alphabetically. Do we want to show the list of countries alphabetically according to country name? If so, I'll make those changes when sending the PR for #14958 |
Ooh yeah great question @Prince-Mendiratta - I think we would prefer showing alphabetically by country name instead of ISO code, great catch! |
Issue reported today: #16060 |
@Prince-Mendiratta @Santhosh-Sellavel sent you hiring offers. |
@puneetlath Thank you, accepted! |
All paid. Thanks everyone! |
@puneetlath Im the external reporter . And Haven't got paid. I'm new and do not know the procedure |
📣 @ashimsharma10! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Format:
|
Contributor details |
@ashimsharma10 can you link me to the slack thread where you reported the issue? |
@puneetlath Im a reporter from #15014 . Issue got solved by this current thread. |
Ok got it @ashimsharma10. Can you please apply to the Upwork job: https://www.upwork.com/jobs/~01b4c798f34b03ef03 |
@puneetlath Applied . |
@puneetlath i think this is not eligible for reporting bonus as per #15014 (comment) |
My takeaway from this comment from @Beamanator is that it should be eligible: #15014 (comment) @Beamanator what do you think? |
@puneetlath I also don't think this is eligible for reporting bonus, because I believe the fix for that other issue was pretty automatic when implementing the fix for this issue |
@Beamanator I guess there is no concrete rule on whether to pay or not. But, from a reporter's shoes, it doesn't matter if the issue gets fixed by the same thread or a different one. Anyways, I'm happy that the bug got resolved. |
Ok sorry for all the confusion on this one. Thanks for being a part of the community @ashimsharma10! We look forward to continuing to work with you 😄 |
Problem
In #14290, we created a
CountryPicker
component that gives the user the option to select many different countries as their home address. This is useful, but if a user prefers to use the app in Spanish (or any other language in the future), we need to make sure to show full address names in that language.Similarly, the
StatePicker
we have does not get translated in to Spanish at the moment and it needs to be.Solution
Update both components to be able to display state / country names in different languages
As agreed upon in this thread, probably the best solution is to put translations in our language files (
en.js
andes.js
) similar to how we have differentpronouns
lists in those filesUpwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: