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:
@@ -17,10 +17,10 @@ export const AGENT_TASK_PROMPTS: Record<AgentTaskKind, string> = {
|
||||
'Regenerate the full script for this project — turn the storyline into ordered scenes with action and dialogue.',
|
||||
};
|
||||
|
||||
/** A sidebar-friendly title for the auto-created session. */
|
||||
export const AGENT_TASK_TITLES: Record<AgentTaskKind, string> = {
|
||||
story: 'Draft Storyline',
|
||||
script: 'Regenerate Script',
|
||||
/** i18n key for the auto-created session's sidebar title. */
|
||||
export const AGENT_TASK_TITLE_KEYS: Record<AgentTaskKind, string> = {
|
||||
story: 'agent.task.story',
|
||||
script: 'agent.task.script',
|
||||
};
|
||||
|
||||
export function isAgentTaskKind(value: string | null | undefined): value is AgentTaskKind {
|
||||
|
||||
Reference in New Issue
Block a user