Skip to content

Commit 670e4b2

Browse files
authored
Merge pull request Expensify#66278 from nkdengineer/fix/66227
fix: Moved this expense to your personal space isn't translated
2 parents 44f190c + 1c03ca2 commit 670e4b2

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/libs/ReportUtils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5156,6 +5156,10 @@ function getReportNameInternal({
51565156
return getWorkspaceReportFieldDeleteMessage(parentReportAction);
51575157
}
51585158

5159+
if (isActionOfType(parentReportAction, CONST.REPORT.ACTIONS.TYPE.UNREPORTED_TRANSACTION)) {
5160+
return translateLocal('iou.unreportedTransaction');
5161+
}
5162+
51595163
if (isActionOfType(parentReportAction, CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_MAX_EXPENSE_AMOUNT_NO_RECEIPT)) {
51605164
return getPolicyChangeLogMaxExpenseAmountNoReceiptMessage(parentReportAction);
51615165
}

src/libs/SidebarUtils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,8 @@ function getOptionData({
760760
result.alternateText = getPolicyChangeLogUpdateEmployee(lastAction);
761761
} else if (lastAction?.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.DELETE_EMPLOYEE) {
762762
result.alternateText = getPolicyChangeLogDeleteMemberMessage(lastAction);
763+
} else if (isActionOfType(lastAction, CONST.REPORT.ACTIONS.TYPE.UNREPORTED_TRANSACTION)) {
764+
result.alternateText = translateLocal('iou.unreportedTransaction');
763765
} else if (lastAction?.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.DELETE_CUSTOM_UNIT_RATE) {
764766
result.alternateText = getReportActionMessageText(lastAction) ?? '';
765767
} else if (lastAction?.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.ADD_INTEGRATION) {

src/pages/home/report/ContextMenu/ContextMenuActions.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,8 @@ const ContextMenuActions: ContextMenuAction[] = [
563563
Clipboard.setString(getPolicyChangeLogDefaultBillableMessage(reportAction));
564564
} else if (reportAction.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_DEFAULT_TITLE_ENFORCED) {
565565
Clipboard.setString(getPolicyChangeLogDefaultTitleEnforcedMessage(reportAction));
566+
} else if (isActionOfType(reportAction, CONST.REPORT.ACTIONS.TYPE.UNREPORTED_TRANSACTION)) {
567+
Clipboard.setString(translateLocal('iou.unreportedTransaction'));
566568
} else if (isReimbursementQueuedAction(reportAction)) {
567569
Clipboard.setString(getReimbursementQueuedActionMessage({reportAction, reportOrID: reportID, shouldUseShortDisplayName: false}));
568570
} else if (isActionableMentionWhisper(reportAction)) {

0 commit comments

Comments
 (0)