diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.json index 16ae6f92fd..df8ce763c4 100644 --- a/web/packages/base/locales/en-US/translation.json +++ b/web/packages/base/locales/en-US/translation.json @@ -681,5 +681,6 @@ "processing_videos_status": "Processing videos...", "share_favorites": "Share favorites", "person_favorites": "{{name}}'s favorites", - "shared_favorites": "Shared favorites" + "shared_favorites": "Shared favorites", + "added_by_name": "Added by {{name}}" } diff --git a/web/packages/gallery/components/FileInfo.tsx b/web/packages/gallery/components/FileInfo.tsx index fab7252efe..a3a0218a5a 100644 --- a/web/packages/gallery/components/FileInfo.tsx +++ b/web/packages/gallery/components/FileInfo.tsx @@ -256,6 +256,8 @@ export const FileInfo: React.FC = ({ onSelectPerson?.(personID); }; + const uploaderName = filePublicMagicMetadata(file)?.uploaderName; + return ( @@ -365,6 +367,14 @@ export const FileInfo: React.FC = ({ }} /> )} + {uploaderName && ( + + {t("added_by_name", { name: uploaderName })} + + )}