From b0a04faaba3e9af6b98da26f04d5b42d805b76df Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 2 Jun 2023 15:45:05 -0700 Subject: [PATCH] fix: :recycle: use locale for error https://calckey.social/notes/9fippqiwhl287b5m --- packages/client/src/os.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/client/src/os.ts b/packages/client/src/os.ts index 6831d72fae..ed911978b4 100644 --- a/packages/client/src/os.ts +++ b/packages/client/src/os.ts @@ -11,6 +11,7 @@ import MkToast from "@/components/MkToast.vue"; import MkDialog from "@/components/MkDialog.vue"; import { MenuItem } from "@/types/menu"; import { $i } from "@/account"; +import { i18n } from "./i18n"; export const pendingApiRequestsCount = ref(0); @@ -278,7 +279,7 @@ export function alert(props: { }): Promise { return new Promise((resolve, reject) => { if (props.text == null && props.type === "error") { - props.text = "An unknown error occured!"; + props.text = i18n.ts.somethingHappened; } popup( MkDialog,