From b11eb0562f8b4f4e3cdf46b975fcb0c5a8ed6b6e Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 21 Jan 2024 23:12:05 -0800 Subject: feat(locale): translate calculation settings fields --- src/lib/Locale/english.ts | 18 +++++++++++++++++- src/lib/Locale/japanese.ts | 18 +++++++++++++++++- src/lib/Locale/layout.ts | 16 ++++++++++++++++ src/lib/Settings/Categories/Calculation.svelte | 21 ++++++++++----------- 4 files changed, 60 insertions(+), 13 deletions(-) (limited to 'src/lib') 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 @@