diff options
| author | Fuwn <[email protected]> | 2024-01-25 08:35:33 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-25 08:35:33 -0800 |
| commit | 5e1ac6260f415a35b30ab3006977b4e4a0bf1fdc (patch) | |
| tree | 2d2913d25f7e828405446f3d68e635d7eed32af6 /src/routes | |
| parent | feat(wrapped): hide loading messages (diff) | |
| download | due.moe-5e1ac6260f415a35b30ab3006977b4e4a0bf1fdc.tar.xz due.moe-5e1ac6260f415a35b30ab3006977b4e4a0bf1fdc.zip | |
feat(locale): localise media lists
Diffstat (limited to 'src/routes')
| -rw-r--r-- | src/routes/+page.svelte | 7 | ||||
| -rw-r--r-- | src/routes/completed/+page.svelte | 9 |
2 files changed, 9 insertions, 7 deletions
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index bebeeb70..88108de9 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -10,6 +10,7 @@ import LastActivity from '$lib/Home/LastActivity.svelte'; import { createHeightObserver } from '$lib/Utility/html.js'; import Skeleton from '$lib/Skeleton.svelte'; + import locale from '$stores/locale.js'; export let data; @@ -37,7 +38,7 @@ {#if $userIdentity.id != -1} <UpcomingAnimeList user={data.user} identity={$userIdentity} /> {:else} - <ListTitle custom="Upcoming Episodes" /> + <ListTitle title={$locale().lists.upcoming.episodes} /> <ul><li>Loading user identity ... 50%</li></ul> @@ -55,7 +56,7 @@ {#if $userIdentity.id != -1} <AnimeList user={data.user} identity={$userIdentity} /> {:else} - <ListTitle anime /> + <ListTitle title={$locale().lists.due.episodes} /> <ul><li>Loading user identity ... 50%</li></ul> @@ -78,7 +79,7 @@ due={true} /> {:else} - <ListTitle /> + <ListTitle title={$locale().lists.due.mangaAndLightNovels} /> <ul><li>Loading 0% ...</li></ul> diff --git a/src/routes/completed/+page.svelte b/src/routes/completed/+page.svelte index 43648e01..9f493d1e 100644 --- a/src/routes/completed/+page.svelte +++ b/src/routes/completed/+page.svelte @@ -9,6 +9,7 @@ import LastActivity from '$lib/Home/LastActivity.svelte'; import { createHeightObserver } from '$lib/Utility/html.js'; import Skeleton from '$lib/Skeleton.svelte'; + import locale from '$stores/locale.js'; export let data; @@ -27,9 +28,9 @@ {#if $userIdentity.id != -1} <WatchingAnimeList user={data.user} identity={$userIdentity} /> {:else} - <ListTitle custom="Anime" /> + <ListTitle title={$locale().lists.completed.anime} /> - <ul><li>Loading user identity ... 50%</li></ul> + <!-- <ul><li>Loading user identity ... 50%</li></ul> --> <Skeleton card={false} count={5} height="0.9rem" list /> {/if} @@ -44,9 +45,9 @@ due={false} /> {:else} - <ListTitle custom="Manga & Light Novels" /> + <ListTitle title={$locale().lists.completed.mangaAndLightNovels} /> - <ul><li>Loading user identity ... 50%</li></ul> + <!-- <ul><li>Loading user identity ... 50%</li></ul> --> <Skeleton card={false} count={5} height="0.9rem" list /> {/if} |