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

@@ -42,7 +42,7 @@ export function useAvailableWorkflowVariables(): WorkflowVariable[] {
return scope.available.variables
.map(_variable => {
// 第一层为变量,因此需要分层处理
// The first layer is a variable, so it requires hierarchical processing
if (_variable.type.kind === ASTKind.Object) {
return ((_variable.type as ObjectType)?.properties || []).map(
_property => facadeService.getVariableFacadeByField(_property),

View File

@@ -25,7 +25,7 @@ import {
} from '../services/global-variable-service';
interface Params {
// 是否监听变量加载完成事件(变量下钻可能发生变化)
// Whether to listen for variable load completion events (variable drill-down may change)
listenVariableLoaded?: boolean;
}

View File

@@ -29,8 +29,8 @@ interface HooksParams {
}
/**
* @deprecated 变量销毁存在部分 Bad Case
* - 全局变量因切换 Project 销毁后,变量引用会被置空,导致变量引用失效
* @Deprecated Variable Destruction Partial Bad Case
* - After the global variable is destroyed due to the switch Project, the variable reference will be set empty, resulting in the invalidation of the variable reference
*/
export function useVariableDispose(params: HooksParams) {
const { keyPath, onDispose } = params;

View File

@@ -71,7 +71,7 @@ export function useVariableTypeChange(params: HooksParams) {
toDispose.push(
variable.onRename(({ modifyIndex, modifyKey }) => {
if (keyPathRef.current) {
// 更改 keyPath 并刷新,重新监听变量变化
// Change keyPath and refresh, re-listen for variable changes
keyPathRef.current[modifyIndex] = modifyKey;
}
refresh();