Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
c6a3b27
add translations for UPDATE_AUDIT_RATE.
Krishna2323 Feb 21, 2025
0e0d713
add translations for UPDATE_MANUAL_APPROVAL_THRESHOLD.
Krishna2323 Feb 21, 2025
17256bb
Merge branch 'Expensify:main' into krishna2323/issue/52984_pr2
Krishna2323 Mar 1, 2025
c750de3
add translation for DELETE_CUSTOM_UNIT_RATE.
Krishna2323 Mar 1, 2025
9cd2e4b
add translation for ADD_INTEGRATION action.
Krishna2323 Mar 1, 2025
59978a1
add translation for UPDATE_CUSTOM_UNIT_RATE action.
Krishna2323 Mar 1, 2025
11d835c
Merge branch 'main' into krishna2323/issue/52984_pr2
Krishna2323 Mar 11, 2025
c609f4d
Merge branch 'Expensify:main' into krishna2323/issue/52984_pr2
Krishna2323 Mar 13, 2025
adbb89b
add translation for POLICY_CHANGE_LOG.UPDATE_CUSTOM_UNIT action.
Krishna2323 Mar 13, 2025
1e9f8d5
add translation for UPDATE_CUSTOM_UNIT - updateCustomUnitTaxEnabled.
Krishna2323 Mar 13, 2025
501c0fd
add translation for POLICYCHANGELOG_ADD_APPROVER_RULE.
Krishna2323 Mar 13, 2025
eb1babe
add translation for UPDATE_TAG_LIST_NAME.
Krishna2323 Mar 13, 2025
0b0ee77
Merge branch 'Expensify:main' into krishna2323/issue/52984_pr2
Krishna2323 Mar 16, 2025
7c33d45
add translation for UPDATE_REPORT_FIELD - Added option.
Krishna2323 Mar 16, 2025
a18de2f
add translation for UPDATE_REPORT_FIELD - changedOptionDisabled.
Krishna2323 Mar 16, 2025
5b5be61
add translation for UPDATE_REPORT_FIELD - updatedAllDisabled.
Krishna2323 Mar 16, 2025
26ac2ef
add translation for UPDATE_REPORT_FIELD - Removed option.
Krishna2323 Mar 16, 2025
da57fc9
fix UPDATE_REPORT_FIELD - updateReportFieldAllOptionsDisabled action.
Krishna2323 Mar 16, 2025
f1274f9
fix UPDATE_CATEGORY - updateCategoryGLCode action.
Krishna2323 Mar 16, 2025
14c5783
Merge branch 'main' into krishna2323/issue/52984_pr2
Krishna2323 Mar 24, 2025
d06e790
add translation for POLICY_CHANGE_LOG.UPDATE_CATEGORY -- updateCatego…
Krishna2323 Mar 24, 2025
0d6d84b
minor fix.
Krishna2323 Mar 24, 2025
6b0a6de
add translation for POLICY_CHANGE_LOG.UPDATE_CATEGORY -- updateAreCom…
Krishna2323 Mar 24, 2025
c91a25c
add translation for POLICY_CHANGE_LOG.UPDATE_CATEGORY -- updateCatego…
Krishna2323 Mar 24, 2025
ddb20f9
add translation for POLICY_CHANGE_LOG.UPDATE_APPROVER_RULE.
Krishna2323 Mar 25, 2025
6839de2
add translation for POLICY_CHANGE_LOG.UPDATE_CATEGORY -- updateCatego…
Krishna2323 Mar 25, 2025
6c858a8
add translation for POLICY_CHANGE_LOG.UPDATE_CATEGORY -- maxExpenseAm…
Krishna2323 Mar 25, 2025
cb1e775
add spanish translation and cleanup code.
Krishna2323 Mar 25, 2025
0ad0888
Merge branch 'Expensify:main' into krishna2323/issue/52984_pr2
Krishna2323 Mar 28, 2025
646b893
fix translation condition for UPDATE_TAG.
Krishna2323 Mar 28, 2025
ac51dc8
fix report field action translations.
Krishna2323 Mar 28, 2025
5b82605
Merge branch 'Expensify:main' into krishna2323/issue/52984_pr2
Krishna2323 Mar 31, 2025
6bb3e7c
add translation for POLICY_CHANGE_LOG.DELETE_APPROVER_RULE.
Krishna2323 Mar 31, 2025
457c648
add translation for POLICY_CHANGE_LOG.UPDATE_CUSTOM_UNIT_RATE - updat…
Krishna2323 Mar 31, 2025
8c594d5
add translation for POLICY_CHANGE_LOG.UPDATE_CUSTOM_UNIT_RATE - updat…
Krishna2323 Mar 31, 2025
48d1b6b
add translation for POLICY_CHANGE_LOG.UPDATE_CUSTOM_UNIT_RATE - updat…
Krishna2323 Mar 31, 2025
b7daca4
Merge branch 'main' into krishna2323/issue/52984_pr2
Krishna2323 Apr 7, 2025
06643c1
Merge branch 'Expensify:main' into krishna2323/issue/52984_pr2
Krishna2323 Apr 13, 2025
2a94eda
Merge branch 'main' into krishna2323/issue/52984_pr2
Krishna2323 Apr 18, 2025
c54a7f0
fix: ESLint.
Krishna2323 Apr 22, 2025
4d86b99
update translations using the new pattern.
Krishna2323 Apr 22, 2025
8ba41e2
update translations using the new pattern.
Krishna2323 Apr 22, 2025
05616bc
Merge branch 'Expensify:main' into krishna2323/issue/52984_pr2
Krishna2323 Apr 24, 2025
a28351d
update trasnlations to use the correct pattern.
Krishna2323 Apr 24, 2025
44c3f0e
update trasnlations to use the correct pattern.
Krishna2323 Apr 24, 2025
5b7681b
minor update.
Krishna2323 Apr 24, 2025
b55059c
Style/Clarity Improvements.
Krishna2323 Apr 26, 2025
05a7a91
Merge branch 'main' into krishna2323/issue/52984_pr2
Krishna2323 May 3, 2025
fb33a35
Merge branch 'Expensify:main' into krishna2323/issue/52984_pr2
Krishna2323 May 6, 2025
e2a5a93
Merge branch 'main' into krishna2323/issue/52984_pr2
Krishna2323 May 19, 2025
505dfaf
update translations.
Krishna2323 May 19, 2025
782a95f
fix updateApprovalRule logic.
Krishna2323 May 19, 2025
f02b01b
remove duplicate field.
Krishna2323 May 21, 2025
3201e57
Merge branch 'main' into krishna2323/issue/52984_pr2
Krishna2323 May 22, 2025
464a768
minor update.
Krishna2323 May 22, 2025
a694924
Merge branch 'main' into krishna2323/issue/52984_pr2
Krishna2323 May 28, 2025
13bbfdf
Merge branch 'main' into krishna2323/issue/52984_pr2
Krishna2323 May 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 105 additions & 2 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import type {
AccountOwnerParams,
ActionsAreCurrentlyRestricted,
AddedOrDeletedPolicyReportFieldParams,
AddedPolicyCustomUnitRateParams,
AddedPolicyApprovalRuleParams,
AddEmployeeParams,
AddOrDeletePolicyCustomUnitRateParams,
AddressLineParams,
AdminCanceledRequestParams,
AlreadySignedInParams,
Expand Down Expand Up @@ -132,6 +133,9 @@ import type {
PayerPaidParams,
PayerSettledParams,
PaySomeoneParams,
PolicyAddedReportFieldOptionParams,
PolicyDisabledReportFieldAllOptionsParams,
PolicyDisabledReportFieldOptionParams,
PolicyExpenseChatNameParams,
ReconciliationWorksParams,
RemovedFromApprovalWorkflowParams,
Expand Down Expand Up @@ -192,20 +196,32 @@ import type {
UnshareParams,
UntilTimeParams,
UpdatedCustomFieldParams,
UpdatedPolicyApprovalRuleParams,
UpdatedPolicyAuditRateParams,
UpdatedPolicyCategoryExpenseLimitTypeParams,
UpdatedPolicyCategoryGLCodeParams,
UpdatedPolicyCategoryMaxAmountNoReceiptParams,
UpdatedPolicyCategoryMaxExpenseAmountParams,
UpdatedPolicyCategoryNameParams,
UpdatedPolicyCategoryParams,
UpdatedPolicyCurrencyParams,
UpdatedPolicyCustomUnitRateParams,
UpdatedPolicyCustomUnitTaxClaimablePercentageParams,
UpdatedPolicyCustomUnitTaxRateExternalIDParams,
UpdatedPolicyDescriptionParams,
UpdatedPolicyFieldWithNewAndOldValueParams,
UpdatedPolicyFieldWithValueParam,
UpdatedPolicyFrequencyParams,
UpdatedPolicyManualApprovalThresholdParams,
UpdatedPolicyPreventSelfApprovalParams,
UpdatedPolicyReportFieldDefaultValueParams,
UpdatedPolicyTagFieldParams,
UpdatedPolicyTagNameParams,
UpdatedPolicyTagParams,
UpdatedTheDistanceMerchantParams,
UpdatedTheRequestParams,
UpdatePolicyCustomUnitParams,
UpdatePolicyCustomUnitTaxEnabledParams,
UpdateRoleParams,
UsePlusButtonParams,
UserIsAlreadyMemberParams,
Expand Down Expand Up @@ -5150,10 +5166,64 @@ const translations = {
billcom: 'BILLCOM',
},
workspaceActions: {
addApprovalRule: ({approverEmail, approverName, field, name}: AddedPolicyApprovalRuleParams) => `added ${approverName} (${approverEmail}) as an approver for the ${field} "${name}"`,
deleteApprovalRule: ({approverEmail, approverName, field, name}: AddedPolicyApprovalRuleParams) =>
`removed ${approverName} (${approverEmail}) as an approver for the ${field} "${name}"`,
updateApprovalRule: ({field, name, newApproverEmail, newApproverName, oldApproverEmail, oldApproverName}: UpdatedPolicyApprovalRuleParams) => {
const formatApprover = (displayName?: string, email?: string) => (displayName ? `${displayName} (${email})` : email);

return `changed the approver for the ${field} "${name}" to ${formatApprover(newApproverName, newApproverEmail)} (previously ${formatApprover(
oldApproverName,
oldApproverEmail,
)})`;
},
addCategory: ({categoryName}: UpdatedPolicyCategoryParams) => `added the category "${categoryName}"`,
deleteCategory: ({categoryName}: UpdatedPolicyCategoryParams) => `removed the category "${categoryName}"`,
updateCategory: ({oldValue, categoryName}: UpdatedPolicyCategoryParams) => `${oldValue ? 'disabled' : 'enabled'} the category "${categoryName}"`,
updateCategoryPayrollCode: ({oldValue, categoryName, newValue}: UpdatedPolicyCategoryGLCodeParams) => {
if (!oldValue) {
return `added the payroll code "${newValue}" to the category "${categoryName}"`;
}
if (!newValue && oldValue) {
return `removed the payroll code "${oldValue}" from the category "${categoryName}"`;
}
return `changed the "${categoryName}" category payroll code to “${newValue}” (previously “${oldValue}”)`;
},
updateCategoryGLCode: ({oldValue, categoryName, newValue}: UpdatedPolicyCategoryGLCodeParams) => {
if (!oldValue) {
return `added the GL code "${newValue}” to the category "${categoryName}"`;
}
if (!newValue && oldValue) {
return `removed the GL code "${oldValue}" from the category "${categoryName}"`;
}
return `changed the “${categoryName}” category GL code to “${newValue}” (previously “${oldValue}“)`;
},
updateAreCommentsRequired: ({oldValue, categoryName}: UpdatedPolicyCategoryParams) => {
return `changed the "${categoryName}" category description to ${!oldValue ? 'required' : 'not required'} (previously ${!oldValue ? 'not required' : 'required'})`;
},
updateCategoryMaxExpenseAmount: ({categoryName, oldAmount, newAmount}: UpdatedPolicyCategoryMaxExpenseAmountParams) => {
if (newAmount && !oldAmount) {
return `added a ${newAmount} max amount to the category "${categoryName}"`;
}
if (oldAmount && !newAmount) {
return `removed the ${oldAmount} max amount from the category "${categoryName}"`;
}
return `changed the "${categoryName}" category max amount to ${newAmount} (previously ${oldAmount})`;
},
updateCategoryExpenseLimitType: ({categoryName, oldValue, newValue}: UpdatedPolicyCategoryExpenseLimitTypeParams) => {
if (!oldValue) {
return `added a limit type of ${newValue} to the category "${categoryName}"`;
}
return `changed the "${categoryName}" category limit type to ${newValue} (previously ${oldValue})`;
},
updateCategoryMaxAmountNoReceipt: ({categoryName, oldValue, newValue}: UpdatedPolicyCategoryMaxAmountNoReceiptParams) => {
if (!oldValue) {
return `updated the category "${categoryName}" by changing Receipts to ${newValue}`;
}
return `changed the "${categoryName}" category to ${newValue} (previously ${oldValue})`;
},
setCategoryName: ({oldName, newName}: UpdatedPolicyCategoryNameParams) => `renamed the category "${oldName}" to "${newName}"`,
updateTagListName: ({oldName, newName}: UpdatedPolicyCategoryNameParams) => `changed the tag list name to "${newName}" (previously "${oldName}")`,
addTag: ({tagListName, tagName}: UpdatedPolicyTagParams) => `added the tag "${tagName}" to the list "${tagListName}"`,
updateTagName: ({tagListName, newName, oldName}: UpdatedPolicyTagNameParams) => `updated the tag list "${tagListName}" by changing the tag "${oldName}" to "${newName}`,
updateTagEnabled: ({tagListName, tagName, enabled}: UpdatedPolicyTagParams) => `${enabled ? 'enabled' : 'disabled'} the tag "${tagName}" on the list "${tagListName}"`,
Expand All @@ -5165,9 +5235,37 @@ const translations = {
}
return `updated the tag "${tagName}" on the list "${tagListName}" by adding a ${updatedField} of "${newValue}"`;
},
addCustomUnitRate: ({customUnitName, rateName}: AddedPolicyCustomUnitRateParams) => `added a new "${customUnitName}" rate "${rateName}"`,
updateCustomUnit: ({customUnitName, newValue, oldValue, updatedField}: UpdatePolicyCustomUnitParams) =>
`changed the ${customUnitName} ${updatedField} to "${newValue}" (previously "${oldValue}")`,
updateCustomUnitTaxEnabled: ({newValue}: UpdatePolicyCustomUnitTaxEnabledParams) => `${newValue ? 'enabled' : 'disabled'} tax tracking on distance rates`,
addCustomUnitRate: ({customUnitName, rateName}: AddOrDeletePolicyCustomUnitRateParams) => `added a new "${customUnitName}" rate "${rateName}"`,
updatedCustomUnitRate: ({customUnitName, customUnitRateName, newValue, oldValue, updatedField}: UpdatedPolicyCustomUnitRateParams) =>
`changed the rate of the ${customUnitName} ${updatedField} "${customUnitRateName}" to "${newValue}" (previously "${oldValue}")`,
updatedCustomUnitTaxRateExternalID: ({customUnitRateName, newValue, newTaxPercentage, oldTaxPercentage, oldValue}: UpdatedPolicyCustomUnitTaxRateExternalIDParams) => {
if (oldTaxPercentage && oldValue) {
return `changed the tax rate on the distance rate "${customUnitRateName}" to "${newValue} (${newTaxPercentage})" (previously "${oldValue} (${oldTaxPercentage})")`;
}
return `added the tax rate "${newValue} (${newTaxPercentage})" to the distance rate "${customUnitRateName}"`;
},
updatedCustomUnitTaxClaimablePercentage: ({customUnitRateName, newValue, oldValue}: UpdatedPolicyCustomUnitTaxClaimablePercentageParams) => {
if (oldValue) {
return `changed the tax reclaimable portion on the distance rate "${customUnitRateName}" to "${newValue}" (previously "${oldValue}")`;
}
return `added a tax reclaimable portion of "${newValue}" to the distance rate "${customUnitRateName}`;
},
deleteCustomUnitRate: ({customUnitName, rateName}: AddOrDeletePolicyCustomUnitRateParams) => `removed the "${customUnitName}" rate "${rateName}"`,
addedReportField: ({fieldType, fieldName}: AddedOrDeletedPolicyReportFieldParams) => `added ${fieldType} Report Field "${fieldName}"`,
updateReportFieldDefaultValue: ({defaultValue, fieldName}: UpdatedPolicyReportFieldDefaultValueParams) => `set the default value of report field "${fieldName}" to "${defaultValue}"`,
addedReportFieldOption: ({fieldName, optionName}: PolicyAddedReportFieldOptionParams) => `added the option "${optionName}" to the report field "${fieldName}"`,
removedReportFieldOption: ({fieldName, optionName}: PolicyAddedReportFieldOptionParams) => `removed the option "${optionName}" from the report field "${fieldName}"`,
updateReportFieldOptionDisabled: ({fieldName, optionName, optionEnabled}: PolicyDisabledReportFieldOptionParams) =>
`${optionEnabled ? 'enabled' : 'disabled'} the option "${optionName}" for the report field "${fieldName}"`,
updateReportFieldAllOptionsDisabled: ({fieldName, optionName, allEnabled, toggledOptionsCount}: PolicyDisabledReportFieldAllOptionsParams) => {
if (toggledOptionsCount && toggledOptionsCount > 1) {
return `${allEnabled ? 'enabled' : 'disabled'} all options for the report field "${fieldName}" `;
}
return `${allEnabled ? 'enabled' : 'disabled'} the option "${optionName}" for the report field "${fieldName}", making all options ${allEnabled ? 'enabled' : 'disabled'}`;
},
deleteReportField: ({fieldType, fieldName}: AddedOrDeletedPolicyReportFieldParams) => `removed ${fieldType} Report Field "${fieldName}"`,
preventSelfApproval: ({oldValue, newValue}: UpdatedPolicyPreventSelfApprovalParams) =>
`updated "Prevent self-approval" to "${newValue === 'true' ? 'Enabled' : 'Disabled'}" (previously "${oldValue === 'true' ? 'Enabled' : 'Disabled'}")`,
Expand Down Expand Up @@ -5212,6 +5310,10 @@ const translations = {
updateApprovalMode: ({newValue, oldValue}: ChangeFieldParams) => `updated the approval mode to "${newValue}" (previously "${oldValue}")`,
upgradedWorkspace: 'upgraded this workspace to the Control plan',
downgradedWorkspace: 'downgraded this workspace to the Collect plan',
updatedAuditRate: ({oldAuditRate, newAuditRate}: UpdatedPolicyAuditRateParams) =>
`changed the rate of reports randomly routed for manual approval to ${Math.round(newAuditRate * 100)}% (previously ${Math.round(oldAuditRate * 100)}%)`,
updatedManualApprovalThreshold: ({oldLimit, newLimit}: UpdatedPolicyManualApprovalThresholdParams) =>
`changed the manual approval limit for all expenses to ${newLimit} (previously ${oldLimit})`,
},
roomMembersPage: {
memberNotFound: 'Member not found.',
Expand Down Expand Up @@ -5554,6 +5656,7 @@ const translations = {
leftWorkspace: ({nameOrEmail}: LeftWorkspaceParams) => `${nameOrEmail} left the workspace`,
removeMember: ({email, role}: AddEmployeeParams) => `removed ${role} ${email}`,
removedConnection: ({connectionName}: ConnectionNameParams) => `removed connection to ${CONST.POLICY.CONNECTIONS.NAME_USER_FRIENDLY[connectionName]}`,
addedConnection: ({connectionName}: ConnectionNameParams) => `connected to ${CONST.POLICY.CONNECTIONS.NAME_USER_FRIENDLY[connectionName]}`,
leftTheChat: 'left the chat',
},
},
Expand Down
Loading
Loading