chore: replace all cn comments of fe to en version by volc api (#320)

This commit is contained in:
tecvan
2025-07-31 10:32:15 +08:00
committed by GitHub
parent 716ec0cba8
commit 71f6245a01
2960 changed files with 15545 additions and 15545 deletions

View File

@@ -20,10 +20,10 @@ import { type PluginBizContext } from './types/biz-context';
import { BizPlugin } from './plugin';
export const getDebugCommonPluginRegistry = (props: PluginBizContext) => {
// eslint-disable-next-line @typescript-eslint/naming-convention -- 插件命名大写开头符合预期
// eslint-disable-next-line @typescript-eslint/naming-convention -- Plugin names start with uppercase as expected
const BizPluginRegistry: PluginRegistryEntry<PluginBizContext> = {
/**
* 贯穿插件生命周期、组件的上下文
* Context of components throughout the plug-in lifecycle
*/
createPluginBizContext() {
return {
@@ -31,7 +31,7 @@ export const getDebugCommonPluginRegistry = (props: PluginBizContext) => {
};
},
/**
* 插件本体
* plug-in ontology
*/
Plugin: BizPlugin,
};

View File

@@ -26,19 +26,19 @@ import { bizLifeCycleServiceGenerator } from './services/life-cycle';
export class BizPlugin extends WriteableChatAreaPlugin<PluginBizContext> {
/**
* 插件类型
* PluginMode.Readonly = 只读模式
* PluginMode.Writeable = 可写模式
* plugin type
* PluginMode. Readonly = read-only mode
* PluginMode. Writeable = Writable Mode
*/
public pluginMode = PluginMode.Writeable;
/**
* 插件名称
* 请点 PluginName 里面去定义
* plugin name
* Please click PluginName to define it.
*/
public pluginName = PluginName.DebugCommon;
/**
* 生命周期服务
* lifecycle services
*/
public lifeCycleServices = createWriteableLifeCycleServices(
this,

View File

@@ -88,7 +88,7 @@ export const messageLifeCycleServiceGenerator: WriteableMessageLifeCycleServiceG
reportReceiveEvent(message);
// 如果是创建定时任务的消息的话,需要刷新任务列表
// If it is a message to create a scheduled task, you need to refresh the task list.
if (isCreateTaskMessage(message)) {
refreshTaskList();
}

View File

@@ -74,7 +74,7 @@ export const sendTeaEventOnBeforeSendMessage = (params: {
message_id: message.extra_info.local_message_id,
bot_id: botId,
};
// 原本逻辑就只在这三个场景 sendTea
// The original logic is only in these three scenes sendTea
if (from === 'inputAndSend') {
sendTeaEvent(EVENT_NAMES.click_send_message, {
from: 'type',
@@ -179,7 +179,7 @@ export const updateAgentBeforeSendMessage: (
const regeneratedMessageBotState = getBotState(message.extra_info.bot_state);
// regenerate 消息时 把 currentAgentId 设置为对应 userMessage 的 agentId
// When regenerating the message, set the currentAgentId to the agentId corresponding to the userMessage.
const fixedAgentId =
currentAgentID === useManuallySwitchAgentStore.getState().agentId
? currentAgentID