feat(frontend): browser tab shows the open chat, empty state speaks the chosen language

This commit is contained in:
hh committed 2026-10-19 02:06:13 +00:00
1 parent 50922ef69a
commit 54424d0aa0
3 files changed
+13 -1

No files matched your search

@@ -139,6 +139,10 @@
);
</script>
<svelte:head>
<title>{title} · Beavergram</title>
</svelte:head>
<header class="chat-header">
<div class="back">
<Button
+4
View File
@@ -6,4 +6,8 @@ export const common = {
"common.close": { en: "Close", ru: "Закрыть" },
"common.delete": { en: "Delete", ru: "Удалить" },
"common.save": { en: "Save", ru: "Сохранить" },
"common.selectChat": {
en: "Select a chat to open its archive",
ru: "Выберите чат, чтобы открыть архив",
},
} satisfies Messages;
+5 -1
View File
@@ -1,5 +1,9 @@
<script lang="ts">
import { t } from "#lib/i18n/locale.svelte.js";
</script>
<div class="placeholder">
<span class="pill">Select a chat to view its archive</span>
<span class="pill">{t("common.selectChat")}</span>
</div>
<style lang="scss">