Skip to content

Commit 3797fbd

Browse files
authored
Merge pull request Expensify#63410 from huult/62778-translate-error-message-bank-account-deletion-spanish
fix translate error message for bank account deletion into Spanish
2 parents f1b0df5 + 49b1697 commit 3797fbd

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/languages/en.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2364,6 +2364,8 @@ const translations = {
23642364
validationAmounts: 'The validation amounts you entered are incorrect. Please double check your bank statement and try again.',
23652365
fullName: 'Please enter a valid full name',
23662366
ownershipPercentage: 'Please enter a valid percentage number',
2367+
deletePaymentBankAccount:
2368+
"This bank account can't be deleted because it is used for Expensify Card payments. If you would still like to delete this account, please reach out to Concierge",
23672369
},
23682370
},
23692371
addPersonalBankAccount: {

src/languages/es.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2385,6 +2385,8 @@ const translations = {
23852385
validationAmounts: 'Los importes de validación que introduciste son incorrectos. Por favor, comprueba tu cuenta bancaria e inténtalo de nuevo.',
23862386
fullName: 'Por favor, introduce un nombre completo válido',
23872387
ownershipPercentage: 'Por favor, ingrese un número de porcentaje válido',
2388+
deletePaymentBankAccount:
2389+
'Esta cuenta bancaria no se puede eliminar porque se utiliza para pagos con la tarjeta Expensify. Si aún deseas eliminar esta cuenta, por favor contacta con Concierge.',
23882390
},
23892391
},
23902392
addPersonalBankAccount: {

src/libs/actions/BankAccounts.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,13 @@ function deletePaymentBankAccount(bankAccountID: number) {
285285
value: {[bankAccountID]: null},
286286
},
287287
],
288+
failureData: [
289+
{
290+
onyxMethod: Onyx.METHOD.SET,
291+
key: `${ONYXKEYS.BANK_ACCOUNT_LIST}`,
292+
value: {[bankAccountID]: {errors: getMicroSecondOnyxErrorWithTranslationKey('bankAccount.error.deletePaymentBankAccount')}},
293+
},
294+
],
288295
};
289296

290297
API.write(WRITE_COMMANDS.DELETE_PAYMENT_BANK_ACCOUNT, parameters, onyxData);

0 commit comments

Comments
 (0)