feat(frontend): forwarded header, pinned bar, folder tabs, inline buttons, edit history and deleted accounts speak russian and english
This commit is contained in:
1 parent
0cd34f3037
commit
25364f4523
8 files changed
+50
-18
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import type { Account, PeerView } from "#lib/api/types.js";
|
||||
import { t } from "#lib/i18n/locale.svelte.js";
|
||||
|
||||
const PEER_COLOR_COUNT = 7;
|
||||
|
||||
@@ -11,7 +12,7 @@ export function peerName(peer: PeerView | null): string {
|
||||
return "";
|
||||
}
|
||||
if (peer.is_deleted_account) {
|
||||
return "Удалённый аккаунт";
|
||||
return t("chat.deletedAccount");
|
||||
}
|
||||
const parts = [peer.first_name, peer.last_name].filter(Boolean);
|
||||
if (parts.length > 0) {
|
||||
@@ -20,7 +21,7 @@ export function peerName(peer: PeerView | null): string {
|
||||
if (peer.username) {
|
||||
return `@${peer.username}`;
|
||||
}
|
||||
return "Удалённый аккаунт";
|
||||
return t("chat.deletedAccount");
|
||||
}
|
||||
|
||||
export function accountName(account: Account): string {
|
||||
|
||||
Reference in new issue
Block a user