aboutsummaryrefslogtreecommitdiff
path: root/client-web/source/helper.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client-web/source/helper.ts')
-rw-r--r--client-web/source/helper.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/client-web/source/helper.ts b/client-web/source/helper.ts
index 3676ca3..70b7c28 100644
--- a/client-web/source/helper.ts
+++ b/client-web/source/helper.ts
@@ -5,6 +5,7 @@
*/
/// <reference lib="dom" />
+import { PO } from "./locale/mod.ts";
import { PREFS } from "./preferences/mod.ts";
interface Opts<E> {
@@ -63,7 +64,7 @@ export function image_view(url: string, opts?: Opts<HTMLElement>): HTMLElement {
const img = document.createElement("img")
apply_opts(img, opts ?? {})
img.src = url
- img.alt = `Image (click to open)`
+ img.alt = PO.image_alt
img.addEventListener("click", () => {
globalThis.open(url, "_blank", `noreferrer=true,noopener=true,popup=${PREFS.image_view_popup}`)
})