Skip to content

armgit / ente

Public Imported from GitHub
0

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

Use

Manav Rathic4812abab317
diff --git a/web/packages/gallery/components/viewer/FileViewer.tsx b/web/packages/gallery/components/viewer/FileViewer.tsx
index 9a72cc9771..c0b36745af 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, ut } from "@/base/i18n";
+import { formattedListJoin, pt, ut } from "@/base/i18n";
import type { LocalUser } from "@/base/local-user";
import log from "@/base/log";
import {
@@ -1032,7 +1032,10 @@ const Shortcuts: React.FC<ShortcutsProps> = ({
</SpacedRow>
<ShortcutsContent sx={{ "&&": { pt: 2, pb: 5, px: 5 } }}>
<Shortcut action={t("close")} shortcut={ut("Esc")} />
- <Shortcut action="Previous, Next" shortcut="←, β†’" />
+ <Shortcut
+ action={formattedListJoin([t("previous"), t("next")])}
+ shortcut="←, β†’"
+ />
<Shortcut action={t("zoom")} shortcut="Mouse scroll, Pinch" />
<Shortcut action="Zoom preset" shortcut="Z, Tap inside image" />
<Shortcut