aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-02-06 06:14:28 -0800
committerFuwn <[email protected]>2024-02-06 06:14:28 -0800
commite8f574892dbec351c495368af9747e7afb8d6038 (patch)
treea69f793243b87b6ff815769261ddf5db27ed1bfb /src
parentfeat(settings): recommend site data clear (diff)
downloaddue.moe-e8f574892dbec351c495368af9747e7afb8d6038.tar.xz
due.moe-e8f574892dbec351c495368af9747e7afb8d6038.zip
feat(locale): localise debug settings
Diffstat (limited to 'src')
-rw-r--r--src/lib/Locale/english.ts14
-rw-r--r--src/lib/Locale/japanese.ts14
-rw-r--r--src/lib/Locale/layout.ts12
-rw-r--r--src/lib/Settings/Categories/Debug.svelte16
4 files changed, 49 insertions, 7 deletions
diff --git a/src/lib/Locale/english.ts b/src/lib/Locale/english.ts
index 9e0868d0..fe449d34 100644
--- a/src/lib/Locale/english.ts
+++ b/src/lib/Locale/english.ts
@@ -216,6 +216,20 @@ const English: Locale = {
long: "Today's Character Birthdays"
}
}
+ },
+ debug: {
+ clearCaches: 'Clear anime and manga list caches',
+ resetAllSettings: {
+ title: 'Reset ALL settings',
+ hint: 'Resets all settings present on this page to their default values'
+ },
+ clearLocalStorage: {
+ title: 'Clear',
+ hint1:
+ 'Resets all of your settings to their default values and clears both AniList media list and manga data caches',
+ hint2:
+ 'If you are having issues with data loading or logging out, it is recommended to clear your site data.'
+ }
}
};
diff --git a/src/lib/Locale/japanese.ts b/src/lib/Locale/japanese.ts
index fb9cff07..7326a3a0 100644
--- a/src/lib/Locale/japanese.ts
+++ b/src/lib/Locale/japanese.ts
@@ -218,6 +218,20 @@ const Japanese: Locale = {
long: '今日のキャラクターの誕生日'
}
}
+ },
+ debug: {
+ clearCaches: 'ブラウザのAniListアニメと漫画リストのキャッシュを消去する',
+ resetAllSettings: {
+ title: 'すべての設定をリセット',
+ hint: 'このページにあるすべての設定をデフォルト値にリセットします'
+ },
+ clearLocalStorage: {
+ title: 'クリア',
+ hint1:
+ 'すべての設定をデフォルト値にリセットし、AniListメディアリストと漫画データキャッシュをクリアします',
+ hint2:
+ 'データの読み込みやログアウトに問題がある場合、サイトデータをクリアすることをお勧めします。'
+ }
}
};
diff --git a/src/lib/Locale/layout.ts b/src/lib/Locale/layout.ts
index 99ff5cae..d2af0a4c 100644
--- a/src/lib/Locale/layout.ts
+++ b/src/lib/Locale/layout.ts
@@ -220,4 +220,16 @@ export interface Locale {
};
};
};
+ debug: {
+ clearCaches: LocaleValue;
+ resetAllSettings: {
+ title: LocaleValue;
+ hint: LocaleValue;
+ };
+ clearLocalStorage: {
+ title: LocaleValue;
+ hint1: LocaleValue;
+ hint2: LocaleValue;
+ };
+ };
}
diff --git a/src/lib/Settings/Categories/Debug.svelte b/src/lib/Settings/Categories/Debug.svelte
index d8da8aa8..4da6c256 100644
--- a/src/lib/Settings/Categories/Debug.svelte
+++ b/src/lib/Settings/Categories/Debug.svelte
@@ -3,6 +3,7 @@
import { getNotificationsContext } from 'svelte-notifications';
import SettingHint from '../SettingHint.svelte';
import { options } from '$lib/Notification/options';
+ import locale from '$stores/locale';
const { addNotification } = getNotificationsContext();
</script>
@@ -16,7 +17,7 @@
heading: 'Anime and manga list caches successfully cleared'
})
);
- }}>Clear anime and manga list caches</button
+ }}>{$locale().debug.clearCaches}</button
>
<p />
@@ -29,10 +30,12 @@
heading: 'All settings successfully reset'
})
);
- }}>Reset <b>ALL</b> settings</button
+ }}
>
+ {$locale().debug.resetAllSettings.title}
+</button>
<SettingHint lineBreak>
- Resets all settings present on this page to their default values
+ {$locale().debug.resetAllSettings.hint}
</SettingHint>
<p />
@@ -45,11 +48,10 @@
heading: '<code>localStorage</code> successfully cleared'
})
);
- }}>Clear <code>localStorage</code></button
+ }}>{$locale().debug.clearLocalStorage.title} <code>localStorage</code></button
>
<SettingHint lineBreak>
- Resets all of your settings to their default values and clears both AniList media list and manga
- data caches
+ {$locale().debug.clearLocalStorage.hint1}
<br />
- If you are having issues with data loading or logging out, it is recommended to clear your site data.
+ {$locale().debug.clearLocalStorage.hint2}
</SettingHint>