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 198b87820d
commit 3f45ec30ab

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,