From adc8239312cfcf5dbd98b107a602abb49aed5218 Mon Sep 17 00:00:00 2001 From: Rayane <77965000+rayane-d@users.noreply.github.com> Date: Fri, 12 Dec 2025 01:52:02 +0100 Subject: [PATCH 1/8] Implement policy change log for: Taxes - set/change default tax rates, change custom tax name --- src/CONST/index.ts | 3 ++ src/languages/en.ts | 7 ++++ src/languages/es.ts | 3 ++ src/languages/params.ts | 9 +++++ src/libs/ReportActionsUtils.ts | 36 +++++++++++++++++++ src/libs/SidebarUtils.ts | 9 +++++ .../home/report/PureReportActionItem.tsx | 9 +++++ 7 files changed, 76 insertions(+) diff --git a/src/CONST/index.ts b/src/CONST/index.ts index 862151c02a737..e063019253f9f 100755 --- a/src/CONST/index.ts +++ b/src/CONST/index.ts @@ -1333,6 +1333,9 @@ const CONST = { UPDATE_DEFAULT_APPROVER: 'POLICYCHANGELOG_UPDATE_DEFAULT_APPROVER', UPDATE_SUBMITS_TO: 'POLICYCHANGELOG_UPDATE_SUBMITS_TO', UPDATE_FORWARDS_TO: 'POLICYCHANGELOG_UPDATE_FORWARDS_TO', + UPDATE_CUSTOM_TAX_NAME: 'POLICYCHANGELOG_UPDATE_CUSTOM_TAX_NAME', + UPDATE_CURRENCY_DEFAULT_TAX: 'POLICYCHANGELOG_UPDATE_CURRENCY_DEFAULT_TAX', + UPDATE_FOREIGN_CURRENCY_DEFAULT_TAX: 'POLICYCHANGELOG_UPDATE_FOREIGN_CURRENCY_DEFAULT_TAX', UPDATE_MANUAL_APPROVAL_THRESHOLD: 'POLICYCHANGELOG_UPDATE_MANUAL_APPROVAL_THRESHOLD', UPDATE_MAX_EXPENSE_AMOUNT: 'POLICYCHANGELOG_UPDATE_MAX_EXPENSE_AMOUNT', UPDATE_MAX_EXPENSE_AMOUNT_NO_RECEIPT: 'POLICYCHANGELOG_UPDATE_MAX_EXPENSE_AMOUNT_NO_RECEIPT', diff --git a/src/languages/en.ts b/src/languages/en.ts index dfad007732621..d430898dd73c6 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -250,13 +250,16 @@ import type { UpdatedPolicyCategoryMaxExpenseAmountParams, UpdatedPolicyCategoryNameParams, UpdatedPolicyCategoryParams, + UpdatedPolicyCurrencyDefaultTaxParams, UpdatedPolicyCurrencyParams, + UpdatedPolicyCustomTaxNameParams, UpdatedPolicyCustomUnitRateParams, UpdatedPolicyCustomUnitTaxClaimablePercentageParams, UpdatedPolicyCustomUnitTaxRateExternalIDParams, UpdatedPolicyDescriptionParams, UpdatedPolicyFieldWithNewAndOldValueParams, UpdatedPolicyFieldWithValueParam, + UpdatedPolicyForeignCurrencyDefaultTaxParams, UpdatedPolicyFrequencyParams, UpdatedPolicyManualApprovalThresholdParams, UpdatedPolicyPreventSelfApprovalParams, @@ -6459,6 +6462,10 @@ const translations = { ? `changed the approval workflow for ${approver} to stop forwarding approved reports (previously forwarded to ${previousForwardsTo})` : `changed the approval workflow for ${approver} to stop forwarding approved reports`, updateReimbursementEnabled: ({enabled}: UpdatedPolicyReimbursementEnabledParams) => `${enabled ? 'enabled' : 'disabled'} reimbursements`, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `changed the custom tax name to "${newName}" (previously "${oldName}")`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => `changed the workspace currency default tax to "${newName}" (previously "${oldName}")`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => + `changed the default tax for foreign currency to "${newName}" (previously "${oldName}")`, addTax: ({taxName}: UpdatedPolicyTaxParams) => `added the tax "${taxName}"`, deleteTax: ({taxName}: UpdatedPolicyTaxParams) => `removed the tax "${taxName}"`, updateTax: ({oldValue, taxName, updatedField, newValue}: UpdatedPolicyTaxParams) => { diff --git a/src/languages/es.ts b/src/languages/es.ts index c85bdff4c6172..0764835c7ecd0 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -6089,6 +6089,9 @@ ${amount} para ${merchant} - ${date}`, previousForwardsTo ? `cambió el flujo de aprobación para ${approver} para dejar de reenviar informes aprobados (anteriormente reenviados a ${previousForwardsTo})` : `cambió el flujo de aprobación para ${approver} para dejar de reenviar informes aprobados`, + updateCustomTaxName: ({oldName, newName}) => `cambió el nombre del impuesto personalizado a "${newName}" (antes "${oldName}")`, + updateCurrencyDefaultTax: ({oldName, newName}) => `cambió el impuesto predeterminado de la moneda del espacio de trabajo a "${newName}" (antes "${oldName}")`, + updateForeignCurrencyDefaultTax: ({oldName, newName}) => `cambió el impuesto predeterminado para moneda extranjera a "${newName}" (antes "${oldName}")`, addTax: ({taxName}) => `añadió el impuesto "${taxName}"`, deleteTax: ({taxName}) => `eliminó el impuesto "${taxName}"`, updateTax: ({oldValue, taxName, updatedField, newValue}) => { diff --git a/src/languages/params.ts b/src/languages/params.ts index 5efb1a2c5c824..8714e63aca1a8 100644 --- a/src/languages/params.ts +++ b/src/languages/params.ts @@ -432,6 +432,12 @@ type UpdatedPolicyManualApprovalThresholdParams = {oldLimit: string; newLimit: s type UpdatedPolicyReimbursementEnabledParams = {enabled: boolean}; +type UpdatedPolicyCustomTaxNameParams = {oldName: string; newName: string}; + +type UpdatedPolicyCurrencyDefaultTaxParams = {oldName: string; newName: string}; + +type UpdatedPolicyForeignCurrencyDefaultTaxParams = {oldName: string; newName: string}; + type ChangeTypeParams = {oldType: string; newType: string}; type AccountOwnerParams = {accountOwnerEmail: string}; @@ -1236,6 +1242,9 @@ export type { UpdatedPolicyAuditRateParams, UpdatedPolicyManualApprovalThresholdParams, UpdatedPolicyReimbursementEnabledParams, + UpdatedPolicyCustomTaxNameParams, + UpdatedPolicyCurrencyDefaultTaxParams, + UpdatedPolicyForeignCurrencyDefaultTaxParams, UpdatePolicyCustomUnitTaxEnabledParams, UpdatePolicyCustomUnitParams, AddOrDeletePolicyCustomUnitRateParams, diff --git a/src/libs/ReportActionsUtils.ts b/src/libs/ReportActionsUtils.ts index bfc9c958ed861..7e3065f28579b 100644 --- a/src/libs/ReportActionsUtils.ts +++ b/src/libs/ReportActionsUtils.ts @@ -2594,6 +2594,39 @@ function getWorkspaceTaxUpdateMessage(action: ReportAction): string { return getReportActionText(action); } +function getCustomTaxNameUpdateMessage(action: ReportAction): string { + const {oldName, newName} = getOriginalMessage(action as ReportAction) ?? {}; + + if (newName) { + // eslint-disable-next-line @typescript-eslint/no-deprecated + return translateLocal('workspaceActions.updateCustomTaxName', {oldName, newName}); + } + + return getReportActionText(action); +} + +function getCurrencyDefaultTaxUpdateMessage(action: ReportAction): string { + const {oldName, newName} = getOriginalMessage(action as ReportAction) ?? {}; + + if (newName) { + // eslint-disable-next-line @typescript-eslint/no-deprecated + return translateLocal('workspaceActions.updateCurrencyDefaultTax', {oldName, newName}); + } + + return getReportActionText(action); +} + +function getForeignCurrencyDefaultTaxUpdateMessage(action: ReportAction): string { + const {oldName, newName} = getOriginalMessage(action as ReportAction) ?? {}; + + if (newName) { + // eslint-disable-next-line @typescript-eslint/no-deprecated + return translateLocal('workspaceActions.updateForeignCurrencyDefaultTax', {oldName, newName}); + } + + return getReportActionText(action); +} + function getWorkspaceTagUpdateMessage(action: ReportAction | undefined): string { const {tagListName, tagName, enabled, newName, newValue, oldName, oldValue, updatedField, count} = getOriginalMessage(action as ReportAction) ?? {}; @@ -3658,6 +3691,9 @@ export { getWorkspaceReimbursementUpdateMessage, getWorkspaceCurrencyUpdateMessage, getWorkspaceTaxUpdateMessage, + getCustomTaxNameUpdateMessage, + getCurrencyDefaultTaxUpdateMessage, + getForeignCurrencyDefaultTaxUpdateMessage, getWorkspaceFrequencyUpdateMessage, getPolicyChangeLogMaxExpenseAmountNoReceiptMessage, getPolicyChangeLogMaxExpenseAmountMessage, diff --git a/src/libs/SidebarUtils.ts b/src/libs/SidebarUtils.ts index 7994e54c02fd0..2ab70b16e50c7 100644 --- a/src/libs/SidebarUtils.ts +++ b/src/libs/SidebarUtils.ts @@ -79,6 +79,9 @@ import { getWorkspaceReportFieldUpdateMessage, getWorkspaceTagUpdateMessage, getWorkspaceTaxUpdateMessage, + getCustomTaxNameUpdateMessage, + getCurrencyDefaultTaxUpdateMessage, + getForeignCurrencyDefaultTaxUpdateMessage, getWorkspaceUpdateFieldMessage, isActionOfType, isCardIssuedAction, @@ -870,6 +873,12 @@ function getOptionData({ isActionOfType(lastAction, CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_TAX) ) { result.alternateText = getWorkspaceTaxUpdateMessage(lastAction); + } else if (isActionOfType(lastAction, CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_CUSTOM_TAX_NAME)) { + result.alternateText = getCustomTaxNameUpdateMessage(lastAction); + } else if (isActionOfType(lastAction, CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_CURRENCY_DEFAULT_TAX)) { + result.alternateText = getCurrencyDefaultTaxUpdateMessage(lastAction); + } else if (isActionOfType(lastAction, CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_FOREIGN_CURRENCY_DEFAULT_TAX)) { + result.alternateText = getForeignCurrencyDefaultTaxUpdateMessage(lastAction); } else if (isActionOfType(lastAction, CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_TAG_LIST_NAME)) { result.alternateText = getCleanedTagName(getTagListNameUpdatedMessage(lastAction) ?? ''); } else if (isTagModificationAction(lastAction?.actionName ?? '')) { diff --git a/src/pages/home/report/PureReportActionItem.tsx b/src/pages/home/report/PureReportActionItem.tsx index a0f602f34a61e..97327ac6dc908 100644 --- a/src/pages/home/report/PureReportActionItem.tsx +++ b/src/pages/home/report/PureReportActionItem.tsx @@ -111,6 +111,9 @@ import { getWorkspaceReportFieldUpdateMessage, getWorkspaceTagUpdateMessage, getWorkspaceTaxUpdateMessage, + getCustomTaxNameUpdateMessage, + getCurrencyDefaultTaxUpdateMessage, + getForeignCurrencyDefaultTaxUpdateMessage, getWorkspaceUpdateFieldMessage, isActionableAddPaymentCard, isActionableCardFraudAlert, @@ -1355,6 +1358,12 @@ function PureReportActionItem({ action.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_TAX ) { children = ; + } else if (action.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_CUSTOM_TAX_NAME) { + children = ; + } else if (action.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_CURRENCY_DEFAULT_TAX) { + children = ; + } else if (action.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_FOREIGN_CURRENCY_DEFAULT_TAX) { + children = ; } else if (action.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_TAG_LIST_NAME) { children = ; } else if (isTagModificationAction(action.actionName)) { From 53085ef4a76a31da20f633b294236752dc78224e Mon Sep 17 00:00:00 2001 From: Rayane <77965000+rayane-d@users.noreply.github.com> Date: Fri, 12 Dec 2025 01:52:13 +0100 Subject: [PATCH 2/8] add translations --- src/languages/de.ts | 7 +++++++ src/languages/fr.ts | 8 ++++++++ src/languages/it.ts | 8 ++++++++ src/languages/ja.ts | 6 ++++++ src/languages/nl.ts | 8 ++++++++ src/languages/pl.ts | 8 ++++++++ src/languages/pt-BR.ts | 8 ++++++++ src/languages/zh-hans.ts | 6 ++++++ 8 files changed, 59 insertions(+) diff --git a/src/languages/de.ts b/src/languages/de.ts index 2ab185a8e79f6..2fbc7e4b426bf 100644 --- a/src/languages/de.ts +++ b/src/languages/de.ts @@ -262,13 +262,16 @@ import type { UpdatedPolicyCategoryMaxExpenseAmountParams, UpdatedPolicyCategoryNameParams, UpdatedPolicyCategoryParams, + UpdatedPolicyCurrencyDefaultTaxParams, UpdatedPolicyCurrencyParams, + UpdatedPolicyCustomTaxNameParams, UpdatedPolicyCustomUnitRateParams, UpdatedPolicyCustomUnitTaxClaimablePercentageParams, UpdatedPolicyCustomUnitTaxRateExternalIDParams, UpdatedPolicyDescriptionParams, UpdatedPolicyFieldWithNewAndOldValueParams, UpdatedPolicyFieldWithValueParam, + UpdatedPolicyForeignCurrencyDefaultTaxParams, UpdatedPolicyFrequencyParams, UpdatedPolicyManualApprovalThresholdParams, UpdatedPolicyPreventSelfApprovalParams, @@ -6627,6 +6630,10 @@ Fordere Spesendetails wie Belege und Beschreibungen an, lege Limits und Standard } } }, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `benutzerdefinierten Steuernamen in „${newName}“ geändert (zuvor „${oldName}“)`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => `hat die Standardsteuer der Workspace-Währung in „${newName}“ geändert (zuvor „${oldName}“)`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => + `hat die Standardsteuer für Fremdwährungen in „${newName}“ geändert (zuvor „${oldName}“)`, }, roomMembersPage: { memberNotFound: 'Mitglied nicht gefunden.', diff --git a/src/languages/fr.ts b/src/languages/fr.ts index 24ee758b3f47f..fb8cdeffcbc9e 100644 --- a/src/languages/fr.ts +++ b/src/languages/fr.ts @@ -262,13 +262,16 @@ import type { UpdatedPolicyCategoryMaxExpenseAmountParams, UpdatedPolicyCategoryNameParams, UpdatedPolicyCategoryParams, + UpdatedPolicyCurrencyDefaultTaxParams, UpdatedPolicyCurrencyParams, + UpdatedPolicyCustomTaxNameParams, UpdatedPolicyCustomUnitRateParams, UpdatedPolicyCustomUnitTaxClaimablePercentageParams, UpdatedPolicyCustomUnitTaxRateExternalIDParams, UpdatedPolicyDescriptionParams, UpdatedPolicyFieldWithNewAndOldValueParams, UpdatedPolicyFieldWithValueParam, + UpdatedPolicyForeignCurrencyDefaultTaxParams, UpdatedPolicyFrequencyParams, UpdatedPolicyManualApprovalThresholdParams, UpdatedPolicyPreventSelfApprovalParams, @@ -6636,6 +6639,11 @@ Exigez des informations de dépense comme les reçus et les descriptions, défin previousForwardsTo ? `a modifié le flux d’approbation pour ${approver} afin de ne plus transférer les rapports approuvés (auparavant transférés à ${previousForwardsTo})` : `a modifié le flux d'approbation pour ${approver} afin de ne plus transférer les rapports approuvés`, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `a modifié le nom de la taxe personnalisée en « ${newName} » (auparavant « ${oldName} »)`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => + `a modifié la taxe par défaut de la devise de l’espace de travail en « ${newName} » (précédemment « ${oldName} »)`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => + `a modifié la taxe par défaut pour la devise étrangère en « ${newName} » (auparavant « ${oldName} »)`, }, roomMembersPage: { memberNotFound: 'Membre introuvable.', diff --git a/src/languages/it.ts b/src/languages/it.ts index 4500a2c23536c..240fe22f9cb43 100644 --- a/src/languages/it.ts +++ b/src/languages/it.ts @@ -262,13 +262,16 @@ import type { UpdatedPolicyCategoryMaxExpenseAmountParams, UpdatedPolicyCategoryNameParams, UpdatedPolicyCategoryParams, + UpdatedPolicyCurrencyDefaultTaxParams, UpdatedPolicyCurrencyParams, + UpdatedPolicyCustomTaxNameParams, UpdatedPolicyCustomUnitRateParams, UpdatedPolicyCustomUnitTaxClaimablePercentageParams, UpdatedPolicyCustomUnitTaxRateExternalIDParams, UpdatedPolicyDescriptionParams, UpdatedPolicyFieldWithNewAndOldValueParams, UpdatedPolicyFieldWithValueParam, + UpdatedPolicyForeignCurrencyDefaultTaxParams, UpdatedPolicyFrequencyParams, UpdatedPolicyManualApprovalThresholdParams, UpdatedPolicyPreventSelfApprovalParams, @@ -6607,6 +6610,11 @@ Richiedi dettagli di spesa come ricevute e descrizioni, imposta limiti e valori } } }, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `ha cambiato il nome dell’imposta personalizzata in "${newName}" (precedentemente "${oldName}")`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => + `ha modificato l’imposta predefinita della valuta dello spazio di lavoro in "${newName}" (in precedenza "${oldName}")`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => + `ha modificato l’imposta predefinita per la valuta estera in "${newName}" (precedentemente "${oldName}")`, }, roomMembersPage: { memberNotFound: 'Membro non trovato.', diff --git a/src/languages/ja.ts b/src/languages/ja.ts index 0cacdcc69dc3d..1c90ffe2effd8 100644 --- a/src/languages/ja.ts +++ b/src/languages/ja.ts @@ -262,13 +262,16 @@ import type { UpdatedPolicyCategoryMaxExpenseAmountParams, UpdatedPolicyCategoryNameParams, UpdatedPolicyCategoryParams, + UpdatedPolicyCurrencyDefaultTaxParams, UpdatedPolicyCurrencyParams, + UpdatedPolicyCustomTaxNameParams, UpdatedPolicyCustomUnitRateParams, UpdatedPolicyCustomUnitTaxClaimablePercentageParams, UpdatedPolicyCustomUnitTaxRateExternalIDParams, UpdatedPolicyDescriptionParams, UpdatedPolicyFieldWithNewAndOldValueParams, UpdatedPolicyFieldWithValueParam, + UpdatedPolicyForeignCurrencyDefaultTaxParams, UpdatedPolicyFrequencyParams, UpdatedPolicyManualApprovalThresholdParams, UpdatedPolicyPreventSelfApprovalParams, @@ -6559,6 +6562,9 @@ ${reportName} } } }, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `カスタム税名を「${newName}」に変更しました(以前は「${oldName}」)`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => `ワークスペースの通貨のデフォルト税を「${newName}」(以前は「${oldName}」)に変更しました`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => `外国通貨のデフォルト税を「${newName}」(以前は「${oldName}」)に変更しました`, }, roomMembersPage: { memberNotFound: 'メンバーが見つかりません。', diff --git a/src/languages/nl.ts b/src/languages/nl.ts index 497e43f64975f..654d7b76b6443 100644 --- a/src/languages/nl.ts +++ b/src/languages/nl.ts @@ -262,13 +262,16 @@ import type { UpdatedPolicyCategoryMaxExpenseAmountParams, UpdatedPolicyCategoryNameParams, UpdatedPolicyCategoryParams, + UpdatedPolicyCurrencyDefaultTaxParams, UpdatedPolicyCurrencyParams, + UpdatedPolicyCustomTaxNameParams, UpdatedPolicyCustomUnitRateParams, UpdatedPolicyCustomUnitTaxClaimablePercentageParams, UpdatedPolicyCustomUnitTaxRateExternalIDParams, UpdatedPolicyDescriptionParams, UpdatedPolicyFieldWithNewAndOldValueParams, UpdatedPolicyFieldWithValueParam, + UpdatedPolicyForeignCurrencyDefaultTaxParams, UpdatedPolicyFrequencyParams, UpdatedPolicyManualApprovalThresholdParams, UpdatedPolicyPreventSelfApprovalParams, @@ -6593,6 +6596,11 @@ Vraag verplichte uitgavedetails zoals bonnetjes en beschrijvingen, stel limieten previousForwardsTo ? `heeft de goedkeuringsworkflow voor ${approver} gewijzigd zodat goedgekeurde rapporten niet meer worden doorgestuurd (voorheen doorgestuurd naar ${previousForwardsTo})` : `heeft de goedkeuringsworkflow voor ${approver} gewijzigd zodat goedgekeurde rapporten niet meer worden doorgestuurd`, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `de aangepaste belastingnaam gewijzigd in "${newName}" (voorheen "${oldName}")`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => + `heeft de standaardbelasting voor de workspacevaluta gewijzigd in ‘${newName}’ (voorheen ‘${oldName}’)`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => + `heeft de standaardbelasting voor vreemde valuta gewijzigd in "${newName}" (voorheen "${oldName}")`, }, roomMembersPage: { memberNotFound: 'Lid niet gevonden.', diff --git a/src/languages/pl.ts b/src/languages/pl.ts index 3e328e275be6e..90728e629c2bb 100644 --- a/src/languages/pl.ts +++ b/src/languages/pl.ts @@ -262,13 +262,16 @@ import type { UpdatedPolicyCategoryMaxExpenseAmountParams, UpdatedPolicyCategoryNameParams, UpdatedPolicyCategoryParams, + UpdatedPolicyCurrencyDefaultTaxParams, UpdatedPolicyCurrencyParams, + UpdatedPolicyCustomTaxNameParams, UpdatedPolicyCustomUnitRateParams, UpdatedPolicyCustomUnitTaxClaimablePercentageParams, UpdatedPolicyCustomUnitTaxRateExternalIDParams, UpdatedPolicyDescriptionParams, UpdatedPolicyFieldWithNewAndOldValueParams, UpdatedPolicyFieldWithValueParam, + UpdatedPolicyForeignCurrencyDefaultTaxParams, UpdatedPolicyFrequencyParams, UpdatedPolicyManualApprovalThresholdParams, UpdatedPolicyPreventSelfApprovalParams, @@ -6584,6 +6587,11 @@ Wymagaj szczegółów wydatków, takich jak paragony i opisy, ustawiaj limity i previousForwardsTo ? `zmieniono proces zatwierdzania dla ${approver}, aby przestać przekazywać zatwierdzone raporty (wcześniej przekazywane do ${previousForwardsTo})` : `zmieniono przepływ zatwierdzania dla ${approver}, aby nie przekazywać dalej zatwierdzonych raportów`, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `zmienił niestandardową nazwę podatku na „${newName}” (wcześniej „${oldName}”)`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => + `zmienił domyślny podatek waluty w przestrzeni roboczej na „${newName}” (wcześniej „${oldName}”)`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => + `zmienił domyślny podatek dla waluty obcej na „${newName}” (wcześniej „${oldName}”)`, }, roomMembersPage: { memberNotFound: 'Użytkownik nie został znaleziony.', diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts index 87c8d1e8136b4..12c40e7282c93 100644 --- a/src/languages/pt-BR.ts +++ b/src/languages/pt-BR.ts @@ -262,13 +262,16 @@ import type { UpdatedPolicyCategoryMaxExpenseAmountParams, UpdatedPolicyCategoryNameParams, UpdatedPolicyCategoryParams, + UpdatedPolicyCurrencyDefaultTaxParams, UpdatedPolicyCurrencyParams, + UpdatedPolicyCustomTaxNameParams, UpdatedPolicyCustomUnitRateParams, UpdatedPolicyCustomUnitTaxClaimablePercentageParams, UpdatedPolicyCustomUnitTaxRateExternalIDParams, UpdatedPolicyDescriptionParams, UpdatedPolicyFieldWithNewAndOldValueParams, UpdatedPolicyFieldWithValueParam, + UpdatedPolicyForeignCurrencyDefaultTaxParams, UpdatedPolicyFrequencyParams, UpdatedPolicyManualApprovalThresholdParams, UpdatedPolicyPreventSelfApprovalParams, @@ -6588,6 +6591,11 @@ Exija detalhes de despesas como recibos e descrições, defina limites e padrõe } } }, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `alterou o nome do imposto personalizado para "${newName}" (anteriormente "${oldName}")`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => + `alterou o imposto padrão da moeda do workspace para "${newName}" (anteriormente "${oldName}")`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => + `alterou o imposto padrão para moeda estrangeira para "${newName}" (anteriormente "${oldName}")`, }, roomMembersPage: { memberNotFound: 'Membro não encontrado.', diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts index fe0ccd37a23ca..389ef2f2b6fb3 100644 --- a/src/languages/zh-hans.ts +++ b/src/languages/zh-hans.ts @@ -262,13 +262,16 @@ import type { UpdatedPolicyCategoryMaxExpenseAmountParams, UpdatedPolicyCategoryNameParams, UpdatedPolicyCategoryParams, + UpdatedPolicyCurrencyDefaultTaxParams, UpdatedPolicyCurrencyParams, + UpdatedPolicyCustomTaxNameParams, UpdatedPolicyCustomUnitRateParams, UpdatedPolicyCustomUnitTaxClaimablePercentageParams, UpdatedPolicyCustomUnitTaxRateExternalIDParams, UpdatedPolicyDescriptionParams, UpdatedPolicyFieldWithNewAndOldValueParams, UpdatedPolicyFieldWithValueParam, + UpdatedPolicyForeignCurrencyDefaultTaxParams, UpdatedPolicyFrequencyParams, UpdatedPolicyManualApprovalThresholdParams, UpdatedPolicyPreventSelfApprovalParams, @@ -6455,6 +6458,9 @@ ${reportName} } } }, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `将自定义税名更改为“${newName}”(之前为“${oldName}”)`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => `将工作区货币的默认税种更改为“${newName}”(之前为“${oldName}”)`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => `已将外币的默认税更改为“${newName}”(此前为“${oldName}”)`, }, roomMembersPage: { memberNotFound: '未找到成员。', From 76c910e4c5902025afede7b7ebe9d517fc7d8d7a Mon Sep 17 00:00:00 2001 From: Rayane <77965000+rayane-d@users.noreply.github.com> Date: Fri, 12 Dec 2025 02:17:46 +0100 Subject: [PATCH 3/8] prettier --- src/libs/SidebarUtils.ts | 6 +++--- src/pages/home/report/PureReportActionItem.tsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libs/SidebarUtils.ts b/src/libs/SidebarUtils.ts index 2ab70b16e50c7..baa4d7c180c56 100644 --- a/src/libs/SidebarUtils.ts +++ b/src/libs/SidebarUtils.ts @@ -32,8 +32,11 @@ import { getAddedConnectionMessage, getCardIssuedMessage, getChangedApproverActionMessage, + getCurrencyDefaultTaxUpdateMessage, + getCustomTaxNameUpdateMessage, getDefaultApproverUpdateMessage, getDeletedApprovalRuleMessage, + getForeignCurrencyDefaultTaxUpdateMessage, getForwardsToUpdateMessage, getIntegrationSyncFailedMessage, getLastVisibleMessage, @@ -79,9 +82,6 @@ import { getWorkspaceReportFieldUpdateMessage, getWorkspaceTagUpdateMessage, getWorkspaceTaxUpdateMessage, - getCustomTaxNameUpdateMessage, - getCurrencyDefaultTaxUpdateMessage, - getForeignCurrencyDefaultTaxUpdateMessage, getWorkspaceUpdateFieldMessage, isActionOfType, isCardIssuedAction, diff --git a/src/pages/home/report/PureReportActionItem.tsx b/src/pages/home/report/PureReportActionItem.tsx index 97327ac6dc908..709ff32b99fa1 100644 --- a/src/pages/home/report/PureReportActionItem.tsx +++ b/src/pages/home/report/PureReportActionItem.tsx @@ -66,10 +66,13 @@ import { getAddedApprovalRuleMessage, getAddedConnectionMessage, getChangedApproverActionMessage, + getCurrencyDefaultTaxUpdateMessage, + getCustomTaxNameUpdateMessage, getDefaultApproverUpdateMessage, getDeletedApprovalRuleMessage, getDemotedFromWorkspaceMessage, getDismissedViolationMessageText, + getForeignCurrencyDefaultTaxUpdateMessage, getForwardsToUpdateMessage, getIntegrationSyncFailedMessage, getIOUReportIDFromReportActionPreview, @@ -111,9 +114,6 @@ import { getWorkspaceReportFieldUpdateMessage, getWorkspaceTagUpdateMessage, getWorkspaceTaxUpdateMessage, - getCustomTaxNameUpdateMessage, - getCurrencyDefaultTaxUpdateMessage, - getForeignCurrencyDefaultTaxUpdateMessage, getWorkspaceUpdateFieldMessage, isActionableAddPaymentCard, isActionableCardFraudAlert, From bab6e608b2e60b0117f8976aad1190228956a8b9 Mon Sep 17 00:00:00 2001 From: Rayane <77965000+rayane-d@users.noreply.github.com> Date: Tue, 16 Dec 2025 14:52:13 +0100 Subject: [PATCH 4/8] update copy --- src/languages/en.ts | 4 ++-- src/languages/es.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/languages/en.ts b/src/languages/en.ts index d430898dd73c6..7f251f4f4e246 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -6463,9 +6463,9 @@ const translations = { : `changed the approval workflow for ${approver} to stop forwarding approved reports`, updateReimbursementEnabled: ({enabled}: UpdatedPolicyReimbursementEnabledParams) => `${enabled ? 'enabled' : 'disabled'} reimbursements`, updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `changed the custom tax name to "${newName}" (previously "${oldName}")`, - updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => `changed the workspace currency default tax to "${newName}" (previously "${oldName}")`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => `changed the workspace currency default tax rate to "${newName}" (previously "${oldName}")`, updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => - `changed the default tax for foreign currency to "${newName}" (previously "${oldName}")`, + `changed the foreign currency default tax rate to "${newName}" (previously "${oldName}")`, addTax: ({taxName}: UpdatedPolicyTaxParams) => `added the tax "${taxName}"`, deleteTax: ({taxName}: UpdatedPolicyTaxParams) => `removed the tax "${taxName}"`, updateTax: ({oldValue, taxName, updatedField, newValue}: UpdatedPolicyTaxParams) => { diff --git a/src/languages/es.ts b/src/languages/es.ts index 0764835c7ecd0..88565a15ac130 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -6090,8 +6090,8 @@ ${amount} para ${merchant} - ${date}`, ? `cambió el flujo de aprobación para ${approver} para dejar de reenviar informes aprobados (anteriormente reenviados a ${previousForwardsTo})` : `cambió el flujo de aprobación para ${approver} para dejar de reenviar informes aprobados`, updateCustomTaxName: ({oldName, newName}) => `cambió el nombre del impuesto personalizado a "${newName}" (antes "${oldName}")`, - updateCurrencyDefaultTax: ({oldName, newName}) => `cambió el impuesto predeterminado de la moneda del espacio de trabajo a "${newName}" (antes "${oldName}")`, - updateForeignCurrencyDefaultTax: ({oldName, newName}) => `cambió el impuesto predeterminado para moneda extranjera a "${newName}" (antes "${oldName}")`, + updateCurrencyDefaultTax: ({oldName, newName}) => `cambió la tasa impositiva predeterminada de la moneda del espacio de trabajo a "${newName}" (anteriormente "${oldName}")`, + updateForeignCurrencyDefaultTax: ({oldName, newName}) => `cambió la tasa impositiva predeterminada de la moneda extranjera a "${newName}" (anteriormente "${oldName}")`, addTax: ({taxName}) => `añadió el impuesto "${taxName}"`, deleteTax: ({taxName}) => `eliminó el impuesto "${taxName}"`, updateTax: ({oldValue, taxName, updatedField, newValue}) => { From f91134fc51b40eb44217885e7bac05738dfcf9b8 Mon Sep 17 00:00:00 2001 From: Rayane <77965000+rayane-d@users.noreply.github.com> Date: Tue, 16 Dec 2025 14:53:46 +0100 Subject: [PATCH 5/8] remove translations in order to update them --- src/languages/de.ts | 3 --- src/languages/fr.ts | 4 ---- src/languages/it.ts | 4 ---- src/languages/ja.ts | 2 -- src/languages/nl.ts | 4 ---- src/languages/pl.ts | 4 ---- src/languages/pt-BR.ts | 4 ---- src/languages/zh-hans.ts | 2 -- 8 files changed, 27 deletions(-) diff --git a/src/languages/de.ts b/src/languages/de.ts index 2fbc7e4b426bf..729fb7baec0fe 100644 --- a/src/languages/de.ts +++ b/src/languages/de.ts @@ -6631,9 +6631,6 @@ Fordere Spesendetails wie Belege und Beschreibungen an, lege Limits und Standard } }, updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `benutzerdefinierten Steuernamen in „${newName}“ geändert (zuvor „${oldName}“)`, - updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => `hat die Standardsteuer der Workspace-Währung in „${newName}“ geändert (zuvor „${oldName}“)`, - updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => - `hat die Standardsteuer für Fremdwährungen in „${newName}“ geändert (zuvor „${oldName}“)`, }, roomMembersPage: { memberNotFound: 'Mitglied nicht gefunden.', diff --git a/src/languages/fr.ts b/src/languages/fr.ts index fb8cdeffcbc9e..6539363c780c4 100644 --- a/src/languages/fr.ts +++ b/src/languages/fr.ts @@ -6640,10 +6640,6 @@ Exigez des informations de dépense comme les reçus et les descriptions, défin ? `a modifié le flux d’approbation pour ${approver} afin de ne plus transférer les rapports approuvés (auparavant transférés à ${previousForwardsTo})` : `a modifié le flux d'approbation pour ${approver} afin de ne plus transférer les rapports approuvés`, updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `a modifié le nom de la taxe personnalisée en « ${newName} » (auparavant « ${oldName} »)`, - updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => - `a modifié la taxe par défaut de la devise de l’espace de travail en « ${newName} » (précédemment « ${oldName} »)`, - updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => - `a modifié la taxe par défaut pour la devise étrangère en « ${newName} » (auparavant « ${oldName} »)`, }, roomMembersPage: { memberNotFound: 'Membre introuvable.', diff --git a/src/languages/it.ts b/src/languages/it.ts index 240fe22f9cb43..e2353f904b9a9 100644 --- a/src/languages/it.ts +++ b/src/languages/it.ts @@ -6611,10 +6611,6 @@ Richiedi dettagli di spesa come ricevute e descrizioni, imposta limiti e valori } }, updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `ha cambiato il nome dell’imposta personalizzata in "${newName}" (precedentemente "${oldName}")`, - updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => - `ha modificato l’imposta predefinita della valuta dello spazio di lavoro in "${newName}" (in precedenza "${oldName}")`, - updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => - `ha modificato l’imposta predefinita per la valuta estera in "${newName}" (precedentemente "${oldName}")`, }, roomMembersPage: { memberNotFound: 'Membro non trovato.', diff --git a/src/languages/ja.ts b/src/languages/ja.ts index 1c90ffe2effd8..66da0b8942e7c 100644 --- a/src/languages/ja.ts +++ b/src/languages/ja.ts @@ -6563,8 +6563,6 @@ ${reportName} } }, updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `カスタム税名を「${newName}」に変更しました(以前は「${oldName}」)`, - updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => `ワークスペースの通貨のデフォルト税を「${newName}」(以前は「${oldName}」)に変更しました`, - updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => `外国通貨のデフォルト税を「${newName}」(以前は「${oldName}」)に変更しました`, }, roomMembersPage: { memberNotFound: 'メンバーが見つかりません。', diff --git a/src/languages/nl.ts b/src/languages/nl.ts index 654d7b76b6443..6ae4fc638bd20 100644 --- a/src/languages/nl.ts +++ b/src/languages/nl.ts @@ -6597,10 +6597,6 @@ Vraag verplichte uitgavedetails zoals bonnetjes en beschrijvingen, stel limieten ? `heeft de goedkeuringsworkflow voor ${approver} gewijzigd zodat goedgekeurde rapporten niet meer worden doorgestuurd (voorheen doorgestuurd naar ${previousForwardsTo})` : `heeft de goedkeuringsworkflow voor ${approver} gewijzigd zodat goedgekeurde rapporten niet meer worden doorgestuurd`, updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `de aangepaste belastingnaam gewijzigd in "${newName}" (voorheen "${oldName}")`, - updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => - `heeft de standaardbelasting voor de workspacevaluta gewijzigd in ‘${newName}’ (voorheen ‘${oldName}’)`, - updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => - `heeft de standaardbelasting voor vreemde valuta gewijzigd in "${newName}" (voorheen "${oldName}")`, }, roomMembersPage: { memberNotFound: 'Lid niet gevonden.', diff --git a/src/languages/pl.ts b/src/languages/pl.ts index 90728e629c2bb..b90b33820d648 100644 --- a/src/languages/pl.ts +++ b/src/languages/pl.ts @@ -6588,10 +6588,6 @@ Wymagaj szczegółów wydatków, takich jak paragony i opisy, ustawiaj limity i ? `zmieniono proces zatwierdzania dla ${approver}, aby przestać przekazywać zatwierdzone raporty (wcześniej przekazywane do ${previousForwardsTo})` : `zmieniono przepływ zatwierdzania dla ${approver}, aby nie przekazywać dalej zatwierdzonych raportów`, updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `zmienił niestandardową nazwę podatku na „${newName}” (wcześniej „${oldName}”)`, - updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => - `zmienił domyślny podatek waluty w przestrzeni roboczej na „${newName}” (wcześniej „${oldName}”)`, - updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => - `zmienił domyślny podatek dla waluty obcej na „${newName}” (wcześniej „${oldName}”)`, }, roomMembersPage: { memberNotFound: 'Użytkownik nie został znaleziony.', diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts index 12c40e7282c93..81f74557d6480 100644 --- a/src/languages/pt-BR.ts +++ b/src/languages/pt-BR.ts @@ -6592,10 +6592,6 @@ Exija detalhes de despesas como recibos e descrições, defina limites e padrõe } }, updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `alterou o nome do imposto personalizado para "${newName}" (anteriormente "${oldName}")`, - updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => - `alterou o imposto padrão da moeda do workspace para "${newName}" (anteriormente "${oldName}")`, - updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => - `alterou o imposto padrão para moeda estrangeira para "${newName}" (anteriormente "${oldName}")`, }, roomMembersPage: { memberNotFound: 'Membro não encontrado.', diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts index 389ef2f2b6fb3..8b1d9c03d1083 100644 --- a/src/languages/zh-hans.ts +++ b/src/languages/zh-hans.ts @@ -6459,8 +6459,6 @@ ${reportName} } }, updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `将自定义税名更改为“${newName}”(之前为“${oldName}”)`, - updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => `将工作区货币的默认税种更改为“${newName}”(之前为“${oldName}”)`, - updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => `已将外币的默认税更改为“${newName}”(此前为“${oldName}”)`, }, roomMembersPage: { memberNotFound: '未找到成员。', From debdf8970a42ee52c92b17b8e200e07a9d5b6b55 Mon Sep 17 00:00:00 2001 From: Rayane <77965000+rayane-d@users.noreply.github.com> Date: Tue, 16 Dec 2025 15:00:40 +0100 Subject: [PATCH 6/8] update translations --- src/languages/de.ts | 3 +++ src/languages/fr.ts | 6 +++++- src/languages/it.ts | 4 ++++ src/languages/ja.ts | 4 +++- src/languages/nl.ts | 4 ++++ src/languages/pl.ts | 6 +++++- src/languages/pt-BR.ts | 6 +++++- src/languages/zh-hans.ts | 4 +++- 8 files changed, 32 insertions(+), 5 deletions(-) diff --git a/src/languages/de.ts b/src/languages/de.ts index 729fb7baec0fe..99ebd7ed4f44b 100644 --- a/src/languages/de.ts +++ b/src/languages/de.ts @@ -6631,6 +6631,9 @@ Fordere Spesendetails wie Belege und Beschreibungen an, lege Limits und Standard } }, updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `benutzerdefinierten Steuernamen in „${newName}“ geändert (zuvor „${oldName}“)`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => `Standard-Steuerbetrag der Workspace-Währung auf „${newName}“ geändert (zuvor „${oldName}“)`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => + `den Standardsteuersatz für Fremdwährungen in „${newName}“ geändert (zuvor „${oldName}“)`, }, roomMembersPage: { memberNotFound: 'Mitglied nicht gefunden.', diff --git a/src/languages/fr.ts b/src/languages/fr.ts index 6539363c780c4..a16b0315824d6 100644 --- a/src/languages/fr.ts +++ b/src/languages/fr.ts @@ -6639,7 +6639,11 @@ Exigez des informations de dépense comme les reçus et les descriptions, défin previousForwardsTo ? `a modifié le flux d’approbation pour ${approver} afin de ne plus transférer les rapports approuvés (auparavant transférés à ${previousForwardsTo})` : `a modifié le flux d'approbation pour ${approver} afin de ne plus transférer les rapports approuvés`, - updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `a modifié le nom de la taxe personnalisée en « ${newName} » (auparavant « ${oldName} »)`, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `a modifié le nom de taxe personnalisé en « ${newName} » (auparavant « ${oldName} »)`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => + `a modifié le taux de taxe par défaut de la devise de l’espace de travail en « ${newName} » (auparavant « ${oldName} »)`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => + `a modifié le taux de taxe par défaut en devise étrangère en « ${newName} » (auparavant « ${oldName} »)`, }, roomMembersPage: { memberNotFound: 'Membre introuvable.', diff --git a/src/languages/it.ts b/src/languages/it.ts index e2353f904b9a9..09e1db21040b9 100644 --- a/src/languages/it.ts +++ b/src/languages/it.ts @@ -6611,6 +6611,10 @@ Richiedi dettagli di spesa come ricevute e descrizioni, imposta limiti e valori } }, updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `ha cambiato il nome dell’imposta personalizzata in "${newName}" (precedentemente "${oldName}")`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => + `ha modificato l’aliquota fiscale predefinita della valuta dello spazio di lavoro in “${newName}” (in precedenza “${oldName}”)`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => + `ha modificato l'aliquota fiscale predefinita per valuta estera in "${newName}" (in precedenza "${oldName}")`, }, roomMembersPage: { memberNotFound: 'Membro non trovato.', diff --git a/src/languages/ja.ts b/src/languages/ja.ts index 66da0b8942e7c..be95b43fe51fa 100644 --- a/src/languages/ja.ts +++ b/src/languages/ja.ts @@ -6562,7 +6562,9 @@ ${reportName} } } }, - updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `カスタム税名を「${newName}」に変更しました(以前は「${oldName}」)`, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `カスタム税区分名を「${newName}」(以前は「${oldName}」)に変更しました`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => `ワークスペースの通貨デフォルト税率を「${newName}」(以前は「${oldName}」)に変更しました`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => `外貨のデフォルト税率を「${newName}」に変更しました(以前は「${oldName}」)。`, }, roomMembersPage: { memberNotFound: 'メンバーが見つかりません。', diff --git a/src/languages/nl.ts b/src/languages/nl.ts index 6ae4fc638bd20..418843aab41ab 100644 --- a/src/languages/nl.ts +++ b/src/languages/nl.ts @@ -6597,6 +6597,10 @@ Vraag verplichte uitgavedetails zoals bonnetjes en beschrijvingen, stel limieten ? `heeft de goedkeuringsworkflow voor ${approver} gewijzigd zodat goedgekeurde rapporten niet meer worden doorgestuurd (voorheen doorgestuurd naar ${previousForwardsTo})` : `heeft de goedkeuringsworkflow voor ${approver} gewijzigd zodat goedgekeurde rapporten niet meer worden doorgestuurd`, updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `de aangepaste belastingnaam gewijzigd in "${newName}" (voorheen "${oldName}")`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => + `heeft het standaardbelastingtarief van de werkruimtevaluta gewijzigd in "${newName}" (voorheen "${oldName}")`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => + `heeft het standaardbelastingtarief voor vreemde valuta gewijzigd in ‘${newName}’ (voorheen ‘${oldName}’)`, }, roomMembersPage: { memberNotFound: 'Lid niet gevonden.', diff --git a/src/languages/pl.ts b/src/languages/pl.ts index b90b33820d648..cdeafd816eda6 100644 --- a/src/languages/pl.ts +++ b/src/languages/pl.ts @@ -6587,7 +6587,11 @@ Wymagaj szczegółów wydatków, takich jak paragony i opisy, ustawiaj limity i previousForwardsTo ? `zmieniono proces zatwierdzania dla ${approver}, aby przestać przekazywać zatwierdzone raporty (wcześniej przekazywane do ${previousForwardsTo})` : `zmieniono przepływ zatwierdzania dla ${approver}, aby nie przekazywać dalej zatwierdzonych raportów`, - updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `zmienił niestandardową nazwę podatku na „${newName}” (wcześniej „${oldName}”)`, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `zmieniono niestandardową nazwę podatku na „${newName}” (poprzednio „${oldName}”)`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => + `zmienił domyślną stawkę podatku waluty w przestrzeni roboczej na „${newName}” (wcześniej „${oldName}”)`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => + `zmieniono domyślną stawkę podatku dla obcej waluty na „${newName}” (wcześniej „${oldName}”)`, }, roomMembersPage: { memberNotFound: 'Użytkownik nie został znaleziony.', diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts index 81f74557d6480..0d38d68c7dbe2 100644 --- a/src/languages/pt-BR.ts +++ b/src/languages/pt-BR.ts @@ -6591,7 +6591,11 @@ Exija detalhes de despesas como recibos e descrições, defina limites e padrõe } } }, - updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `alterou o nome do imposto personalizado para "${newName}" (anteriormente "${oldName}")`, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `alterou o nome do imposto personalizado para "${newName}" (antes "${oldName}")`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => + `alterou a taxa de imposto padrão da moeda do workspace para "${newName}" (anteriormente "${oldName}")`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => + `alterou a alíquota de imposto padrão em moeda estrangeira para "${newName}" (anteriormente "${oldName}")`, }, roomMembersPage: { memberNotFound: 'Membro não encontrado.', diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts index 8b1d9c03d1083..bba502bcf92a8 100644 --- a/src/languages/zh-hans.ts +++ b/src/languages/zh-hans.ts @@ -6458,7 +6458,9 @@ ${reportName} } } }, - updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `将自定义税名更改为“${newName}”(之前为“${oldName}”)`, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `将自定义税种名称更改为“${newName}”(之前为“${oldName}”)`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => `将工作区货币的默认税率更改为“${newName}”(之前为“${oldName}”)`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => `将外币默认税率更改为“${newName}”(之前为“${oldName}”)`, }, roomMembersPage: { memberNotFound: '未找到成员。', From 01ab927e978a9cace548cbce895e3daf4c0678d7 Mon Sep 17 00:00:00 2001 From: Rayane <77965000+rayane-d@users.noreply.github.com> Date: Wed, 24 Dec 2025 20:44:58 +0100 Subject: [PATCH 7/8] fix typescript error --- src/libs/ReportActionsUtils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/ReportActionsUtils.ts b/src/libs/ReportActionsUtils.ts index b76f526b4e879..cd3eefe7c79bb 100644 --- a/src/libs/ReportActionsUtils.ts +++ b/src/libs/ReportActionsUtils.ts @@ -2645,7 +2645,7 @@ function getWorkspaceTaxUpdateMessage(action: ReportAction): string { } function getCustomTaxNameUpdateMessage(action: ReportAction): string { - const {oldName, newName} = getOriginalMessage(action as ReportAction) ?? {}; + const {oldName = '', newName} = getOriginalMessage(action as ReportAction) ?? {}; if (newName) { // eslint-disable-next-line @typescript-eslint/no-deprecated @@ -2656,7 +2656,7 @@ function getCustomTaxNameUpdateMessage(action: ReportAction): string { } function getCurrencyDefaultTaxUpdateMessage(action: ReportAction): string { - const {oldName, newName} = getOriginalMessage(action as ReportAction) ?? {}; + const {oldName = '', newName} = getOriginalMessage(action as ReportAction) ?? {}; if (newName) { // eslint-disable-next-line @typescript-eslint/no-deprecated @@ -2667,7 +2667,7 @@ function getCurrencyDefaultTaxUpdateMessage(action: ReportAction): string { } function getForeignCurrencyDefaultTaxUpdateMessage(action: ReportAction): string { - const {oldName, newName} = getOriginalMessage(action as ReportAction) ?? {}; + const {oldName = '', newName} = getOriginalMessage(action as ReportAction) ?? {}; if (newName) { // eslint-disable-next-line @typescript-eslint/no-deprecated From 67f45d50f271bd3c287af7b73c4346a48447ac3f Mon Sep 17 00:00:00 2001 From: Rayane <77965000+rayane-d@users.noreply.github.com> Date: Fri, 2 Jan 2026 14:55:32 +0100 Subject: [PATCH 8/8] fix failing check --- src/pages/home/report/PureReportActionItem.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/home/report/PureReportActionItem.tsx b/src/pages/home/report/PureReportActionItem.tsx index de7cb64544602..9a258ba7eb103 100644 --- a/src/pages/home/report/PureReportActionItem.tsx +++ b/src/pages/home/report/PureReportActionItem.tsx @@ -959,6 +959,7 @@ function PureReportActionItem({ } const actionableMentionWhisperOptions = []; + // eslint-disable-next-line @typescript-eslint/no-deprecated const isReportInPolicy = !!report?.policyID && report.policyID !== CONST.POLICY.ID_FAKE && getPersonalPolicy()?.id !== report.policyID; // Show the invite to submit expense button even if one of the mentioned users is a not a policy member