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/lib/List/Manga | |
| 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/lib/List/Manga')
| -rw-r--r-- | src/lib/List/Manga/CleanMangaList.svelte | 9 | ||||
| -rw-r--r-- | src/lib/List/Manga/MangaListTemplate.svelte | 17 |
2 files changed, 19 insertions, 7 deletions
diff --git a/src/lib/List/Manga/CleanMangaList.svelte b/src/lib/List/Manga/CleanMangaList.svelte index aa996547..e14e03f0 100644 --- a/src/lib/List/Manga/CleanMangaList.svelte +++ b/src/lib/List/Manga/CleanMangaList.svelte @@ -17,6 +17,7 @@ import proxy from '$lib/Utility/proxy'; import Loading from '$lib/Utility/Loading.svelte'; import root from '$lib/Utility/root'; + import locale from '$stores/locale'; export let media: Media[]; export let cleanCache: () => void; @@ -39,7 +40,13 @@ </script> {#if authorised} - <ListTitle count={media.length} time={endTime / 1000}> + <ListTitle + count={media.length} + time={endTime / 1000} + title={due + ? $locale().lists.due.mangaAndLightNovels + : $locale().lists.completed.mangaAndLightNovels} + > <button class="small-button" title="Force a full refresh" diff --git a/src/lib/List/Manga/MangaListTemplate.svelte b/src/lib/List/Manga/MangaListTemplate.svelte index ded2d197..c200674b 100644 --- a/src/lib/List/Manga/MangaListTemplate.svelte +++ b/src/lib/List/Manga/MangaListTemplate.svelte @@ -16,6 +16,7 @@ import { getNotificationsContext } from 'svelte-notifications'; import { options } from '$lib/Notification/options'; import Skeleton from '$lib/Skeleton.svelte'; + import locale from '$stores/locale'; export let user: AniListAuthorisation; export let identity: UserIdentity; @@ -200,7 +201,7 @@ {#await mangaLists} {#if !authorised} - <ListTitle count={0} time={endTime / 1000}> + <ListTitle count={0} time={endTime / 1000} title={$locale().lists.due.mangaAndLightNovels}> <button data-umami-event="Force Refresh Manga" title="Force a full refresh" @@ -226,14 +227,14 @@ {authorised} /> {:else} - <ListTitle {progress} /> + <ListTitle {progress} title={$locale().lists.due.mangaAndLightNovels} /> <Skeleton card={false} count={5} height="0.9rem" list /> {/if} {:then media} {#await cleanMedia(media, displayUnresolved, forceFlag)} {#if !authorised} - <ListTitle count={0} time={endTime / 1000}> + <ListTitle count={0} time={endTime / 1000} title={$locale().lists.due.mangaAndLightNovels}> <button data-umami-event="Force Refresh Manga" title="Force a full refresh" @@ -259,13 +260,17 @@ {authorised} /> {:else} - <ListTitle {progress} /> + <ListTitle {progress} title={$locale().lists.due.mangaAndLightNovels} /> <Skeleton card={false} count={5} height="0.9rem" list /> {/if} {:then cleanedMedia} {#if !authorised} - <ListTitle count={cleanedMedia.length} time={endTime / 1000}> + <ListTitle + count={cleanedMedia.length} + time={endTime / 1000} + title={$locale().lists.due.mangaAndLightNovels} + > <button data-umami-event="Force Refresh Manga" title="Force a full refresh" @@ -291,7 +296,7 @@ /> {:catch} {#if authorised} - <ListTitle count={-1337} time={0} /> + <ListTitle count={-1337} time={0} title={$locale().lists.due.mangaAndLightNovels} /> {/if} <Error list={false} /> |