Files
aigc-home/calliope-web/src/hooks.client.ts
T
happymy 0caadd5a97 i18n: 补齐设置导航与画布/项目页缺失的中文文案
SettingsNav 7 个 tab 的 nav.* key(label/blurb)补齐中英文案;画布页 canvas/[id] 所有硬编码英文(toast、确认框、按钮 title、空态/错误提示)改为 t() 动态键;项目页 project/[id] 错误态、视频工作台按钮、队列状态接入 i18n;agents 页自动会话标题改用 t()(agent.task.*),移除静态 AGENT_TASK_TITLES;hooks.client.ts 全局兜底错误消息接入 i18n。en/zh 各 983 keys 键集完全对齐,svelte-check 0 errors。
2026-09-12 13:21:59 +08:00

10 lines
241 B
TypeScript

import type { HandleClientError } from '@sveltejs/kit';
import { t } from '$lib/i18n.svelte';
export const handleError: HandleClientError = ({ error }) => {
console.error(error);
return {
message: t('global.somethingWentWrong'),
};
};