π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
tr
Manav Rathi9716ff80c41c
diff --git a/web/apps/photos/src/components/Collections/CollectionHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsxindex aa85534a57..b7248c6fd7 100644--- a/web/apps/photos/src/components/Collections/CollectionHeader.tsx+++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx@@ -25,7 +25,6 @@ import {} from "ente-base/components/OverflowMenu";import { useModalVisibility } from "ente-base/components/utils/modal";import { useBaseContext } from "ente-base/context";-import { pt } from "ente-base/i18n";import {isArchivedCollection,isPinnedCollection,@@ -343,7 +342,7 @@ const CollectionOptions: React.FC<CollectionHeaderProps> = ({onClick={onCollectionShare}startIcon={<PeopleIcon />}>- {/*TODO(FAV):*/ pt("Share favorites")}+ {t("share_favorites")}</OverflowMenuOption>,]: []),@@ -649,7 +648,7 @@ const ShareQuickOption: React.FC<ShareQuickOptionProps> = ({collectionSummaryType == "sharedOnlyViaLink"? t("modify_sharing"): collectionSummaryType == "favorites"- ? /*TODO(FAV):*/ pt("Share favorites")+ ? t("share_favorites"): t("share_album")}>diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.jsonindex 0196f21c30..631c829cac 100644--- a/web/packages/base/locales/en-US/translation.json+++ b/web/packages/base/locales/en-US/translation.json@@ -677,5 +677,8 @@"light": "Light","dark": "Dark","streamable_videos": "Streamable videos",- "processing_videos_status": "Processing videos..."+ "processing_videos_status": "Processing videos...",+ "share_favorites": "Share favorites",+ "person_favorites": "{{name}}'s favorites",+ "shared_favorites": "Shared favorites"}diff --git a/web/packages/new/photos/components/gallery/reducer.ts b/web/packages/new/photos/components/gallery/reducer.tsindex 891b972cfa..c3464c7bf7 100644--- a/web/packages/new/photos/components/gallery/reducer.ts+++ b/web/packages/new/photos/components/gallery/reducer.ts@@ -1441,14 +1441,12 @@ const createCollectionSummaries = (// Use the first letter of the email of the user who shared this// particular favorite as a prefix to disambiguate this collection// from the user's own favorites.- // TODO(FAV): localize+ // TODO(FAV): Use the person name when availconst initial = collection.owner.email?.at(0)?.toUpperCase();if (initial) {- // TODO(FAV):- // name = `${initial}'s ${t("favorites")}`;- name = `${initial}'s favorites`;+ name = t("person_favorites", { name: initial });} else {- name = "Shared favorites";+ name = t("shared_favorites");}} else {name = collection.name;