diff options
| author | Fuwn <[email protected]> | 2024-01-21 23:12:05 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-21 23:12:05 -0800 |
| commit | b11eb0562f8b4f4e3cdf46b975fcb0c5a8ed6b6e (patch) | |
| tree | 3e9bd3fa2e36361378e43e43c4afd9ef435935fc /src/lib | |
| parent | fix(badges): handling of placeholder badges (diff) | |
| download | due.moe-b11eb0562f8b4f4e3cdf46b975fcb0c5a8ed6b6e.tar.xz due.moe-b11eb0562f8b4f4e3cdf46b975fcb0c5a8ed6b6e.zip | |
feat(locale): translate calculation settings fields
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/Locale/english.ts | 18 | ||||
| -rw-r--r-- | src/lib/Locale/japanese.ts | 18 | ||||
| -rw-r--r-- | src/lib/Locale/layout.ts | 16 | ||||
| -rw-r--r-- | src/lib/Settings/Categories/Calculation.svelte | 21 |
4 files changed, 60 insertions, 13 deletions
diff --git a/src/lib/Locale/english.ts b/src/lib/Locale/english.ts index 99190912..3b30f9d3 100644 --- a/src/lib/Locale/english.ts +++ b/src/lib/Locale/english.ts @@ -89,7 +89,23 @@ const English: Locale = { } }, calculation: { - title: 'Calculation' + title: 'Calculation', + fields: { + roundDownChapters: { + title: 'Round down chapters (recommended)', + hint: 'Round chapters down to the nearest whole number (e.g., 50/50.6 would not be due)' + }, + showMediaWithZeroProgress: { + title: 'Show media with zero progress', + hint: 'May potentially cause rate-limiting if you have over ~80 unresolved manga on your lists' + }, + hideOutOfDateVolumeWarning: { + title: 'Hide out-of-date volume warning' + }, + smartChapterCountEstimation: { + title: 'Enable smart chapter count calculation' + } + } }, cache: { title: 'Cache' diff --git a/src/lib/Locale/japanese.ts b/src/lib/Locale/japanese.ts index 5ef7cc45..0376a443 100644 --- a/src/lib/Locale/japanese.ts +++ b/src/lib/Locale/japanese.ts @@ -90,7 +90,23 @@ const Japanese: Locale = { } }, calculation: { - title: '計算' + title: '計算', + fields: { + roundDownChapters: { + title: '最新のチャプター番号を切り捨てる', + hint: '直近のチャプター番号を小数点以下に切り捨てる(例:50/50.6は期限にならない)' + }, + showMediaWithZeroProgress: { + title: 'まだ始めていないメディアを含む', + hint: 'このオプションを有効にすると、リストに未解決のマンガが80冊以上ある場合、レート制限がかかる可能性があります。' + }, + hideOutOfDateVolumeWarning: { + title: '巻数が正しく追跡されていないマンガの警告を隠す' + }, + smartChapterCountEstimation: { + title: '未解決マンガのスマートな章数推定を有効にする' + } + } }, cache: { title: 'キャッシュ' diff --git a/src/lib/Locale/layout.ts b/src/lib/Locale/layout.ts index 59862632..f918cc63 100644 --- a/src/lib/Locale/layout.ts +++ b/src/lib/Locale/layout.ts @@ -94,6 +94,22 @@ export interface Locale { }; calculation: { title: LocaleValue; + fields: { + roundDownChapters: { + title: LocaleValue; + hint: LocaleValue; + }; + showMediaWithZeroProgress: { + title: LocaleValue; + hint: LocaleValue; + }; + hideOutOfDateVolumeWarning: { + title: LocaleValue; + }; + smartChapterCountEstimation: { + title: LocaleValue; + }; + }; }; cache: { title: LocaleValue; diff --git a/src/lib/Settings/Categories/Calculation.svelte b/src/lib/Settings/Categories/Calculation.svelte index 171f739b..63993f9a 100644 --- a/src/lib/Settings/Categories/Calculation.svelte +++ b/src/lib/Settings/Categories/Calculation.svelte @@ -1,6 +1,6 @@ <script lang="ts"> import { pruneAllManga } from '$lib/Media/Manga/cache'; - import tooltip from '$lib/Tooltip/tooltip'; + import locale from '$stores/locale'; import settings from '$stores/settings'; import SettingCheckboxToggle from '../SettingCheckboxToggle.svelte'; import SettingHint from '../SettingHint.svelte'; @@ -8,22 +8,21 @@ <SettingCheckboxToggle setting="calculateChaptersRoundedDown" - text="Round down chapters (recommended)" + text={$locale().settings.calculation.fields.roundDownChapters.title} > <SettingHint lineBreak> - Round chapters down to the nearest whole number (e.g., 50/50.6 would <b>not</b> be due) + {$locale().settings.calculation.fields.roundDownChapters.hint} </SettingHint> </SettingCheckboxToggle> <br /> -<SettingCheckboxToggle setting="displayNotStarted" text="Show media with zero progress"> +<SettingCheckboxToggle + setting="displayNotStarted" + text={$locale().settings.calculation.fields.showMediaWithZeroProgress.title} +> <SettingHint lineBreak> - May potentially cause <a href="https://en.wikipedia.org/wiki/Rate_limiting" target="_blank"> - <span title="Limiting network traffic to within defined frequency" use:tooltip - >rate-limiting</span - > - </a> if you have over ~80 unresolved manga on your lists + {$locale().settings.calculation.fields.showMediaWithZeroProgress.hint} </SettingHint> </SettingCheckboxToggle> @@ -31,7 +30,7 @@ <SettingCheckboxToggle setting="calculateDisableOutOfDateVolumeWarning" - text="Hide out-of-date volume warning" + text={$locale().settings.calculation.fields.hideOutOfDateVolumeWarning.title} > <SettingHint lineBreak> Out-of-date volume warnings display an alert when there is a mismatch between the chapter @@ -50,7 +49,7 @@ <SettingCheckboxToggle setting="calculateGuessingDisabled" - text="Enable smart chapter count calculation" + text={$locale().settings.calculation.fields.smartChapterCountEstimation.title} invert > <SettingHint lineBreak> |