diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/Locale/english.ts | 7 | ||||
| -rw-r--r-- | src/lib/Locale/japanese.ts | 7 | ||||
| -rw-r--r-- | src/lib/Locale/layout.ts | 7 | ||||
| -rw-r--r-- | src/routes/user/[user]/+page.svelte | 7 |
4 files changed, 26 insertions, 2 deletions
diff --git a/src/lib/Locale/english.ts b/src/lib/Locale/english.ts index 7b1b3d00..a5057230 100644 --- a/src/lib/Locale/english.ts +++ b/src/lib/Locale/english.ts @@ -195,6 +195,13 @@ const English: Locale = { profile: { statistics: '{username} has watched {anime} days of anime and read {manga} days of manga.', badges: '{username} has collected {badges} badges using Badge Wall.' + }, + preferences: { + title: 'User Preferences', + hideMissingBadges: { + title: 'Hide missing badges from Badge Wall', + hint: "Hide any 404'd badges from appearing on your Badge Wall, excluding during edit mode" + } } }, lists: { diff --git a/src/lib/Locale/japanese.ts b/src/lib/Locale/japanese.ts index 28c8f9bb..24e826fe 100644 --- a/src/lib/Locale/japanese.ts +++ b/src/lib/Locale/japanese.ts @@ -197,6 +197,13 @@ const Japanese: Locale = { statistics: '{username}はAniListで{anime}日間のアニメ視聴と{manga}日間の漫画読書を記録している。', badges: '{username}はBadge Wallを使って{badges}個のバッジを収集しました。' + }, + preferences: { + title: 'ユーザー設定', + hideMissingBadges: { + title: 'Badge Wallから不足しているバッジを隠す', + hint: '画像がエラー404を返すバッジをBadge Wallに表示しないようにします。編集モード中を除く' + } } }, lists: { diff --git a/src/lib/Locale/layout.ts b/src/lib/Locale/layout.ts index 10f9d5f8..d40842fd 100644 --- a/src/lib/Locale/layout.ts +++ b/src/lib/Locale/layout.ts @@ -197,6 +197,13 @@ export interface Locale { statistics: LocaleValue; badges: LocaleValue; }; + preferences: { + title: LocaleValue; + hideMissingBadges: { + title: LocaleValue; + hint: LocaleValue; + }; + }; }; lists: { upcoming: { diff --git a/src/routes/user/[user]/+page.svelte b/src/routes/user/[user]/+page.svelte index c93647f4..910a99e2 100644 --- a/src/routes/user/[user]/+page.svelte +++ b/src/routes/user/[user]/+page.svelte @@ -11,6 +11,7 @@ import tooltip from '$lib/Tooltip/tooltip.js'; import AnimeRateLimited from '$lib/Error/AnimeRateLimited.svelte'; import identity from '$stores/identity'; + import SettingHint from '$lib/Settings/SettingHint.svelte'; export let data; @@ -128,7 +129,7 @@ <p /> <details open> - <summary>User Preferences</summary> + <summary>{$locale().user.preferences.title}</summary> <input type="checkbox" @@ -139,7 +140,9 @@ }); }} checked={preferences.hide_missing_badges} - /> Hide missing badges from Badge Wall + /> + {$locale().user.preferences.hideMissingBadges.title} + <SettingHint lineBreak>{$locale().user.preferences.hideMissingBadges.hint}</SettingHint> </details> {/await} {/await} |