Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

zoom

Manav Rathief3ccbd91b1a
diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.json
index fa36b16848..a3e8f8138e 100644
--- a/web/packages/base/locales/en-US/translation.json
+++ b/web/packages/base/locales/en-US/translation.json
@@ -77,7 +77,7 @@
"download_key": "Download (D)",
"copy_key": "Copy as PNG (Ctrl/Cmd - C)",
"toggle_fullscreen_key": "Toggle fullscreen (F)",
- "zoom_in_out_key": "Zoom in/out",
+ "zoom": "Zoom",
"previous_key": "Previous (←)",
"next_key": "Next (β†’)",
"title_photos": "Ente Photos",
diff --git a/web/packages/gallery/components/viewer/FileViewer.tsx b/web/packages/gallery/components/viewer/FileViewer.tsx
index dd8afdacf3..9a72cc9771 100644
--- a/web/packages/gallery/components/viewer/FileViewer.tsx
+++ b/web/packages/gallery/components/viewer/FileViewer.tsx
@@ -9,7 +9,7 @@ import { useIsSmallWidth } from "@/base/components/utils/hooks";
import { type ModalVisibilityProps } from "@/base/components/utils/modal";
import { useBaseContext } from "@/base/context";
import { lowercaseExtension } from "@/base/file-name";
-import { pt } from "@/base/i18n";
+import { pt, ut } from "@/base/i18n";
import type { LocalUser } from "@/base/local-user";
import log from "@/base/log";
import {
@@ -1031,9 +1031,9 @@ const Shortcuts: React.FC<ShortcutsProps> = ({
<DialogCloseIconButton {...{ onClose }} />
</SpacedRow>
<ShortcutsContent sx={{ "&&": { pt: 2, pb: 5, px: 5 } }}>
- <Shortcut action="Close" shortcut="Esc" />
+ <Shortcut action={t("close")} shortcut={ut("Esc")} />
<Shortcut action="Previous, Next" shortcut="←, β†’" />
- <Shortcut action="Zoom" shortcut="Mouse scroll, Pinch" />
+ <Shortcut action={t("zoom")} shortcut="Mouse scroll, Pinch" />
<Shortcut action="Zoom preset" shortcut="Z, Tap inside image" />
<Shortcut
action="Toggle controls"
diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.ts
index b9cb2ce9b0..4eef32350f 100644
--- a/web/packages/gallery/components/viewer/photoswipe.ts
+++ b/web/packages/gallery/components/viewer/photoswipe.ts
@@ -232,7 +232,7 @@ export class FileViewerPhotoSwipe {
// since we only have a single PhotoSwipe instance.
mainClass: "pswp-ente",
closeTitle: t("close"),
- zoomTitle: pt("Zoom"),
+ zoomTitle: t("zoom"),
arrowPrevTitle: pt("Previous"),
arrowNextTitle: pt("Next"),
// TODO(PS): Move to translations (unpreviewable_file_notification).