Open lanitochka17 opened 5 days ago
Triggered auto assignment to @alexpensify (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
"Payment Complete" is not in Spanish.
We are not using a en.ts/es.ts variable here https://github.com/Expensify/App/blob/05ca35c015b268e495fe94eff36c9eda7afb78bc/src/components/SettlementButton/AnimatedSettlementButton.tsx#L80
We should create a variable in both en.ts/es.ts files and use it here instead of payment complete
https://github.com/Expensify/App/blob/05ca35c015b268e495fe94eff36c9eda7afb78bc/src/components/SettlementButton/AnimatedSettlementButton.tsx#L80
In es.ts file we'll use Spanish translation of payment complete
Optional: we can use payment completed
instead of payment complete
Wr can check in both en.ts/es.ts files if we already have a variable for this then we can use it here https://github.com/Expensify/App/blob/05ca35c015b268e495fe94eff36c9eda7afb78bc/src/components/SettlementButton/AnimatedSettlementButton.tsx#L80
The current issue is that the "Payment complete" text displayed after completing a payment in the workspace chat is not translated to Spanish, despite the user's language preference being set to Spanish.
The root cause of the issue is that the text "Payment complete" is hardcoded in the component AnimatedSettlementButton.tsx
at line 80
. Instead of using translation keys from en.ts
and es.ts
files, it directly displays the English text.
We should refactor the code to replace the hardcoded "Payment complete" text with a variable that pulls the translation from the language files (en.ts
for English and es.ts
for Spanish).
Steps:
en.ts
and es.ts
.
en.ts
, we will add something like: paymentComplete: 'Payment complete'
.es.ts
, we will add: paymentComplete: 'Pago completado'
(which means "Payment completed" in Spanish).Modify the code in AnimatedSettlementButton.tsx
to use the variable instead of the hardcoded text:
<Text style={[styles.buttonMediumText]}>{translate('paymentComplete')}</Text>
π£ @Bakhtiar85! π£ 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. Please follow these steps:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
Contributor details Your Expensify account email: makhdoomabubakar85@gmail.com Upwork Profile Link: https://www.upwork.com/freelancers/~017304c8ed7eb17c49
β Contributor details stored successfully. Thank you for contributing to Expensify!
Job added to Upwork: https://www.upwork.com/jobs/~021839725639165419380
Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha (External
)
@getusha when you get a chance, can you please review if one of these proposals will fix this issue? Thanks!
paymentComplete: 'Payment comptete'
, here
https://github.com/Expensify/App/blob/461d574f9e2b9466eceec27630797a01403d4a45/src/languages/en.ts#L826paymentComplete: 'pago completo'
, here
https://github.com/Expensify/App/blob/461d574f9e2b9466eceec27630797a01403d4a45/src/languages/es.ts#L878translate(paymentComplete)
here
<Text style={[styles.buttonMediumText]}>${translate('iou.paymentComplete')}</Text>
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
Triggered auto assignment to @flodnv, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
@flodnv we can adjust the price, as this is a relatively minor and straightforward change.
Upwork job price has been updated to $50
π£ @Nodebrute π An offer has been automatically sent to your Upwork account for the Contributor role π Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
PR will be ready in few hours
If you havenβt already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.40-4 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Email or phone of affected tester (no customers): gibethlehem@gmail.com Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
"Payment completed" should be in Spanish
Actual Result:
It shows "Payment completed" animation. "Payment completed" is not changed to Spanish
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/user-attachments/assets/ad22368e-314b-4b15-844a-d5269e3b1278
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @getusha