mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 18:07:31 -07:00
fix: ♻️ use locale for error
https://calckey.social/notes/9fippqiwhl287b5m
This commit is contained in:
parent
198b87820d
commit
3f45ec30ab
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue