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

@@ -25,12 +25,12 @@ import { InterruptMessageContent } from './interrupt-message-content';
import styles from './index.module.less';
export const InterruptMessageBox: CustomComponent['MessageBox'] = props => {
// 用户操作后文案,前端维护暂时状态,刷新消失
// Copywriting after user operation, front-end maintenance temporary state, refresh and disappear
const [actionText, setActionText] = useState('');
const { message, meta } = props;
// 不展示逻辑: 为历史消息、无action且不在最后一个group
// Do not show logic: chat history, no action and not in the last group
if (message._fromHistory || (!actionText && !meta.isFromLatestGroup)) {
return null;
}

View File

@@ -38,7 +38,7 @@ export const InterruptMessageContent: React.FC<{
const { sendResumeMessage, stopResponding } =
plugin.chatAreaPluginContext?.writeableAPI.message ?? {};
// 获取中断场景、续聊id
// Get interrupt scene, continue chat id
const toolCall =
interruptMessage.required_action?.submit_tool_outputs?.tool_calls?.[0];

View File

@@ -24,12 +24,12 @@ interface GetPositionProps {
}
export const useGetPosition = ({ getPositionSuccess }: GetPositionProps) => {
// 位置授权按钮loading
// Position authorization button loading state
const [loading, setLoading] = useState(false);
const getSysPosition = () => {
setLoading(true);
/** 获取系统地理位置信息 */
/** Acquire system location information */
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(
position => {