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

@@ -56,7 +56,7 @@ export const ConditionItemField = withField(
useCleanupRightValueOnOperatorChange();
// 属于、不属于操作符情况下,右值的类型是左值的数组类型
// In the case of belonging to or not belonging to the operator, the type of the rvalue is the array type of the lvalue
const rightFieldDataType = useMemo(
() =>
['IN', 'NOT_IN'].includes(operator || '')

View File

@@ -24,7 +24,7 @@ export function useResetCondition(conditionFieldName: string) {
const { data: currentDatabase } = useCurrentDatabaseQuery();
return () => {
// 当前有选中的数据库 需要有一个空条件
// There is currently a selected database, and an empty condition is required.
if (currentDatabase) {
form.setFieldValue(conditionFieldName, {
conditionList: [

View File

@@ -39,7 +39,7 @@ export const createConditionValidator = (conditionFieldPath: string) => ({
ValueExpressionService,
);
// 如果是不需要右值就跳过校验
// If no rvalue is required, skip the verification
if (
databaseNodeService.checkConditionOperatorNoNeedRight(condition?.operator)
) {
@@ -50,7 +50,7 @@ export const createConditionValidator = (conditionFieldPath: string) => ({
return I18n.t('workflow_detail_node_error_empty');
}
// 检验引用变量被删除的情况
// Check if the reference variable is deleted
if (
valueExpressionService.isRefExpression(value) &&
!valueExpressionService.isRefExpressionVariableExists(value, context.node)

View File

@@ -25,7 +25,7 @@ export function createSelectAndSetFieldsValidator() {
ValueExpressionService,
);
// 检查引用变量是否被删除
// Check if the reference variable has been deleted
if (
valueExpressionService.isRefExpression(value) &&
!valueExpressionService.isRefExpressionVariableExists(

View File

@@ -31,13 +31,13 @@ import FormRender from './form';
import { transformOnInit, transformOnSubmit } from './data-transformer';
export const DATABASE_NODE_FORM_META: WorkflowNodeRegistry['formMeta'] = {
// 节点表单渲染
// Node form rendering
render: () => <FormRender />,
// 验证触发时机
// verification trigger timing
validateTrigger: ValidateTrigger.onChange,
// 验证规则
// validation rules
validate: {
nodeMeta: nodeMetaValidate,
'inputParameters.*.name': createNodeInputNameValidate({
@@ -56,21 +56,21 @@ export const DATABASE_NODE_FORM_META: WorkflowNodeRegistry['formMeta'] = {
},
},
// 默认值
// default value
defaultValues: {
inputParameters: [{ name: 'input' }],
databaseInfoList: [],
outputs: getOutputsDefaultValue(),
},
// 副作用
// side effect
effect: {
outputs: provideNodeOutputVariablesEffect,
},
// 初始化数据转换
// Initialize data conversion
formatOnInit: transformOnInit,
// 提交数据转换
// commit data conversion
formatOnSubmit: transformOnSubmit,
};

View File

@@ -16,7 +16,7 @@
import { useQueryFieldIDs } from './use-query-field-ids';
// 当前如果查询字段为空 则排序字段不显示
// Currently, if the query field is empty, the sorting field is not displayed
export function useOrderByVisible() {
const queryFieldIDs = useQueryFieldIDs();

View File

@@ -21,7 +21,7 @@ import { useFieldArray } from '@/form';
import { useQueryFieldIDs } from './use-query-field-ids';
import { type OrderByFieldSchema } from './types';
// 监听查询字段 当查询字段发生变化时 检查排序字段是否存在于查询字段中 不存在则移除
// Listen to the query field. When the query field changes, check whether the sorting field exists in the query field. If it does not exist, remove it.
export const useValidateOrderFields = () => {
const { value, onChange } = useFieldArray<OrderByFieldSchema>();
const queryFieldIDs = useQueryFieldIDs();

View File

@@ -29,7 +29,7 @@ export function QueryFieldsColumnTitles() {
},
},
// {
// label: I18n.t('workflow_query_fields_remove_duplicates', {}, '去重'),
// Label: I18n.t ('workflow_query_fields_remove_duplicates ', {}, ' deduplicate'),
// },
]}
/>