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

@@ -129,7 +129,7 @@ export const ContentSearchPopover = ({
activeKey={activeTab}
onChange={key => {
setActiveTab(key);
// 保证切换tab后光标仍然定位在编辑器上
// Make sure the cursor is still positioned on the editor after switching tabs
setTimeout(() => {
editorRef.current?.$view.focus();
}, 0);

View File

@@ -43,7 +43,7 @@ const getOptionInfoFromDOM = (
const optionElements = [...foundNodes];
// 找到当前高亮的选项
// Find the currently highlighted option
const selectedIndex = optionElements.findIndex(element =>
element.classList.contains(SELECTED_OPTION_CLASSNAME),
);

View File

@@ -65,7 +65,7 @@ export default function useVariablesTree({
const selected = useSelectedValue(completionContext?.text, variableTree);
// 基于用户选中项,替换所在 {{}} 中的内容
// Replace content in {{}} based on user selection
const handleSelect = useCallback(
(_: string, __: boolean, node: TreeNodeData) => {
if (!editor || !completionContext) {
@@ -101,7 +101,7 @@ export default function useVariablesTree({
treeRef,
);
// 上下键切换推荐项,回车填入
// Press the up and down keys to switch the recommended items, and press Enter to fill in.
useKeyboard(enableKeyboard, {
ArrowUp: prev,
ArrowDown: next,