Skip to content

Commit

Permalink
Merge pull request Expensify#51406 from callstack-internal/feature/51…
Browse files Browse the repository at this point in the history
…401-card-assigned-text

[No QA] [3rd Party Feeds] Update CARDASSIGNED report action text
  • Loading branch information
mountiny authored Oct 29, 2024
2 parents db592c9 + 8f55d82 commit 0b38886
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type {
ApprovalWorkflowErrorParams,
ApprovedAmountParams,
AssignCardParams,
AssignedYouCardParams,
AssignedCardParams,
AssigneeParams,
AuthenticationErrorParams,
AutoPayApprovedReportsLimitErrorParams,
Expand Down Expand Up @@ -3144,7 +3144,7 @@ const translations = {
brokenConnectionErrorFirstPart: `Card feed connection is broken. Please `,
brokenConnectionErrorLink: 'log into your bank ',
brokenConnectionErrorSecondPart: 'so we can establish the connection again.',
assignedYouCard: ({link}: AssignedYouCardParams) => `assigned you a ${link}! Imported transactions will appear in this chat.`,
assignedCard: ({assignee, link}: AssignedCardParams) => `assigned ${assignee} a ${link}! Imported transactions will appear in this chat.`,
companyCard: 'company card',
chooseCardFeed: 'Choose card feed',
},
Expand Down
4 changes: 2 additions & 2 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {
ApprovalWorkflowErrorParams,
ApprovedAmountParams,
AssignCardParams,
AssignedYouCardParams,
AssignedCardParams,
AssigneeParams,
AuthenticationErrorParams,
AutoPayApprovedReportsLimitErrorParams,
Expand Down Expand Up @@ -3183,7 +3183,7 @@ const translations = {
brokenConnectionErrorFirstPart: `La conexión de la fuente de tarjetas está rota. Por favor, `,
brokenConnectionErrorLink: 'inicia sesión en tu banco ',
brokenConnectionErrorSecondPart: 'para que podamos restablecer la conexión.',
assignedYouCard: ({link}: AssignedYouCardParams) => `te ha asignado una ${link}! Las transacciones importadas aparecerán en este chat.`,
assignedCard: ({assignee, link}: AssignedCardParams) => `ha asignado a ${assignee} una ${link}! Las transacciones importadas aparecerán en este chat.`,
companyCard: 'tarjeta de empresa',
chooseCardFeed: 'Elige feed de tarjetas',
},
Expand Down
5 changes: 3 additions & 2 deletions src/languages/params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,8 @@ type SpreadCategoriesParams = {
categories: number;
};

type AssignedYouCardParams = {
type AssignedCardParams = {
assignee: string;
link: string;
};

Expand Down Expand Up @@ -558,7 +559,7 @@ export type {
FeatureNameParams,
SpreadSheetColumnParams,
SpreadFieldNameParams,
AssignedYouCardParams,
AssignedCardParams,
SpreadCategoriesParams,
DelegateRoleParams,
DelegatorParams,
Expand Down
3 changes: 2 additions & 1 deletion src/libs/ReportActionsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1757,6 +1757,7 @@ function getCardIssuedMessage(reportAction: OnyxEntry<ReportAction>, shouldRende
reportAction,
CONST.REPORT.ACTIONS.TYPE.CARD_ISSUED,
CONST.REPORT.ACTIONS.TYPE.CARD_ISSUED_VIRTUAL,
CONST.REPORT.ACTIONS.TYPE.CARD_ASSIGNED,
CONST.REPORT.ACTIONS.TYPE.CARD_MISSING_ADDRESS,
)
? getOriginalMessage(reportAction)
Expand Down Expand Up @@ -1793,7 +1794,7 @@ function getCardIssuedMessage(reportAction: OnyxEntry<ReportAction>, shouldRende
case CONST.REPORT.ACTIONS.TYPE.CARD_ISSUED_VIRTUAL:
return Localize.translateLocal('workspace.expensifyCard.issuedCardVirtual', {assignee, link: expensifyCardLink});
case CONST.REPORT.ACTIONS.TYPE.CARD_ASSIGNED:
return Localize.translateLocal('workspace.companyCards.assignedYouCard', {link: companyCardLink});
return Localize.translateLocal('workspace.companyCards.assignedCard', {assignee, link: companyCardLink});
case CONST.REPORT.ACTIONS.TYPE.CARD_MISSING_ADDRESS:
return Localize.translateLocal(`workspace.expensifyCard.${shouldShowAddMissingDetailsMessage ? 'issuedCardNoShippingDetails' : 'addedShippingDetails'}`, {assignee});
default:
Expand Down

0 comments on commit 0b38886

Please sign in to comment.