diff options
Diffstat (limited to 'client-web/source/user/mod.ts')
-rw-r--r-- | client-web/source/user/mod.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client-web/source/user/mod.ts b/client-web/source/user/mod.ts index daf3772..90a45b8 100644 --- a/client-web/source/user/mod.ts +++ b/client-web/source/user/mod.ts @@ -6,19 +6,19 @@ /// <reference lib="dom" /> import { e } from "../helper.ts"; -import { PO } from "../locale/mod.ts"; +import { tr } from "../locale.ts"; import { Room } from "../room.ts"; export class User { private _name?: string set name(v: string | undefined) { this._name = v; this.name_el.textContent = this.display_name; this.el.ariaLabel = "user " + this.display_name } get name() { return this._name } - get display_name() { return this.name ?? PO.unknown_user } + get display_name() { return this.name ?? tr("unknown_user") } name_el = e("span", {}, this.display_name) status_el = e("span", { class: ["connection-status", "status-neutral"] }, "") stats_el = e("pre", {}) - el = e("div", { class: "user", role: "group", aria_label: PO.unknown_user, aria_live: "polite" }) + el = e("div", { class: "user", role: "group", aria_label: tr("unknown_user"), aria_live: "polite" }) constructor(public room: Room, public id: number) { const info_el = e("div", { class: "info" }) |