Ver código fonte

:globe_with_meridians: labels.feedback

visuddhinanda 2 anos atrás
pai
commit
7c039a6bcc

+ 8 - 3
dashboard/src/components/library/FooterBar.tsx

@@ -2,13 +2,14 @@ import { Link } from "react-router-dom";
 import { Layout, Row, Col, Typography } from "antd";
 import BeiAn from "../general/BeiAn";
 import Feedback from "../general/Feedback";
+import { useIntl } from "react-intl";
 
 const { Footer } = Layout;
 const { Paragraph } = Typography;
 
 const FooterBarWidget = () => {
-  //Library foot bar
-  // TODO 补充项目信息
+  const intl = useIntl();
+
   return (
     <Footer>
       <Row>
@@ -24,7 +25,11 @@ const FooterBarWidget = () => {
           </ul>
         </Col>
         <Col span={16}>
-          <Paragraph strong>问题反馈</Paragraph>
+          <Paragraph strong>
+            {intl.formatMessage({
+              id: "labels.feedback",
+            })}
+          </Paragraph>
           <Feedback />
         </Col>
       </Row>

+ 1 - 0
dashboard/src/locales/en-US/label.ts

@@ -41,6 +41,7 @@ const items = {
   "labels.software.edition.pro": "pro",
   "labels.table-of-content": "table of content",
   "labels.this-studio": "this studio",
+  "labels.feedback": "feedback",
 };
 
 export default items;

+ 1 - 0
dashboard/src/locales/zh-Hans/label.ts

@@ -46,6 +46,7 @@ const items = {
   "labels.software.edition.pro": "增强版",
   "labels.table-of-content": "目录",
   "labels.this-studio": "此工作室",
+  "labels.feedback": "问题反馈",
 };
 
 export default items;