From 3663694f1f67b61a3137826ec24c06704466d2f5 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Fri, 11 Nov 2022 09:25:13 +0530 Subject: [PATCH 1/2] rename caption to description --- src/components/PhotoViewer/InfoDialog/RenderCaption.tsx | 2 +- src/utils/strings/englishConstants.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/PhotoViewer/InfoDialog/RenderCaption.tsx b/src/components/PhotoViewer/InfoDialog/RenderCaption.tsx index d6d1b210d..420bcd485 100644 --- a/src/components/PhotoViewer/InfoDialog/RenderCaption.tsx +++ b/src/components/PhotoViewer/InfoDialog/RenderCaption.tsx @@ -70,7 +70,7 @@ export function RenderCaption({ {caption} ) : ( - Add a caption + {constants} )} diff --git a/src/utils/strings/englishConstants.tsx b/src/utils/strings/englishConstants.tsx index 08f920ab1..0bed89d89 100644 --- a/src/utils/strings/englishConstants.tsx +++ b/src/utils/strings/englishConstants.tsx @@ -435,7 +435,8 @@ const englishConstants = { INFO: 'Info', FILE_ID: 'File ID', FILE_NAME: 'File name', - CAPTION: 'Caption', + CAPTION: 'Description', + CAPTION_PLACEHOLDER: 'Add a Description', CREATION_TIME: 'Creation time', UPDATED_ON: 'Updated on', LOCATION: 'Location', From 7c5350187476712a175614261422efd389fe9fee Mon Sep 17 00:00:00 2001 From: Abhinav Date: Fri, 11 Nov 2022 09:34:36 +0530 Subject: [PATCH 2/2] fix typo --- src/components/PhotoViewer/InfoDialog/RenderCaption.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PhotoViewer/InfoDialog/RenderCaption.tsx b/src/components/PhotoViewer/InfoDialog/RenderCaption.tsx index 420bcd485..c3e5b2bb4 100644 --- a/src/components/PhotoViewer/InfoDialog/RenderCaption.tsx +++ b/src/components/PhotoViewer/InfoDialog/RenderCaption.tsx @@ -70,7 +70,7 @@ export function RenderCaption({ {caption} ) : ( - {constants} + {constants.CAPTION_PLACEHOLDER} )}