feat(frontend): browser tab shows the open chat, empty state speaks the chosen language
This commit is contained in:
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
|
||||
|
||||
@@ -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;
|
||||
@@ -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">
|
||||
|
||||
Reference in new issue
Block a user