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。
This commit is contained in:
happymy
2026-09-12 13:21:59 +08:00
parent be0f5b6046
commit 0caadd5a97
7 changed files with 144 additions and 48 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
import type { HandleClientError } from '@sveltejs/kit';
import { t } from '$lib/i18n.svelte';
export const handleError: HandleClientError = ({ error }) => {
console.error(error);
return {
message: 'Something went wrong.',
message: t('global.somethingWentWrong'),
};
};