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,