-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$250] Chat - System message when changing submission frequency to monthly, not translated to Spanish #56842
Comments
Triggered auto assignment to @Christinadobrzyn ( |
|
I can handle internal review on this when ready, but should be fine to be external |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
App/src/libs/ReportActionsUtils.ts Line 2010 in cd3fb6d
What changes do you think we should make in order to solve the problem?
if (updatedField && updatedField === CONST.POLICY.COLLECTION_KEYS.AUTOREPORTING_OFFSET) {
const getMonthToDisplay = (month: string | number) => {
if (month === CONST.POLICY.AUTO_REPORTING_OFFSET.LAST_DAY_OF_MONTH) {
return translateLocal('workflowsPage.frequencies.lastDayOfMonth');
}
if (month === CONST.POLICY.AUTO_REPORTING_OFFSET.LAST_BUSINESS_DAY_OF_MONTH) {
return translateLocal('workflowsPage.frequencies.lastBusinessDayOfMonth');
}
if (typeof month === 'number') {
return toLocaleOrdinal(preferredLocale, month, false);
}
return '';
};
return translateLocal('workspaceActions.updateMonthlyOffset', {
newValue: getMonthToDisplay(newValue),
oldValue: getMonthToDisplay(oldValue),
});
}
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~021890440395516707285 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rayane-d ( |
@dangrous, @Christinadobrzyn, @rayane-d Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Hi @rayane-d! Can you take a peek at the proposal to see if we can move forward with it? TY! |
Triggered auto assignment to @aldo-expensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @truph01 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
that works! Yeah I think it assigned you coz I'm technically OOO - but I can take care of this. Proposal looks great, we should double check the translations in Slack if they're not already in the file, but that won't be hard. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Issue was found while executing QA for PR #56188
Version Number: 9.0.98-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: #56188
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Motorola MotoG60 - Android 12 - Chrome / Windows 10 - Chrome
App Component: Other
Action Performed:
Expected Result:
When changing the submission frequency to monthly and change the date, and changing language to Spanish, system message on #Admins room, reflecting this action, should be displayed in Spanish.
Actual Result:
When changing submission frequency to monthly and change the date, system message on #Admins room reflecting this action, is not translated to Spanish, despite the user changing the language preference.
Workaround:
Unknown
Platforms:
Screenshots/Videos
bug.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: