π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix undefineds
Manav Rathia1237dfafe20
diff --git a/web/packages/new/photos/services/search/index.ts b/web/packages/new/photos/services/search/index.tsindex e421988633..75e98e280c 100644--- a/web/packages/new/photos/services/search/index.ts+++ b/web/packages/new/photos/services/search/index.ts@@ -69,7 +69,8 @@ const parseYearComponents = (s: string): DateSearchResult[] => {return [];};-const holidays: DateSearchResult[] = [+// This cannot be a const, it needs to be evaluated lazily for the t() to work.+const holidays = (): DateSearchResult[] => [{ components: { month: 12, day: 25 }, label: t("CHRISTMAS") },{ components: { month: 12, day: 24 }, label: t("CHRISTMAS_EVE") },{ components: { month: 1, day: 1 }, label: t("NEW_YEAR") },@@ -77,4 +78,4 @@ const holidays: DateSearchResult[] = [];const parseHolidayComponents = (s: string) =>- holidays.filter(({ label }) => label.toLowerCase().includes(s));+ holidays().filter(({ label }) => label.toLowerCase().includes(s));