chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -191,7 +191,7 @@ const usePluginResource = (): UsePluginResourceReturn => {
|
||||
}
|
||||
};
|
||||
const validateNameBasic: Validator = ({ label }) => {
|
||||
// 检测 name 是否空
|
||||
// Check if name is empty
|
||||
if (!label) {
|
||||
return I18n.t('create_plugin_modal_name1_error');
|
||||
}
|
||||
@@ -200,7 +200,7 @@ const usePluginResource = (): UsePluginResourceReturn => {
|
||||
return I18n.t('project_resource_sidebar_warning_length_exceeds');
|
||||
}
|
||||
|
||||
// 检测 name 的命名规则,国内增加支持中文
|
||||
// Detect the naming rules for names, and add support for Chinese in China
|
||||
if (IS_OVERSEA || IS_BOE) {
|
||||
if (!/^[\w\s]+$/.test(label)) {
|
||||
return I18n.t('create_plugin_modal_nameerror');
|
||||
|
||||
@@ -55,7 +55,7 @@ interface PluginProviderContentProps extends MainProps {
|
||||
version: string;
|
||||
}
|
||||
|
||||
// 新增的 PluginProviderContent 组件
|
||||
// Added PluginProviderContent Components
|
||||
const PluginProviderContent: React.FC<PluginProviderContentProps> = ({
|
||||
pluginID,
|
||||
spaceID,
|
||||
@@ -153,9 +153,9 @@ const Main: React.FC<MainProps> = props => {
|
||||
projectID={projectID}
|
||||
version={version}
|
||||
onUpdateDisplayName={displayName => {
|
||||
widget.setTitle(displayName); // 设置 tab 标题
|
||||
widget.setTitle(displayName); // Set tab title
|
||||
if (displayName && displayName !== title) {
|
||||
refetch(); // 更新侧边栏 name
|
||||
refetch(); // Update sidebar name
|
||||
}
|
||||
}}
|
||||
onStatusChange={status => {
|
||||
|
||||
Reference in New Issue
Block a user