From b33577bf432a9913755af88e0ba84e131a3d1aec Mon Sep 17 00:00:00 2001 From: Carter Mintey Date: Sun, 1 Dec 2024 18:07:00 -0600 Subject: [PATCH] fix translation keys --- src/routes/+error.svelte | 2 +- src/routes/wishlists/[username]/events/+server.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/+error.svelte b/src/routes/+error.svelte index 34eb740..c0ab7c3 100644 --- a/src/routes/+error.svelte +++ b/src/routes/+error.svelte @@ -13,7 +13,7 @@ const errors: Record = { 401: { image: unauthorizedAsset, - message: $t("errors.unauthorized") + message: $t("errors.not-authorized") }, 404: { image: notFoundAsset, diff --git a/src/routes/wishlists/[username]/events/+server.ts b/src/routes/wishlists/[username]/events/+server.ts index 0359208..36ed7d9 100644 --- a/src/routes/wishlists/[username]/events/+server.ts +++ b/src/routes/wishlists/[username]/events/+server.ts @@ -11,7 +11,7 @@ import { getFormatter } from "$lib/i18n"; export const GET = (async ({ locals, params }) => { const $t = await getFormatter(); if (!locals.user) { - error(401, $t("errors.unauthorized")); + error(401, $t("errors.not-authorized")); } const [wishlistUser, activeGroup] = await Promise.all([