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.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client-web/source/helper.ts b/client-web/source/helper.ts
index 70b7c28..9b5b43d 100644
--- a/client-web/source/helper.ts
+++ b/client-web/source/helper.ts
@@ -5,7 +5,7 @@
*/
/// <reference lib="dom" />
-import { PO } from "./locale/mod.ts";
+import { tr } from "./locale.ts";
import { PREFS } from "./preferences/mod.ts";
interface Opts<E> {
@@ -64,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 = PO.image_alt
+ img.alt = tr("chat.image_alt")
img.addEventListener("click", () => {
globalThis.open(url, "_blank", `noreferrer=true,noopener=true,popup=${PREFS.image_view_popup}`)
})