diff options
| author | Fuwn <[email protected]> | 2024-01-21 01:10:02 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-21 01:10:02 -0800 |
| commit | 56425d179c6162f0c1d4b6ba0af598f8038c267a (patch) | |
| tree | 3d0119d36b0c5c432a5c73fb59477f5dd8386e97 /src | |
| parent | fix(japanese): small simplifications and clearing (diff) | |
| download | due.moe-56425d179c6162f0c1d4b6ba0af598f8038c267a.tar.xz due.moe-56425d179c6162f0c1d4b6ba0af598f8038c267a.zip | |
feat(locale): finish date & time category localisation
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/Locale/english.ts | 4 | ||||
| -rw-r--r-- | src/lib/Locale/japanese.ts | 5 | ||||
| -rw-r--r-- | src/lib/Locale/layout.ts | 2 | ||||
| -rw-r--r-- | src/lib/Settings/Categories/Display.svelte | 4 |
4 files changed, 11 insertions, 4 deletions
diff --git a/src/lib/Locale/english.ts b/src/lib/Locale/english.ts index d3946ec1..99190912 100644 --- a/src/lib/Locale/english.ts +++ b/src/lib/Locale/english.ts @@ -50,7 +50,9 @@ const English: Locale = { fields: { disableLastActivityWarning: 'Disable last activity warning', rightAlignCountdown: 'Align anime episode countdown to the right', - use24HourTime: 'Use 24-hour time format for episode countdown' + use24HourTime: 'Use 24-hour time format for episode countdown', + nativeEpisodeCountdown: 'Show episode countdown in native release date & time', + abbreviateCountdown: 'Abbreviate episode countdown date & time units' } }, motionAndAccessibility: { diff --git a/src/lib/Locale/japanese.ts b/src/lib/Locale/japanese.ts index 05ae3a3b..5ef7cc45 100644 --- a/src/lib/Locale/japanese.ts +++ b/src/lib/Locale/japanese.ts @@ -33,7 +33,10 @@ const Japanese: Locale = { fields: { disableLastActivityWarning: '最後のアクティビティ警告を無効にする', rightAlignCountdown: 'エピソードカウントダウンを右に揃える', - use24HourTime: 'エピソードカウントダウンに24時間形式を使用する' + use24HourTime: 'エピソードカウントダウンに24時間形式を使用する', + nativeEpisodeCountdown: + 'ネイティブのリリース日時でエピソードのカウントダウンを表示する', + abbreviateCountdown: 'エピソードカウントダウンの日時単位を省略する' } }, media: { diff --git a/src/lib/Locale/layout.ts b/src/lib/Locale/layout.ts index 41438691..05e36daf 100644 --- a/src/lib/Locale/layout.ts +++ b/src/lib/Locale/layout.ts @@ -55,6 +55,8 @@ export interface Locale { disableLastActivityWarning: LocaleValue; rightAlignCountdown: LocaleValue; use24HourTime: LocaleValue; + nativeEpisodeCountdown: LocaleValue; + abbreviateCountdown: LocaleValue; }; }; motionAndAccessibility: { diff --git a/src/lib/Settings/Categories/Display.svelte b/src/lib/Settings/Categories/Display.svelte index 64778580..f4bc6f79 100644 --- a/src/lib/Settings/Categories/Display.svelte +++ b/src/lib/Settings/Categories/Display.svelte @@ -134,11 +134,11 @@ /> <SettingCheckboxToggle setting="displayNativeCountdown" - text="Use native release date for episode countdown" + text={$_('settings.display.categories.dateAndTime.fields.nativeEpisodeCountdown')} /> <SettingCheckboxToggle setting="displayShortCountdown" - text="Shorten countdown to first character of unit" + text={$_('settings.display.categories.dateAndTime.fields.abbreviateCountdown')} /> <p /> |