diff --git a/packages/gi-site/src/components/Navbar/Language.tsx b/packages/gi-site/src/components/Navbar/Language.tsx index f5b64315f..859427d0c 100644 --- a/packages/gi-site/src/components/Navbar/Language.tsx +++ b/packages/gi-site/src/components/Navbar/Language.tsx @@ -11,7 +11,7 @@ interface LanguageProps {} const options = [ { value: LANGUAGE_KEY_NAME.ZhCN, - label: '中', + label: $i18n.get({ id: 'gi-site.components.Navbar.Language.Medium', dm: '中' }), }, { value: LANGUAGE_KEY_NAME.EnUs, diff --git a/packages/gi-site/src/i18n/strings/en-US.json b/packages/gi-site/src/i18n/strings/en-US.json index 37de5d3e9..2c99a1612 100644 --- a/packages/gi-site/src/i18n/strings/en-US.json +++ b/packages/gi-site/src/i18n/strings/en-US.json @@ -716,5 +716,7 @@ "gi-site.src.services.user.AvailableVipAssets": "Available VIP assets", "gi-site.src.services.user.DetectedAvailableVipAssetsWhether": "Detected available VIP assets, whether to log in to obtain", "gi-site.components.Navbar.Preview.Preview": "Preview", - "gi-site.src.layouts.SideNav.Solution": "Solution" + "gi-site.src.layouts.SideNav.Solution": "Solution", + "gi-site.components.Navbar.Language.Medium": "中", + "gi-site.pages.Workspace.Recover.AttentionTheSiteParsesAnd": "Attention⚠The site parses and runs files. If the files are shared by others, make sure that they are secure and trusted first." } diff --git a/packages/gi-site/src/i18n/strings/zh-CN.json b/packages/gi-site/src/i18n/strings/zh-CN.json index f9d4fdecc..dec89787c 100644 --- a/packages/gi-site/src/i18n/strings/zh-CN.json +++ b/packages/gi-site/src/i18n/strings/zh-CN.json @@ -716,5 +716,7 @@ "gi-site.src.services.user.AvailableVipAssets": "可用的 VIP 资产", "gi-site.src.services.user.DetectedAvailableVipAssetsWhether": "检测到可用的 VIP 资产,是否前往登陆获取", "gi-site.components.Navbar.Preview.Preview": "预览", - "gi-site.src.layouts.SideNav.Solution": "解决方案" + "gi-site.src.layouts.SideNav.Solution": "解决方案", + "gi-site.components.Navbar.Language.Medium": "中", + "gi-site.pages.Workspace.Recover.AttentionTheSiteParsesAnd": "注意⚠️:站点会解析文件并运行,如果是他人分享的文件,请先确保安全可信。" } diff --git a/packages/gi-site/src/pages/Workspace/Recover.tsx b/packages/gi-site/src/pages/Workspace/Recover.tsx index 8cd452431..e2fbd33e8 100644 --- a/packages/gi-site/src/pages/Workspace/Recover.tsx +++ b/packages/gi-site/src/pages/Workspace/Recover.tsx @@ -1,5 +1,5 @@ import { FileTextOutlined } from '@ant-design/icons'; -import { Button, Upload } from 'antd'; +import { Alert, Button, Upload } from 'antd'; import * as React from 'react'; import $i18n from '../../i18n'; const { Dragger } = Upload; @@ -63,6 +63,15 @@ const Recover: React.FunctionComponent = props => { return ( <> + +