fix: ♻️ use locale for error

https://calckey.social/notes/9fippqiwhl287b5m
This commit is contained in:
ThatOneCalculator 2023-06-02 15:45:05 -07:00
parent 8e5a374ac7
commit b0a04faaba
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
1 changed files with 2 additions and 1 deletions

View File

@ -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<void> {
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,