aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Settings
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-01-21 23:12:05 -0800
committerFuwn <[email protected]>2024-01-21 23:12:05 -0800
commitb11eb0562f8b4f4e3cdf46b975fcb0c5a8ed6b6e (patch)
tree3e9bd3fa2e36361378e43e43c4afd9ef435935fc /src/lib/Settings
parentfix(badges): handling of placeholder badges (diff)
downloaddue.moe-b11eb0562f8b4f4e3cdf46b975fcb0c5a8ed6b6e.tar.xz
due.moe-b11eb0562f8b4f4e3cdf46b975fcb0c5a8ed6b6e.zip
feat(locale): translate calculation settings fields
Diffstat (limited to 'src/lib/Settings')
-rw-r--r--src/lib/Settings/Categories/Calculation.svelte21
1 files changed, 10 insertions, 11 deletions
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>