Skip to content

Commit 40d7ea1

Browse files
committed
fix: Moved this expense to your personal space isn't translated
1 parent e1033bd commit 40d7ea1

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
@@ -5118,6 +5118,10 @@ function getReportNameInternal({
51185118
return getWorkspaceReportFieldDeleteMessage(parentReportAction);
51195119
}
51205120

5121+
if (isActionOfType(parentReportAction, CONST.REPORT.ACTIONS.TYPE.UNREPORTED_TRANSACTION)) {
5122+
return translateLocal('iou.unreportedTransaction');
5123+
}
5124+
51215125
if (isActionOfType(parentReportAction, CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_MAX_EXPENSE_AMOUNT_NO_RECEIPT)) {
51225126
return getPolicyChangeLogMaxExpenseAmountNoReceiptMessage(parentReportAction);
51235127
}

src/libs/SidebarUtils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,8 @@ function getOptionData({
758758
result.alternateText = getPolicyChangeLogUpdateEmployee(lastAction);
759759
} else if (lastAction?.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.DELETE_EMPLOYEE) {
760760
result.alternateText = getPolicyChangeLogDeleteMemberMessage(lastAction);
761+
} else if (isActionOfType(lastAction, CONST.REPORT.ACTIONS.TYPE.UNREPORTED_TRANSACTION)) {
762+
result.alternateText = translateLocal('iou.unreportedTransaction');
761763
} else if (lastAction?.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.DELETE_CUSTOM_UNIT_RATE) {
762764
result.alternateText = getReportActionMessageText(lastAction) ?? '';
763765
} 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)