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

@@ -36,7 +36,7 @@ export const workflowActions = [
hint: '复制到资源库',
},
{
// 切换为 chatflow
// Switch to chatflow
key: ProjectResourceActionKey.SwitchToChatflow,
enable: true,
},

View File

@@ -50,7 +50,7 @@ export const useChangeFlowMode = () => {
const uri = getURIByResource('workflow', workflowId);
const widgetContext = view.getWidgetContextFromURI(uri);
const widgetOpened = Boolean(widgetContext?.widget);
// 已经打开的 widget,加 refresh 参数刷新,未打开的直接打开会刷新
// For widgets that have been opened, add the refresh parameter to refresh. If they are not opened, they will be refreshed if they are opened directly.
navigate(`/workflow/${workflowId}${widgetOpened ? '?refresh=true' : ''}`);
};
};

View File

@@ -34,7 +34,7 @@ export const useNameValidators = ({
return [
{
validator(_, value) {
// 过滤掉当前资源
// Filter out current resources
const otherResource = currentResourceRef?.current
? workflowResource.filter(
r => r.res_id !== currentResourceRef?.current?.res_id,

View File

@@ -24,8 +24,8 @@ import {
} from '@coze-project-ide/framework';
/**
* 注入到 workflow 内 project api 的能力。
* 注:非响应式
* The ability to inject project APIs into workflow.
* Note: non-responsive
*/
export const useProjectApi = () => {
const { sendOpen } = useSendMessageEvent();

View File

@@ -233,7 +233,7 @@ export const useWorkflowResource = (): UseWorkflowResourceReturn => {
subType: WorkflowMode.Workflow,
tooltip: <WorkflowTooltip flowMode={WorkflowMode.Workflow} />,
},
// 开源版本暂不支持对话流
// The open-source version does not currently support conversation streaming
IS_OPEN_SOURCE
? null
: {