aboutsummaryrefslogtreecommitdiff
path: root/src/lib/CommandPalette/authActions.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/CommandPalette/authActions.ts')
-rw-r--r--src/lib/CommandPalette/authActions.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/CommandPalette/authActions.ts b/src/lib/CommandPalette/authActions.ts
index c306eb34..9dbc9565 100644
--- a/src/lib/CommandPalette/authActions.ts
+++ b/src/lib/CommandPalette/authActions.ts
@@ -1,15 +1,19 @@
import { env } from "$env/dynamic/public";
import root from "$lib/Utility/root";
import localforage from "localforage";
+import locale from "$stores/locale";
+import { get } from "svelte/store";
import type { CommandPaletteAction } from "./actions";
export const authActions = (
user: string | undefined,
): CommandPaletteAction[] => {
+ const l = get(locale)();
+
if (user)
return [
{
- name: "Log Out",
+ name: l.commandPalette?.logOut ?? "Log Out",
url: "#",
preventDefault: true,
tags: ["auth", "sign", "out", "user"],
@@ -29,7 +33,7 @@ export const authActions = (
return [
{
- name: "Log In",
+ name: l.commandPalette?.logIn ?? "Log In",
url: loginUrl,
preventDefault: true,
tags: ["auth", "sign", "in", "anilist"],