2022-07-12 08:55:28 +00:00
|
|
|
import { RouteRecordRaw } from "vue-router";
|
2021-10-10 14:24:12 +00:00
|
|
|
import { i18n } from "@/utils/i18n";
|
2019-04-01 09:49:54 +00:00
|
|
|
|
2022-07-12 08:55:28 +00:00
|
|
|
const { t } = i18n.global.t;
|
|
|
|
|
2019-04-01 09:49:54 +00:00
|
|
|
export enum ErrorRouteName {
|
2020-02-18 07:57:00 +00:00
|
|
|
ERROR = "Error",
|
2019-04-01 09:49:54 +00:00
|
|
|
}
|
|
|
|
|
2022-07-12 08:55:28 +00:00
|
|
|
export const errorRoutes: RouteRecordRaw[] = [
|
2019-04-01 09:49:54 +00:00
|
|
|
{
|
2020-02-18 07:57:00 +00:00
|
|
|
path: "/error",
|
2019-04-01 09:49:54 +00:00
|
|
|
name: ErrorRouteName.ERROR,
|
2022-07-12 08:55:28 +00:00
|
|
|
component: (): Promise<any> => import("../views/ErrorView.vue"),
|
2021-10-10 14:24:12 +00:00
|
|
|
meta: {
|
2022-07-12 08:55:28 +00:00
|
|
|
announcer: { message: (): string => t("Error") },
|
2021-10-10 14:24:12 +00:00
|
|
|
},
|
2019-04-01 09:49:54 +00:00
|
|
|
},
|
|
|
|
];
|