Skip to content

Commit

Permalink
fix: set English and Spanish localization for date and author of shar…
Browse files Browse the repository at this point in the history
…ed files
  • Loading branch information
knipec committed Mar 22, 2024
1 parent 8c3b52c commit 6189c63
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/localization/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,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}}”?",
Expand Down
1 change: 1 addition & 0 deletions src/localization/locales/es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,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}}”?",
Expand Down
6 changes: 4 additions & 2 deletions src/sharedData/components/SharedDataEntryBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,10 @@ const SharedDataEntryBase = props => {
</Grid>
<Grid item xs={1} order={{ xs: 7 }} display={{ md: 'none' }} />
<Grid item xs={11} md={3} order={{ xs: 8, md: 4 }}>
{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,
})}
</Grid>
<Grid
item
Expand Down

0 comments on commit 6189c63

Please sign in to comment.