π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Mark as pending translation
Manav Rathi58127591d05d
diff --git a/web/apps/photos/src/components/Upload/UploadTypeSelector.tsx b/web/apps/photos/src/components/Upload/UploadTypeSelector.tsxindex 027f6bd8c1..5e524fe8b3 100644--- a/web/apps/photos/src/components/Upload/UploadTypeSelector.tsx+++ b/web/apps/photos/src/components/Upload/UploadTypeSelector.tsx@@ -1,4 +1,5 @@import { FocusVisibleButton } from "@/new/photos/components/FocusVisibleButton";+import { pt } from "@/next/i18n";import DialogTitleWithCloseButton, {DialogTitleWithCloseButtonSm,dialogCloseHandler,@@ -202,7 +203,6 @@ const TakeoutOptions: React.FC<Omit<OptionsProps, "intent">> = ({onSelect,onClose,}) => {- // TODO(MR): Move these to localized strings when finalized.return (<><DialogTitleWithCloseButtonSm onClose={onClose}>@@ -218,7 +218,7 @@ const TakeoutOptions: React.FC<Omit<OptionsProps, "intent">> = ({disableRippleonClick={() => onSelect("folders")}>- {t("Select folder")}+ {pt("Select folder")}</FocusVisibleButton><FocusVisibleButtoncolor="secondary"@@ -226,7 +226,7 @@ const TakeoutOptions: React.FC<Omit<OptionsProps, "intent">> = ({disableRippleonClick={() => onSelect("zips")}>- {t("Select zips")}+ {pt("Select zips")}</FocusVisibleButton><Linkhref="https://help.ente.io/photos/migration/from-google-photos/"@@ -238,14 +238,15 @@ const TakeoutOptions: React.FC<Omit<OptionsProps, "intent">> = ({fullWidthdisableRipple>- {t("FAQ")}+ {pt("FAQ")}</FocusVisibleButton></Link></Stack><Typography variant="small" color="text.muted" pb={1}>- Unzip all zips into the same folder and upload that. Or- upload the zips directly. See FAQ for details.+ {pt(+ "Unzip all zips into the same folder and upload that. Or upload the zips directly. See FAQ for details.",+ )}</Typography></Stack></Box>diff --git a/web/packages/next/i18n.ts b/web/packages/next/i18n.tsindex da63bc8c51..046dcd5c11 100644--- a/web/packages/next/i18n.ts+++ b/web/packages/next/i18n.ts@@ -262,6 +262,21 @@ export const setLocaleInUse = async (locale: SupportedLocale) => {return i18n.changeLanguage(locale);};+/**+ * A no-op marker for strings that, for various reasons, pending addition to the+ * translation dataset.+ *+ * This function does nothing, it just returns back the passed it string+ * verbatim. It is only kept as a way for us to keep track of strings which+ * we've not yet added to the list of strings that should be translated (e.g.+ * perhaps we're awaiting feedback on the copy).+ *+ * It is the sibling of the {@link t} function provided by i18next.+ *+ * See also: {@link ut}.+ */+export const pt = (s: string) => s;+/*** A no-op marker for strings that, for various reasons, are not translated.*@@ -270,6 +285,8 @@ export const setLocaleInUse = async (locale: SupportedLocale) => {* not translated (and for some reason, are currently not meant to be), but* still are user visible.*- * It is the sibling of the {@link t} function provided by i18next.+ * It is the sibling of the {@link t} function provided by i18next. See also+ *+ * See also: {@link pt}.*/export const ut = (s: string) => s;