From 5e1ac6260f415a35b30ab3006977b4e4a0bf1fdc Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Thu, 25 Jan 2024 08:35:33 -0800
Subject: feat(locale): localise media lists

---
 src/routes/+page.svelte | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'src/routes/+page.svelte')

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>
 
-- 
cgit v1.2.3

