aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-02-22 15:40:57 -0800
committerFuwn <[email protected]>2024-02-22 15:40:57 -0800
commit829a75aaa6f616b3e622467f1eff9c2e485f9254 (patch)
tree4c607564ccd159777a7e38b714adc7201e1b785c /src/lib
parentrefactor: ids to classes (diff)
downloaddue.moe-829a75aaa6f616b3e622467f1eff9c2e485f9254.tar.xz
due.moe-829a75aaa6f616b3e622467f1eff9c2e485f9254.zip
feat(locale): more settings localisations
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Locale/english.ts9
-rw-r--r--src/lib/Locale/japanese.ts9
-rw-r--r--src/lib/Locale/layout.ts9
-rw-r--r--src/lib/Settings/Categories/Display.svelte8
4 files changed, 28 insertions, 7 deletions
diff --git a/src/lib/Locale/english.ts b/src/lib/Locale/english.ts
index a5057230..d994475f 100644
--- a/src/lib/Locale/english.ts
+++ b/src/lib/Locale/english.ts
@@ -40,7 +40,10 @@ const English: Locale = {
media: {
title: 'Media',
fields: {
- outboundLinks: 'Outbound links',
+ outboundLinks: {
+ title: 'Outbound links',
+ hint: 'If LiveChart.me or AnimeSchedule is chosen, manga links will default to AniList.'
+ },
mediaTitleFormat: {
title: 'Media title format',
options: {
@@ -51,6 +54,10 @@ const English: Locale = {
fields: {
showFurigana: 'Show furigana'
}
+ },
+ sortBy: {
+ title: 'Sort anime by difference between last watched and next episode',
+ hint: 'By default, anime are sorted by the number of days left until the next episode airs.'
}
}
},
diff --git a/src/lib/Locale/japanese.ts b/src/lib/Locale/japanese.ts
index 24e826fe..6004ce4e 100644
--- a/src/lib/Locale/japanese.ts
+++ b/src/lib/Locale/japanese.ts
@@ -51,7 +51,10 @@ const Japanese: Locale = {
media: {
title: 'メディア',
fields: {
- outboundLinks: '外部リンク',
+ outboundLinks: {
+ title: '外部リンク',
+ hint: 'LiveChart.meまたはAnimeScheduleが選択された場合、漫画リンクはデフォルトでAniListになります。'
+ },
mediaTitleFormat: {
title: 'メディアタイトル形式',
options: {
@@ -62,6 +65,10 @@ const Japanese: Locale = {
fields: {
showFurigana: 'フリガナを表示する'
}
+ },
+ sortBy: {
+ title: '最後に視聴したエピソードと次のエピソードの差によってアニメをソートする',
+ hint: 'デフォルトでは、アニメは次のエピソードが放送されるまでの日数でソートされます。'
}
}
},
diff --git a/src/lib/Locale/layout.ts b/src/lib/Locale/layout.ts
index d40842fd..2064ed00 100644
--- a/src/lib/Locale/layout.ts
+++ b/src/lib/Locale/layout.ts
@@ -42,7 +42,10 @@ export interface Locale {
media: {
title: LocaleValue;
fields: {
- outboundLinks: LocaleValue;
+ outboundLinks: {
+ title: LocaleValue;
+ hint: LocaleValue;
+ };
mediaTitleFormat: {
title: LocaleValue;
options: {
@@ -54,6 +57,10 @@ export interface Locale {
showFurigana: LocaleValue;
};
};
+ sortBy: {
+ title: LocaleValue;
+ hint: LocaleValue;
+ };
};
};
dateAndTime: {
diff --git a/src/lib/Settings/Categories/Display.svelte b/src/lib/Settings/Categories/Display.svelte
index ba07057e..bad05341 100644
--- a/src/lib/Settings/Categories/Display.svelte
+++ b/src/lib/Settings/Categories/Display.svelte
@@ -277,9 +277,9 @@
<option value="animeschedule">AnimeSchedule</option>
<option value="myanimelist">MyAnimeList</option>
</select>
-{$locale().settings.display.categories.media.fields.outboundLinks}
+{$locale().settings.display.categories.media.fields.outboundLinks.title}
<SettingHint lineBreak>
- If LiveChart.me or AnimeSchedule is chosen, manga links will default to AniList.
+ {$locale().settings.display.categories.media.fields.outboundLinks.hint}
</SettingHint><br />
<!-- <SettingCheckboxToggle setting="displayHoverNavigation" text="Use hovering navigation bar">
@@ -293,10 +293,10 @@
<SettingCheckboxToggle
setting="displaySortedByDifference"
- text="Sort anime by difference between last watched and next episode"
+ text={$locale().settings.display.categories.media.fields.sortBy.title}
>
<SettingHint lineBreak>
- By default, anime are sorted by the number of days left until the next episode airs.
+ {$locale().settings.display.categories.media.fields.sortBy.hint}
</SettingHint>
</SettingCheckboxToggle>