From 4d6f784cfb84ca98c66aa9bb1fa21f52badd25ed Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Fri, 3 Nov 2023 21:21:20 -0700
Subject: feat(list): native titles option

---
 src/lib/List/Anime/CleanAnimeList.svelte | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

(limited to 'src/lib/List/Anime/CleanAnimeList.svelte')

diff --git a/src/lib/List/Anime/CleanAnimeList.svelte b/src/lib/List/Anime/CleanAnimeList.svelte
index 30443e83..9c4c3c1f 100644
--- a/src/lib/List/Anime/CleanAnimeList.svelte
+++ b/src/lib/List/Anime/CleanAnimeList.svelte
@@ -44,13 +44,17 @@
 					: `https://anilist.co/anime/${anime.id}`}
 				target="_blank"
 			>
-				{#if lastUpdatedMedia === anime.id && anime.episodes !== progress}
-					<span style="color: lightcoral">
+				<span
+					style={lastUpdatedMedia === anime.id && anime.episodes !== progress
+						? 'color: lightcoral'
+						: ''}
+				>
+					{#if $settings.displayNativeTitles}
+						{anime.title.native}
+					{:else}
 						{anime.title.english || anime.title.romaji || anime.title.native}
-					</span>
-				{:else}
-					{anime.title.english || anime.title.romaji || anime.title.native}
-				{/if}
+					{/if}
+				</span>
 			</a>
 			{#if $settings.displaySocialButton}
 				[<a href={`https://anilist.co/anime/${anime.id}/social`} target="_blank">S</a>]
-- 
cgit v1.2.3

