chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -36,7 +36,7 @@ export const workflowActions = [
|
||||
hint: '复制到资源库',
|
||||
},
|
||||
{
|
||||
// 切换为 chatflow
|
||||
// Switch to chatflow
|
||||
key: ProjectResourceActionKey.SwitchToChatflow,
|
||||
enable: true,
|
||||
},
|
||||
|
||||
@@ -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' : ''}`);
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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
|
||||
: {
|
||||
|
||||
Reference in New Issue
Block a user