From 4b17e068739fa9618357b8bf0e9359925b355358 Mon Sep 17 00:00:00 2001 From: Nam Le Date: Tue, 19 Sep 2023 16:07:13 +0700 Subject: [PATCH] fix translation for my note --- src/languages/en.ts | 1 + src/languages/es.ts | 1 + src/pages/PrivateNotes/PrivateNotesEditPage.js | 2 +- src/pages/PrivateNotes/PrivateNotesListPage.js | 2 +- src/pages/PrivateNotes/PrivateNotesViewPage.js | 2 +- 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/languages/en.ts b/src/languages/en.ts index 3a1e689e356a..4deaf3652cce 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -751,6 +751,7 @@ export default { sharedNoteMessage: 'Keep notes about this chat here. Expensify employees and other users on the team.expensify.com domain can view these notes.', notesUnavailable: 'No notes found for the user', composerLabel: 'Notes', + myNote: 'My note', }, addDebitCardPage: { addADebitCard: 'Add a debit card', diff --git a/src/languages/es.ts b/src/languages/es.ts index 036c5fc0d266..b70b32278b1e 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -746,6 +746,7 @@ export default { sharedNoteMessage: 'Guarda notas sobre este chat aquí. Los empleados de Expensify y otros usuarios del dominio team.expensify.com pueden ver estas notas.', notesUnavailable: 'No se han encontrado notas para el usuario', composerLabel: 'Notas', + myNote: 'Mi notas', }, addDebitCardPage: { addADebitCard: 'Añadir una tarjeta de débito', diff --git a/src/pages/PrivateNotes/PrivateNotesEditPage.js b/src/pages/PrivateNotes/PrivateNotesEditPage.js index 4cada83941ac..d5542d04733a 100644 --- a/src/pages/PrivateNotes/PrivateNotesEditPage.js +++ b/src/pages/PrivateNotes/PrivateNotesEditPage.js @@ -87,7 +87,7 @@ function PrivateNotesEditPage({route, personalDetailsList, session, report}) { > Navigation.dismissModal()} onBackButtonPress={() => Navigation.goBack()} diff --git a/src/pages/PrivateNotes/PrivateNotesListPage.js b/src/pages/PrivateNotes/PrivateNotesListPage.js index 5ea081a12f25..1b6ee8386315 100644 --- a/src/pages/PrivateNotes/PrivateNotesListPage.js +++ b/src/pages/PrivateNotes/PrivateNotesListPage.js @@ -107,7 +107,7 @@ function PrivateNotesListPage({report, personalDetailsList, network, session}) { const privateNoteBrickRoadIndicator = (accountID) => (!_.isEmpty(lodashGet(report, ['privateNotes', accountID, 'errors'], '')) ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : ''); return _.chain(lodashGet(report, 'privateNotes', {})) .map((privateNote, accountID) => ({ - title: Number(lodashGet(session, 'accountID', null)) === Number(accountID) ? 'My note' : lodashGet(personalDetailsList, [accountID, 'login'], ''), + title: Number(lodashGet(session, 'accountID', null)) === Number(accountID) ? translate('privateNotes.myNote') : lodashGet(personalDetailsList, [accountID, 'login'], ''), icon: UserUtils.getAvatar(lodashGet(personalDetailsList, [accountID, 'avatar'], UserUtils.getDefaultAvatar(accountID)), accountID), iconType: CONST.ICON_TYPE_AVATAR, action: () => Navigation.navigate(ROUTES.getPrivateNotesViewRoute(report.reportID, accountID)), diff --git a/src/pages/PrivateNotes/PrivateNotesViewPage.js b/src/pages/PrivateNotes/PrivateNotesViewPage.js index 86814ed4dc92..abaa9df8d1f4 100644 --- a/src/pages/PrivateNotes/PrivateNotesViewPage.js +++ b/src/pages/PrivateNotes/PrivateNotesViewPage.js @@ -64,7 +64,7 @@ function PrivateNotesViewPage({route, personalDetailsList, session, report}) { > Navigation.dismissModal()} onBackButtonPress={() => Navigation.goBack()}