aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Tools/tools.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-01-31 08:09:40 -0800
committerFuwn <[email protected]>2024-01-31 08:09:40 -0800
commita1a9bd7e08397e7a98a33a249024b6a2e7e08b36 (patch)
treefe19095cf84b02a346c81e68ddadaa17b952df92 /src/lib/Tools/tools.ts
parentfeat(hovercover): half animation time (diff)
downloaddue.moe-a1a9bd7e08397e7a98a33a249024b6a2e7e08b36.tar.xz
due.moe-a1a9bd7e08397e7a98a33a249024b6a2e7e08b36.zip
feat(locale): localise birthdays
Diffstat (limited to 'src/lib/Tools/tools.ts')
-rw-r--r--src/lib/Tools/tools.ts31
1 files changed, 21 insertions, 10 deletions
diff --git a/src/lib/Tools/tools.ts b/src/lib/Tools/tools.ts
index 96aaeb47..2191243e 100644
--- a/src/lib/Tools/tools.ts
+++ b/src/lib/Tools/tools.ts
@@ -1,48 +1,59 @@
-export const tools: { [key: string]: { name: string; description?: string; id: string } } = {
+import locale from '$stores/locale';
+import { get } from 'svelte/store';
+
+export const tools: {
+ [key: string]: {
+ name: () => string;
+ description?: string;
+ id: string;
+ };
+} = {
default: {
- name: 'Tools',
+ name: () => 'Tools',
description: 'A collection of tools to help you get the most out of AniList.',
id: 'default'
},
wrapped: {
- name: 'AniList Wrapped & Statistics Panel',
+ name: () => 'AniList Wrapped & Statistics Panel',
description:
'Instantly generate an AniList themed Wrapped for your profile, doubling as a statistics panel for your bio',
id: 'wrapped'
},
birthdays: {
- name: "Today's Character Birthdays",
+ name: () => {
+ return get(locale)().tools.tool.characterBirthdays.long;
+ },
description:
'Find and display the birthdays of all characters for today, or any other day of the year',
id: 'birthdays'
},
sequel_spy: {
- name: 'Sequel Spy (Missing Prequel Finder)',
+ name: () => 'Sequel Spy (Missing Prequel Finder)',
description: "Find media with prequels you haven't seen yet for any given simulcast season",
id: 'sequel_spy'
},
discussions: {
- name: 'Episode Discussion Collector',
+ name: () => 'Episode Discussion Collector',
description: 'Find and display all episode discussions for a given user',
id: 'discussions'
},
random_follower: {
- name: 'Random Follower Finder',
+ name: () => 'Random Follower Finder',
description: 'Find a random follower of any given user',
id: 'random_follower'
},
likes: {
- name: 'Likes',
+ name: () => 'Likes',
description: 'Get All Likes of an Activity or Forum Thread',
id: 'likes'
},
dump_profile: {
- name: 'Dump Profile',
+ name: () => 'Dump Profile',
description: "Dump a user's profile to JSON",
id: 'dump_profile'
},
activity_history: {
- name: 'Activity History Analyser',
+ name: () => 'Activity History Analyser',
id: 'activity_history'
}
};