Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: footer add i18n

shuai1a5be1c5db03
diff --git a/ui/src/components/Footer/index.tsx b/ui/src/components/Footer/index.tsx
index c621df60..80aad80b 100644
--- a/ui/src/components/Footer/index.tsx
+++ b/ui/src/components/Footer/index.tsx
@@ -1,16 +1,19 @@
import React from 'react';
import { Container } from 'react-bootstrap';
+import { Trans } from 'react-i18next';
const Index = () => {
return (
<footer className="bg-light py-3">
<Container>
<p className="text-center mb-0 fs-14 text-secondary">
- Built on
- <a href="/"> Answer </a>
- - the open source source software that power knowledge communities.
- <br />
- Made with love. © 2022 Answer .
+ <Trans i18nKey="footer.build_on">
+ Built on
+ <a href="/"> Answer </a>
+ - the open source source software that power knowledge communities.
+ <br />
+ Made with love. © 2022 Answer .
+ </Trans>
</p>
</Container>
</footer>
diff --git a/ui/src/i18n/locales/en.json b/ui/src/i18n/locales/en.json
index f8be8a30..244685ea 100644
--- a/ui/src/i18n/locales/en.json
+++ b/ui/src/i18n/locales/en.json
@@ -397,6 +397,9 @@
"placeholder": "Search"
}
},
+ "footer": {
+ "build_on": "Build on <1> Answer </1>- the open source source software that power knowledge communities.<br />Made with love. © 2022 Answer."
+ },
"upload_img": {
"name": "Change",
"loading": "loading..."
@@ -842,4 +845,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/ui/src/i18n/locales/zh_CN.json b/ui/src/i18n/locales/zh_CN.json
index 1e434029..ddfc6073 100644
--- a/ui/src/i18n/locales/zh_CN.json
+++ b/ui/src/i18n/locales/zh_CN.json
@@ -55,5 +55,8 @@
"different": "两次输入密码不一致"
}
}
+ },
+ "footer": {
+ "build_on": "由 <1> Answer </1>构建- 为知识社区提供动力的开源软件.<br />Made with love. © 2022 Answer ."
}
}