From a44969eaeab38d44435f5b79f3909753eae1a9f0 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sat, 20 Jan 2024 20:47:56 -0800
Subject: feat(locale): settings framework localisation

---
 src/routes/settings/+page.svelte | 26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)

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

diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte
index 77bd3869..c878f364 100644
--- a/src/routes/settings/+page.svelte
+++ b/src/routes/settings/+page.svelte
@@ -13,6 +13,7 @@
 	import { getNotificationsContext } from 'svelte-notifications';
 	import { options } from '$lib/Notification/options.js';
 	import tooltip from '$lib/Tooltip/tooltip';
+	import { _ } from 'svelte-i18n';
 
 	export let data;
 
@@ -32,15 +33,18 @@
 
 <blockquote>
 	Have feedback or suggestions? Send a private message to
-	<a href="https://anilist.co/user/fuwn" target="_blank" title="Author of due.moe" use:tooltip
-		>@fuwn</a
+	<a
+		href="https://anilist.co/user/fuwn"
+		target="_blank"
+		title={$_('settings.tooltips.author')}
+		use:tooltip>@fuwn</a
 	> on AniList!
 </blockquote>
 
 {#if data.user === undefined}
 	<div class="card">Please log in to modify settings.</div>
 {:else}
-	<Category title="RSS Feeds" id="feeds">
+	<Category title={$_('settings.rss_feeds.title')} id="feeds">
 		<button
 			on:click={() => {
 				addNotification(
@@ -57,14 +61,14 @@
 				);
 			}}
 		>
-			Copy to clipboard
+			{$_('settings.rss_feeds.buttons.copy_to_clipboard')}
 		</button>
 		Your AniList notifications RSS feed URL
 		<SettingHint lineBreak>
 			This <a
 				href="https://en.wikipedia.org/wiki/RSS"
 				target="_blank"
-				title="Web feed data format"
+				title={$_('settings.rss_feeds.tooltips.rss')}
 				use:tooltip
 				data-tooltip-above>RSS</a
 			>
@@ -73,19 +77,19 @@
 			Do not share this link with <b>anyone</b>!
 		</SettingHint>
 	</Category>
-	<Category title="Display"><Display /></Category>
-	<Category title="Calculation"><Calculation /></Category>
-	<Category title="Cache"><Cache /></Category>
+	<Category title={$_('settings.display.title')}><Display /></Category>
+	<Category title={$_('settings.calculation.title')}><Calculation /></Category>
+	<Category title={$_('settings.cache.title')}><Cache /></Category>
 	<Category id="debug">
 		<summary
-			>Debug<button
+			>{$_('settings.debug.title')}<button
 				class="smaller-button button-badge badge-info"
-				title="Current due.moe version hash"
+				title={$_('settings.debug.tooltips.version')}
 				use:tooltip>{data.commit.slice(0, 7)}</button
 			></summary
 		>
 
 		<Debug />
 	</Category>
-	<Category title="Attributions" open={false}><Attributions /></Category>
+	<Category title={$_('settings.attributions.title')} open={false}><Attributions /></Category>
 {/if}
-- 
cgit v1.2.3

