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

@@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable @coze-arch/max-line-per-function -- 迁移代码 */
/* eslint-disable @typescript-eslint/no-explicit-any -- 迁移代码 */
/* eslint-disable max-lines -- 迁移代码 */
/* eslint-disable max-lines-per-function -- 迁移代码 */
/* eslint-disable @coze-arch/max-line-per-function -- migrating code */
/* eslint-disable @typescript-eslint/no-explicit-any -- migrate code */
/* eslint-disable max-lines -- migrate code */
/* eslint-disable max-lines-per-function -- migrating code */
import {
useState,
@@ -171,7 +171,7 @@ const MockSetSelectComp = (
const bizCtx: BizCtx = {
...bizSceneCtx,
connectorUID: uid,
connectorID: CONNECTOR_ID, // 业务线为Coze
connectorID: CONNECTOR_ID, // Business line for Coze
};
const { jump } = usePageJumpService();
@@ -457,7 +457,7 @@ const MockSetSelectComp = (
content={getTooltipInfo()}
visible={disabled && focused}
position="left"
style={{ display: disabled ? 'block' : 'none' }} // visible disabled不生效
style={{ display: disabled ? 'block' : 'none' }} // Visible disabled not effective
>
<div
style={style}

View File

@@ -72,7 +72,7 @@ export const MockSetDeleteModal = ({
} = mockSetInfo || {};
const [mockSetRefCount, setMockSetRefCount] = useState(-1);
// space信息
// Space information
const spaceType = useSpaceStore(s => s.space.space_type);
const isPersonal = spaceType === SpaceType.Personal;

View File

@@ -13,8 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable @coze-arch/max-line-per-function -- 迁移代码 */
/* eslint-disable @coze-arch/max-line-per-function -- migrating code */
import { useRef } from 'react';
import { I18n } from '@coze-arch/i18n';
@@ -87,10 +87,10 @@ export const MockSetEditModal = ({
const [FLAGS] = useFlags();
// 根据是否传入 id 判断是否为创建场景
// Determine whether to create a scene based on whether to pass in the id
const isCreate = !initialInfo.id;
// space信息
// Space information
const spaceType = useSpaceStore(s => s.space.space_type);
const isPersonal = spaceType === SpaceType.Personal;
@@ -216,7 +216,7 @@ export const MockSetEditModal = ({
>
{({ formState }) => (
<>
{/* mockSet名称 */}
{/* mockSet name */}
{disabled ? (
<Form.Slot
label={{
@@ -244,7 +244,7 @@ export const MockSetEditModal = ({
rules={mockSetInfoRules.name}
/>
)}
{/* mockSet描述 */}
{/* mockSet description */}
{disabled ? (
<Form.Slot
label={{
@@ -273,8 +273,8 @@ export const MockSetEditModal = ({
}}
/>
)}
{/* 二期支持autoGenerate*/}
{/* 社区版暂不支持该功能 */}
{/* Phase II supports autoGenerate*/}
{/* The community edition does not support this function for the time being */}
{isCreate && FLAGS['bot.devops.mockset_auto_generate'] ? (
<>
<Form.Checkbox

View File

@@ -24,7 +24,7 @@ export const REAL_DATA_MOCKSET = {
name: I18n.t('real_data'),
};
// 初始化仅有real_data
// Initialization only real_data
export const MOCK_OPTION_LIST = [REAL_DATA_MOCKSET];
export const POLLING_INTERVAL = 10000;
@@ -48,7 +48,7 @@ export const mockSetInfoRules: {
message: I18n.t('create_plugin_modal_nameerror'),
}
: {
pattern: /^[\w\s\u4e00-\u9fa5]+$/u, //
pattern: /^[\w\s\u4e00-\u9fa5]+$/u, // Increased domestic support for Chinese
message: I18n.t('create_plugin_modal_nameerror_cn'),
},
],

View File

@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable max-lines-per-function -- 代码迁移 */
/* eslint-disable @coze-arch/max-line-per-function -- 代码迁移 */
/* eslint-disable max-lines-per-function -- code migration */
/* eslint-disable @coze-arch/max-line-per-function -- code migration */
import { useEffect, useRef } from 'react';
import { nanoid } from 'nanoid';
@@ -149,7 +149,7 @@ export const useInitialGetEnabledMockSet = ({
}
};
// 取消
// cancel
const cancel = () => {
pollingTurnRef.current = undefined;
cancelReq.current?.();