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

@@ -21,21 +21,21 @@ import { concatTestId } from '../utils';
import { NODE_TEST_ID_PREFIX } from '../constants';
/**
* 仅限在 node 内使用
* Only used within the node
*/
type UseNodeTestId = () => {
/**
* 返回当前节点的 test-id也就是当前节点的 node id
* Returns the test-id of the current node, which is the node id of the current node.
* 'playground.11001
*/
getNodeTestId: () => string;
/**
* 返回当前 setter 的 test-id会自动带上节点的 test-id
* Returns the test-id of the current setter, which will automatically bring the test-id of the node.
* 'playground.11001.llm'
*/
getNodeSetterId: (setterName: string) => string;
/**
* 连接两个 test-id生成一个新的 test-id
* Connect two test-ids to generate a new test-id.
* ('a', 'b') => 'a.b'
*/
concatTestId: typeof concatTestId;
@@ -55,17 +55,17 @@ export const useNodeTestId: UseNodeTestId = () => {
return {
/**
* 返回当前节点的 test-id也就是当前节点的 node id
* Returns the test-id of the current node, which is the node id of the current node.
* 'playground.11001
*/
getNodeTestId,
/**
* 返回当前 setter 的 test-id会自动带上节点的 test-id
* Returns the test-id of the current setter, which will automatically bring the test-id of the node.
* 'playground.11001.llm'
*/
getNodeSetterId: setterName => concatTestId(getNodeTestId(), setterName),
/**
* 连接两个 test-id生成一个新的 test-id
* Connect two test-ids to generate a new test-id.
* ('a', 'b') => 'a.b'
*/
concatTestId,