fix: ♻️ use locale for error
https://calckey.social/notes/9fippqiwhl287b5m
This commit is contained in:
parent
8e5a374ac7
commit
b0a04faaba
@ -11,6 +11,7 @@ import MkToast from "@/components/MkToast.vue";
|
|||||||
import MkDialog from "@/components/MkDialog.vue";
|
import MkDialog from "@/components/MkDialog.vue";
|
||||||
import { MenuItem } from "@/types/menu";
|
import { MenuItem } from "@/types/menu";
|
||||||
import { $i } from "@/account";
|
import { $i } from "@/account";
|
||||||
|
import { i18n } from "./i18n";
|
||||||
|
|
||||||
export const pendingApiRequestsCount = ref(0);
|
export const pendingApiRequestsCount = ref(0);
|
||||||
|
|
||||||
@ -278,7 +279,7 @@ export function alert(props: {
|
|||||||
}): Promise<void> {
|
}): Promise<void> {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
if (props.text == null && props.type === "error") {
|
if (props.text == null && props.type === "error") {
|
||||||
props.text = "An unknown error occured!";
|
props.text = i18n.ts.somethingHappened;
|
||||||
}
|
}
|
||||||
popup(
|
popup(
|
||||||
MkDialog,
|
MkDialog,
|
||||||
|
Loading…
Reference in New Issue
Block a user