diff --git a/src/lib/components/ui/layout/pages/Header.svelte b/src/lib/components/ui/layout/pages/Header.svelte index 2d8e3ac9..77a50897 100644 --- a/src/lib/components/ui/layout/pages/Header.svelte +++ b/src/lib/components/ui/layout/pages/Header.svelte @@ -1,3 +1,3 @@ -

+

diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.json index 9bd31eb9..963f6fce 100644 --- a/src/lib/i18n/en.json +++ b/src/lib/i18n/en.json @@ -90,7 +90,13 @@ "legacy": "Legacy" }, "type": "Type", - "filter": "Filter" + "filter": "Filter", + "unread": "Unread", + "inbox": { + "messages": "Messages", + "replies": "Replies", + "mentions": "Mentions" + } }, "form": { "username": "Username", @@ -226,6 +232,7 @@ "back": "Back", "next": "Next", "debug": "Debug", - "refresh": "Refresh" + "refresh": "Refresh", + "jump": "Jump" } } diff --git a/src/routes/inbox/+page.svelte b/src/routes/inbox/+page.svelte index 8081c02d..377e609d 100644 --- a/src/routes/inbox/+page.svelte +++ b/src/routes/inbox/+page.svelte @@ -19,6 +19,8 @@ import { searchParam } from '$lib/util.js' import { Button, Select } from 'mono-svelte' import EndPlaceholder from '$lib/components/ui/EndPlaceholder.svelte' + import Header from '$lib/components/ui/layout/pages/Header.svelte' + import { t } from '$lib/translations' export let data @@ -51,11 +53,11 @@
-

Inbox

+
{$t('routes.inbox.title')}
@@ -67,7 +69,7 @@ class="!h-8" > - Mark All Read + {$t('routes.inbox.markAsRead')}
@@ -84,10 +86,10 @@ > - Filter + {$t('filter.filter')} - - + +
{#if !data.data || (data.data?.length ?? 0) == 0} {:else} {#each data.data as item} diff --git a/src/routes/inbox/InboxItem.svelte b/src/routes/inbox/InboxItem.svelte index b2d0f6a4..6f1b069d 100644 --- a/src/routes/inbox/InboxItem.svelte +++ b/src/routes/inbox/InboxItem.svelte @@ -21,6 +21,7 @@ import type { InboxItem } from '$lib/lemmy/inbox.js' import PrivateMessage from '$lib/components/lemmy/inbox/PrivateMessage.svelte' import PrivateMessageModal from '$lib/components/lemmy/modal/PrivateMessageModal.svelte' + import { t } from '$lib/translations' export let item: InboxItem @@ -104,6 +105,7 @@ {loading} disabled={loading} on:click={() => markAsRead(!item.read)} + title={$t('post.actions.more.markRead')} > @@ -117,7 +119,7 @@ {/if} {:else}