chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -135,7 +135,7 @@ export const GuideModal: React.FC<GuideModalProps> = ({
|
||||
...modalProps
|
||||
}) => (
|
||||
<Modal
|
||||
// 清除 modal 自带边距 由内部 padding 撑开 展示按钮阴影
|
||||
// Clear the modal's own margins, propped up by the internal padding, and show the button shadow
|
||||
className={styles['guide-modal']}
|
||||
size="xl"
|
||||
title={I18n.t('create_title')}
|
||||
|
||||
@@ -86,7 +86,7 @@ export const ProjectFormModal: React.FC<BizProjectFormModalProps> = ({
|
||||
const auditData = await request(formApi.current.getValues());
|
||||
setAuditResult(auditData);
|
||||
|
||||
// 没有通过校验就不关闭弹窗
|
||||
// Do not close the pop-up window without passing the verification
|
||||
if (auditData.check_not_pass) {
|
||||
return;
|
||||
}
|
||||
@@ -125,7 +125,7 @@ export const ProjectFormModal: React.FC<BizProjectFormModalProps> = ({
|
||||
{auditResult.check_not_pass ? (
|
||||
<div className="coz-fg-hglt-red mt-[-8px]">
|
||||
<ReactMarkdown skipHtml={true} linkTarget="_blank">
|
||||
{/* 注意使用 || msg undefined 或者空字符串都走兜底 */}
|
||||
{/* Note that using | | msg undefined or empty string goes to the bottom */}
|
||||
{auditResult.check_not_pass_msg || I18n.t('publish_audit_pop7')}
|
||||
</ReactMarkdown>
|
||||
</div>
|
||||
|
||||
@@ -61,11 +61,11 @@ export interface ProjectTemplateBaseProps {
|
||||
}
|
||||
|
||||
/**
|
||||
* 需要特别处理、放到「基础」类别中的模版
|
||||
* 本身业务中没有「基础」这个类别,但是在这个通过复制创建的场景下 pm 希望为用户提供一些具有基本功能有代表性的模版
|
||||
* 所以这个特殊处理的模版应运而生
|
||||
* Templates that require special handling and are placed in the "Basic" category
|
||||
* There is no "foundation" category in the business itself, but in this scenario created by replication, pm wants to provide users with some representative templates with basic functions
|
||||
* And so this special treatment template came into being.
|
||||
*
|
||||
* 迭代时需要注意,业务上需要保证这些模版都是被 recommend 才能复用 PublicGetProductList 这个接口
|
||||
* When iterating, it is necessary to ensure that these templates are recommended in order to reuse PublicGetProductList this interface
|
||||
*/
|
||||
const BASE_TEMPLATE_ID_LIST = ['7439261984903938074'];
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ import { Button, Image } from '@coze-arch/coze-design';
|
||||
import styles from './card.module.less';
|
||||
|
||||
export interface ProjectTemplateCardContentProps {
|
||||
/** 埋点参数 页面来源 */
|
||||
/** Event tracking parameters, page source */
|
||||
viewSource: ParamsTypeDefine[EVENT_NAMES.template_action_front]['source'];
|
||||
product: ProductInfo;
|
||||
onCopyTemplate?: (param: { name: string; id: string }) => void;
|
||||
|
||||
Reference in New Issue
Block a user