Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.34k stars 2.77k forks source link

[HOLD for payment 2023-04-05] App does not translate 'reacted with' to spanish in new reacted with emoji tooltip #16051

Closed kavimuru closed 1 year ago

kavimuru commented 1 year ago

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Open the app
  2. Open settings
  3. Open Preferences
  4. Open Language
  5. Change language to spanish
  6. Open any report
  7. React to any message
  8. Hover on reacted emoji

Expected Result:

App should translate 'reacted with' text as it translates 'You' above it

Actual Result:

App only translates 'You' in tooltip and does not translate 'reacted with' to spanish

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

Version Number: 1.2.86-1 Reproducible in staging?: y Reproducible in production?: y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos:

Untitled

https://user-images.githubusercontent.com/43996225/225697504-de080bb4-37e8-4291-ac5f-01672b8a13f9.mp4

Expensify/Expensify Issue URL: Issue reported by: @dhanashree-sawant Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1678961850453749

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a0a0323d7f5b83e2
  • Upwork Job ID: 1636483395419566080
  • Last Price Increase: 2023-03-16
MelvinBot commented 1 year ago

Triggered auto assignment to @conorpendergrast (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

MelvinBot commented 1 year ago

Bug0 Triage Checklist (Main S/O)

conorpendergrast commented 1 year ago

Looks like this was introduced alongside https://github.com/Expensify/App/issues/15127, where reacted with is hardcoded in, rather than in the translation file.

@stitesExpensify and @hannojg , I will put this thorough the usual Extenal process, unless you two want to take it for some other reason?

MelvinBot commented 1 year ago

Job added to Upwork: https://www.upwork.com/jobs/~01a0a0323d7f5b83e2

MelvinBot commented 1 year ago

Current assignee @conorpendergrast is eligible for the External assigner, not assigning anyone new.

MelvinBot commented 1 year ago

Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak (External)

PrashantMangukiya commented 1 year ago

Proposal

Please re-state the problem that we are trying to solve in this issue.

Reacted emoji tooltip does not translate reacted with word in to Spanish

What is the root cause of that problem?

Within ReactionTooltipContent.js at line 65 'reacted with' text hardcoded. This is the root cause of the problem. https://github.com/Expensify/App/blob/0efe6acf41eb985a0d6e42b47a8d91ab9cef6559/src/components/Reactions/ReactionTooltipContent.js#L65

What changes do you think we should make in order to solve the problem?

We have to add translation key within en.js and es.js and update line 65 as shown below.

Within src/languages/en.js add below translation key

reportActionContextMenu: {
  ...
  reactedWith: ({emojiName}) => `reacted with :${emojiName}:`,
},

Within src/languages/es.js add below translation key

reportActionContextMenu: {
  ...
  reactedWith: ({emojiName}) => `reaccionó con :${emojiName}:`,
},

Within ReactionTooltipContent.js at line 65 change code as shown below

  { props.translate('reportActionContextMenu.reactedWith', {emojiName: props.emojiName}) }

What alternative solutions did you explore? (Optional)

None

MelvinBot commented 1 year ago

Triggered auto assignment to @jasperhuangg (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

Snehal-Techforce commented 1 year ago

Proposal

Issue Root Cause: Spanish translation is not available in es.js file

Solution: Adding translation string in es.js & en.js file and modify the code by removing hard coded English text and updating translation trigger point in ReactionTooltipContent.js file’s 65th line., “reacted with” text is translated into Spanish text.

image

Below are the changes in es.js & en.js language files.

image

image

Expected Output:

image

jasperhuangg commented 1 year ago

@stitesExpensify and @hannojg , I will put this thorough the usual Extenal process, unless you two want to take it for some other reason?

I think this is a straightforward enough fix that proposals aren't required. Sorry to those that have already submitted proposals, but this seems like cleanup from a new feature that was added recently, so I'm removing the External and Help Wanted labels.

tjferriss commented 1 year ago

@stitesExpensify @jasperhuangg I have a related issue where the Emoji reaction names are not in Spanish language https://github.com/Expensify/App/issues/16086

Should we treat these separately or get both fixed here?

MelvinBot commented 1 year ago

@stitesExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

MelvinBot commented 1 year ago

@stitesExpensify Eep! 4 days overdue now. Issues have feelings too...

tjferriss commented 1 year ago

@stitesExpensify any advice on the above comment?

stitesExpensify commented 1 year ago

Apologies for the delay, I'm currently sick and (mostly) OOO. These are definitely separate issues @tjferriss .

I'll fix this internally next week.

stitesExpensify commented 1 year ago

PR is up

MelvinBot commented 1 year ago

Reviewing label has been removed, please complete the "BugZero Checklist".

MelvinBot commented 1 year ago

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.2.91-1 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-04-05. :confetti_ball:

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:

MelvinBot commented 1 year ago

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

tjferriss commented 1 year ago

@stitesExpensify can you confirm we're not paying out @eVoloshchak for the contributor plus role?

stitesExpensify commented 1 year ago

@tjferriss puneet decided that we actually did want a contributor plus here, so we should pay them for a review

tjferriss commented 1 year ago

Thank you for confirming. @dhanashree-sawant and @eVoloshchak I've sent you both offers via Upworks.

dhanashree-sawant commented 1 year ago

Hi @tjferriss , ping for upwork.

MelvinBot commented 1 year ago

@stitesExpensify Eep! 4 days overdue now. Issues have feelings too...

MelvinBot commented 1 year ago

@stitesExpensify Eep! 4 days overdue now. Issues have feelings too...

tjferriss commented 1 year ago

Sorry @dhanashree-sawant @eVoloshchak I missed this before heading out of office. I just invited you both to the job on Upworks: https://www.upwork.com/jobs/~013ae3f2bb593b09f0

dhanashree-sawant commented 1 year ago

Hi @tjferriss , sure that's okay, there is already a job with offer for the same task. I will message you on upwork in that offer. If possible, can you only accept that offer?

eVoloshchak commented 1 year ago

Same thing, I already have an active job for this task

tjferriss commented 1 year ago

Got it. Payments have been sent using the original job post.

@stitesExpensify can you complete the check list?

MelvinBot commented 1 year ago

@stitesExpensify Still overdue 6 days?! Let's take care of this!

stitesExpensify commented 1 year ago

Completed checklist! Closing