Closed lanitochka17 closed 2 months ago
Triggered auto assignment to @johncschuster (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.
Workspace – System message for changed workspace name is not translated to Spanish
We are not displaying the action POLICYCHANGELOG_UPDATE_NAME
translating the message but instead display the action with ReportActionItemMessage
which only displays the message
fragments without translation
We need to include a translation first for policy changed text that takes new and old policy name as params then we will display the action here by creating an else if for POLICYCHANGELOG_UPDATE_NAME
type action and pass the translated text as the message of ReportActionItemBasicMessage
https://github.com/Expensify/App/blob/b0f810df06c3df866b7fdbed4959f8f1fef803ed/src/pages/home/report/ReportActionItem.tsx#L655-L656
We can of course create a util that returns the translated text. And also we can apply the same for other type of actions too that do not support translation yet.
Job added to Upwork: https://www.upwork.com/jobs/~01cff222f969263a52
Triggered auto assignment to Contributor-plus team member for initial proposal review - @suneox (External
)
System message for changed workspace name is not translated to Spanish
For update log messages in admin room, we don't translate to Spanish
We’ve added a function to translate system messages, but we haven't included the POLICYCHANGELOG_UPDATE_NAME
action. We need to incorporate logic to handle the translation for the POLICYCHANGELOG_UPDATE_NAME
action.
if (isActionOfType(action, CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_NAME)) {
const oldName = getOriginalMessage(action)?.oldName ?? '';
const newName = getOriginalMessage(action)?.newName ?? '';
const message = `${Localize.translateLocal('workspace.renamedPolicyAction.renamedPolicyAction', {oldName, newName})}`; // NEED TO CREATE A NEW TRANSLATION KEY renamedPolicyAction
return [{text: message, html: `<muted-text>${message}</muted-text>`, type: 'COMMENT'}];
}
For example, en.ts (need to confirm Spanish translation in es.ts)
renamedPolicyAction: {
renamedPolicyAction: ({oldName, newName}: RenamedRoomActionParams) => ` updated the name of this workspace from ${oldName} to ${newName}`,
},
I've observed that other update log messages, such as POLICYCHANGELOG_UPDATE_FIELD, also aren't translated into Spanish. We should apply the same approach to address these cases as well.
@FitseTLT @cretadn22 Thank you for your proposals.
The RCA from both solutions is correct, and both solutions include updating the new translation. In spite of the proposal from @cretadn22 being more detailed but since the policy name does not support markdown so there is no need to update the render as a fragment with TextCommentFragment
.
The solution from @FitseTLT was provided first, and rendering the content as ReportActionItemBasicMessage
also makes sense in this case.
So @FitseTLT proposal is LGTM, and we should also update alternateText
for the sidebar.
🎀 👀 🎀 C+ reviewed
Triggered auto assignment to @robertjchen, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Thanks for the proposals and review. Let's go with @FitseTLT 's 👍
📣 @suneox 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!
📣 @FitseTLT 🎉 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 📖
@johncschuster I need a copy for
updated the name of this workspace from ${oldName} to ${newName}
Thx
@johncschuster or @robertjchen Can you add the Need a Copy
label? Thx
Triggered auto assignment to @danielrvidal (Waiting for copy
), see https://stackoverflow.com/c/expensify/questions/7025/ for more details.
@danielrvidal, @robertjchen, @johncschuster, @suneox, @FitseTLT Whoops! This issue is 2 days overdue. Let's get this updated quick!
Just bumped @danielrvidal in DM 👍
For our internal team, I'm confirming the translation here: https://expensify.slack.com/archives/C21FRDWCV/p1722978885798709
Thanks @danielrvidal!
Here you are @FitseTLT
actualizó el nombre de este espacio de trabajo de “${oldName}” a “${newName}”
Let me know if you have any questions.
Awesome. Thanks, @danielrvidal!
Just some conflicts to be resolved on the PR and I can merge 👍
Merged and on the way out!
On prod
Current assignee @johncschuster is eligible for the Bug assigner, not assigning anyone new.
@johncschuster could you please help with the next steps here? Thanks!
@johncschuster This issue has been deployed to production over a week, so I think we should add label await payment
@danielrvidal, @robertjchen, @johncschuster, @suneox, @FitseTLT Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
This issue has been deployed to production 2 weeks ago. We're waiting for payment
Sorry about that! I process my "Hold for payment" issues every morning (by way of filtering specifically for those issue titles), and I missed this since the automation didn't seem to change the title. I'll get this sorted!
(I've updated the title to make sure I see this when I action my payment issues in the morning)
@johncschuster I've accepted the offer
@johncschuster There is already an offer that I have already accepted.
Thanks for clarifying that, @FitseTLT! I'll use the offer you've already accepted and will close the new one I made.
I've issued payment! Thank you both for your contributions! 🎉
thanks!
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.12-0 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): gocemate+a706@gmail.com Issue reported by: Applause - Internal Team
Issue found when executing PR https://github.com/Expensify/App/pull/45970
Action Performed:
Expected Result:
The system message should be translated to Spanish
Actual Result:
System message for changed workspace is not translated to Spanish. It appear on English even language is changed
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/36a24a0e-8f72-45f2-82db-0ea26e5feb6a
View all open jobs on GitHub
Upwork Automation - Do Not Edit