From 90fdd68950024b1fbb463049a6a111d1d0c38efc Mon Sep 17 00:00:00 2001 From: Carissa Knipe Date: Fri, 22 Mar 2024 12:47:35 -0700 Subject: [PATCH] fix: set English and Spanish localization for date and author of shared files --- src/localization/locales/en-US.json | 1 + src/localization/locales/es-ES.json | 1 + src/sharedData/components/SharedDataEntryBase.js | 8 +++++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/localization/locales/en-US.json b/src/localization/locales/en-US.json index 22ba59131..816985ff2 100644 --- a/src/localization/locales/en-US.json +++ b/src/localization/locales/en-US.json @@ -523,6 +523,7 @@ "title": "Shared files and Links", "description_with_files": "Only members of your {{entityType}} can download these files or create a map with them.", "card_description": "Upload documents and share links with other members. Make maps with data files (latitude and longitude required) and map files (GeoJSON, KML, KMZ, ESRI shapefiles).", + "file_date_and_author": "{{date}}, by $t(user.full_name)", "upload_button": "Share Files and Links", "delete_confirm_title": "Delete “{{name}}”?", "delete_file_confirm_message": "Are you sure you wish to delete the file “{{name}}”?", diff --git a/src/localization/locales/es-ES.json b/src/localization/locales/es-ES.json index 1abbbf3cb..5fbbd882b 100644 --- a/src/localization/locales/es-ES.json +++ b/src/localization/locales/es-ES.json @@ -570,6 +570,7 @@ "title": "Archivos y enlaces compartidos", "description_with_files": "Solo los miembros de tu {{entityType}} pueden descargar estos archivos o crear un mapa con ellos.", "card_description": "Carga documentos y comparte enlaces con otros miembros. Crea mapas con archivos de datos (se requieren latitud y longitud) y archivos de mapas (GeoJSON, KML, KMZ, Shapefiles de ESRI).", + "file_date_and_author": "{{date}}, por $t(user.full_name)", "upload_button": "Compartir archivos y enlaces", "delete_confirm_title": "Eliminar “{{name}}”?", "delete_file_confirm_message": "¿Estás segura(o) de que deseas eliminar el archivo “{{name}}”?", diff --git a/src/sharedData/components/SharedDataEntryBase.js b/src/sharedData/components/SharedDataEntryBase.js index 5ac36e58e..36cc56fd1 100644 --- a/src/sharedData/components/SharedDataEntryBase.js +++ b/src/sharedData/components/SharedDataEntryBase.js @@ -226,9 +226,11 @@ const SharedDataEntryBase = props => { - - {formatDate(i18n.resolvedLanguage, dataEntry.createdAt)}, by{' '} - {t('user.full_name', { user: dataEntry.createdBy })} + + {t('sharedData.file_date_and_author', { + date: formatDate(i18n.resolvedLanguage, dataEntry.createdAt), + user: dataEntry.createdBy, + })}