chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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),
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user