-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ESM] Localize system messages #43079
Changes from 8 commits
1f35f3b
6df91bb
0feb9d8
0566b14
e652a3e
ba75104
8164d80
fd96a70
a3f0195
2eedaf0
47226ed
c907cb6
6856ae3
4ce20e1
43a5ebd
2979207
a4f9d4f
fd87079
5d652b6
16cbf19
af11678
641c337
9fdbcd6
32bdbe0
7e7a294
ab51f36
4b8c543
98a4d0f
155937b
eb2550b
a65a680
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -658,12 +658,11 @@ const CONST = { | |
CLOSED: 'CLOSED', | ||
CREATED: 'CREATED', | ||
DELEGATE_SUBMIT: 'DELEGATESUBMIT', // OldDot Action | ||
DELETED_ACCOUNT: 'DELETEDACCOUNT', // OldDot Action | ||
DELETED_ACCOUNT: 'DELETEDACCOUNT', // Deprecated OldDot Action | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's go ahead and just remove all the deprecated actions. They are blocked at the back end. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's leave that one be for now |
||
DISMISSED_VIOLATION: 'DISMISSEDVIOLATION', | ||
DONATION: 'DONATION', // OldDot Action | ||
DONATION: 'DONATION', // Deprecated OldDot Action | ||
EXPORTED_TO_CSV: 'EXPORTCSV', // OldDot Action | ||
EXPORTED_TO_INTEGRATION: 'EXPORTINTEGRATION', // OldDot Action | ||
EXPORTED_TO_QUICK_BOOKS: 'EXPORTED', // OldDot Action | ||
FORWARDED: 'FORWARDED', // OldDot Action | ||
HOLD: 'HOLD', | ||
HOLD_COMMENT: 'HOLDCOMMENT', | ||
|
@@ -683,9 +682,9 @@ const CONST = { | |
REIMBURSEMENT_DELAYED: 'REIMBURSEMENTDELAYED', // OldDot Action | ||
REIMBURSEMENT_QUEUED: 'REIMBURSEMENTQUEUED', | ||
REIMBURSEMENT_DEQUEUED: 'REIMBURSEMENTDEQUEUED', | ||
REIMBURSEMENT_REQUESTED: 'REIMBURSEMENTREQUESTED', // OldDot Action | ||
REIMBURSEMENT_SETUP: 'REIMBURSEMENTSETUP', // OldDot Action | ||
REIMBURSEMENT_SETUP_REQUESTED: 'REIMBURSEMENTSETUPREQUESTED', // OldDot Action | ||
REIMBURSEMENT_REQUESTED: 'REIMBURSEMENTREQUESTED', // Deprecated OldDot Action | ||
REIMBURSEMENT_SETUP: 'REIMBURSEMENTSETUP', // Deprecated OldDot Action | ||
REIMBURSEMENT_SETUP_REQUESTED: 'REIMBURSEMENTSETUPREQUESTED', // Deprecated OldDot Action | ||
RENAMED: 'RENAMED', | ||
REPORT_PREVIEW: 'REPORTPREVIEW', | ||
SELECTED_FOR_RANDOM_AUDIT: 'SELECTEDFORRANDOMAUDIT', // OldDot Action | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,26 +13,35 @@ import type { | |
BeginningOfChatHistoryAnnounceRoomPartTwo, | ||
BeginningOfChatHistoryDomainRoomPartOneParams, | ||
CanceledRequestParams, | ||
ChangeFieldParams, | ||
ChangePolicyParams, | ||
ChangeTypeParams, | ||
CharacterLimitParams, | ||
ConfirmThatParams, | ||
DateShouldBeAfterParams, | ||
DateShouldBeBeforeParams, | ||
DelegateSubmitParams, | ||
DeleteActionParams, | ||
DeleteConfirmationParams, | ||
DidSplitAmountMessageParams, | ||
DistanceRateOperationsParams, | ||
EditActionParams, | ||
ElectronicFundsParams, | ||
EnterMagicCodeParams, | ||
ExportedToIntegrationParams, | ||
FormattedMaxLengthParams, | ||
ForwardedParams, | ||
GoBackMessageParams, | ||
GoToRoomParams, | ||
InstantSummaryParams, | ||
IntegrationsMessageParams, | ||
LocalTimeParams, | ||
LoggedInAsParams, | ||
LogSizeParams, | ||
ManagerApprovedAmountParams, | ||
ManagerApprovedParams, | ||
MarkedReimbursedParams, | ||
MarkReimbursedFromIntegrationParams, | ||
NewFaceEnterMagicCodeParams, | ||
NoLongerHaveAccessParams, | ||
NotAllowedExtensionParams, | ||
|
@@ -66,16 +75,20 @@ import type { | |
SetTheRequestParams, | ||
SettledAfterAddedBankAccountParams, | ||
SettleExpensifyCardParams, | ||
ShareParams, | ||
SizeExceededParams, | ||
SplitAmountParams, | ||
StepCounterParams, | ||
StripePaidParams, | ||
TaskCreatedActionParams, | ||
TermsParams, | ||
ThreadRequestReportNameParams, | ||
ThreadSentMoneyReportNameParams, | ||
ToValidateLoginParams, | ||
TransferParams, | ||
TranslationBase, | ||
UnapprovedParams, | ||
UnshareParams, | ||
UntilTimeParams, | ||
UpdatedTheDistanceParams, | ||
UpdatedTheRequestParams, | ||
|
@@ -2837,6 +2850,34 @@ export default { | |
genericUpdateReportFieldFailureMessage: 'Unexpected error while updating the field, please try again later.', | ||
genericUpdateReporNameEditFailureMessage: 'Unexpected error while renaming the report, please try again later.', | ||
noActivityYet: 'No activity yet', | ||
actions: { | ||
type: { | ||
changeField: ({oldValue, newValue, fieldName}: ChangeFieldParams) => `changed ${fieldName} from ${oldValue} to ${newValue}`, | ||
changePolicy: ({fromPolicy, toPolicy}: ChangePolicyParams) => `changed policy from ${fromPolicy} to ${toPolicy}`, | ||
changeType: ({oldType, newType}: ChangeTypeParams) => `changed type from ${oldType} to ${newType}`, | ||
delegateSubmit: ({delegateUser, originalManager}: DelegateSubmitParams) => `sent this report to ${delegateUser} since ${originalManager} is on vacation`, | ||
exportedToCSV: `exported this report to CSV`, | ||
exportedToIntegration: ({label}: ExportedToIntegrationParams) => `exported this report to ${label}`, | ||
forwarded: ({amount, currency}: ForwardedParams) => `approved ${currency}${amount}`, | ||
// verify errorMessage | ||
integrationsMessage: ({errorMessage}: IntegrationsMessageParams) => `failed to export this report to NetSuite. ${errorMessage}`, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just checking but There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's done. |
||
managerAttachReceipt: `added a receipt`, | ||
managerDetachReceipt: `removed the receipt`, | ||
markedReimbursed: ({amount, currency}: MarkedReimbursedParams) => `paid ${currency}${amount} elsewhere`, | ||
markedReimbursedFromIntegration: ({amount, currency}: MarkReimbursedFromIntegrationParams) => `paid ${currency}${amount} via integration`, | ||
outdatedBankAccount: `couldn’t process the payment due to a problem with the payer’s bank account`, | ||
reimbursementACHBounce: `couldn’t process the payment, as the payer doesn’t have sufficient funds`, | ||
reimbursementACHCancelled: `canceled the payment`, | ||
reimbursementAccountChanged: `couldn’t process the payment, as the payer changed bank accounts`, | ||
reimbursementDelayed: `processed the payment but it’s delayed by 1-2 more business days`, | ||
selectedForRandomAudit: `[randomly selected](https://help.expensify.com/articles/expensify-classic/reports/Set-a-random-report-audit-schedule) for review`, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For this olddot action, it shows a message in a plain text instead of converted markdown which caused the issue #45819 |
||
share: ({to}: ShareParams) => `invited user ${to}`, | ||
unshare: ({to}: UnshareParams) => `removed user ${to}`, | ||
stripePaid: ({amount, currency}: StripePaidParams) => `paid ${currency}${amount}`, | ||
takeControl: `took control`, | ||
unapproved: ({amount, currency}: UnapprovedParams) => `unapproved ${currency}${amount}`, | ||
}, | ||
}, | ||
}, | ||
chronos: { | ||
oooEventSummaryFullDay: ({summary, dayCount, date}: OOOEventSummaryFullDayParams) => `${summary} for ${dayCount} ${dayCount === 1 ? 'day' : 'days'} until ${date}`, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you explicitly need these changes? If not, let's not include these.