Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize: internationalization of product description content #8956

Merged
merged 1 commit into from Aug 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions console-ui/src/locales/en-US.js
Expand Up @@ -35,6 +35,7 @@ const I18N_CONF = {
pleaseInputUsername: 'Please input username',
pleaseInputPassword: 'Please input password',
invalidUsernameOrPassword: 'invalid username or password',
productDesc: 'an easy-to-use dynamic service discovery, configuration and service management platform for building cloud native applications',
},
MainLayout: {
nacosName: 'NACOS',
Expand Down
1 change: 1 addition & 0 deletions console-ui/src/locales/zh-CN.js
Expand Up @@ -34,6 +34,7 @@ const I18N_CONF = {
invalidUsernameOrPassword: '用户名或密码错误',
passwordRequired: '密码不能为空',
usernameRequired: '用户名不能为空',
productDesc: '一个更易于构建云原生应用的动态服务发现、配置管理和服务管理平台',
},
MainLayout: {
nacosName: 'NACOS',
Expand Down
5 changes: 1 addition & 4 deletions console-ui/src/pages/Login/Login.jsx
Expand Up @@ -90,10 +90,7 @@ class Login extends React.Component {
>
<div className="vertical-middle product-area">
<img className="product-logo" src="img/nacos.png" />
<p className="product-desc">
an easy-to-use dynamic service discovery, configuration and service management
platform for building cloud native applications
</p>
<p className="product-desc">{locale.productDesc}</p>
</div>
<div className="animation animation1" />
<div className="animation animation2" />
Expand Down
1 change: 1 addition & 0 deletions console-ui/src/pages/Login/index.scss
Expand Up @@ -136,6 +136,7 @@ $contentWidth: 1280px;
max-width: 780px;
margin: 12px auto 30px;
text-align: left;
line-height: 30px;
}
}
}
2 changes: 1 addition & 1 deletion console/src/main/resources/static/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions console/src/main/resources/static/index.html
Expand Up @@ -35,7 +35,7 @@
<link rel="stylesheet" type="text/css" href="console-ui/public/css/icon.css">
<link rel="stylesheet" type="text/css" href="console-ui/public/css/font-awesome.css">
<!-- 第三方css结束 -->
<link href="./css/main.css?b252ea947e109a27a7a1" rel="stylesheet"></head>
<link href="./css/main.css?8b47f7d064161d948b8c" rel="stylesheet"></head>

<body>
<div id="root" style="overflow:hidden"></div>
Expand All @@ -56,6 +56,6 @@
<script src="console-ui/public/js/merge.js"></script>
<script src="console-ui/public/js/loader.js"></script>
<!-- 第三方js结束 -->
<script type="text/javascript" src="./js/main.js?b252ea947e109a27a7a1"></script></body>
<script type="text/javascript" src="./js/main.js?8b47f7d064161d948b8c"></script></body>

</html>
6 changes: 3 additions & 3 deletions console/src/main/resources/static/js/main.js

Large diffs are not rendered by default.