diff --git a/public/locales/en-US/application.json b/public/locales/en-US/application.json index 500bc9f..dd958e6 100644 --- a/public/locales/en-US/application.json +++ b/public/locales/en-US/application.json @@ -359,7 +359,7 @@ "uid": "UID", "nickname": "Nickname", "group": "Group", - "regTime": "Sign in date", + "regTime": "Sign up date", "privacyAndSecurity": "Privacy and security", "profilePage": "Public profile", "accountPassword": "Password", @@ -419,6 +419,13 @@ "downloading": "Downloading", "transferring": "Transferring", "indexing": "Indexing", - "listing": "Inserting" + "listing": "Inserting", + "allShares": "Shared", + "trendingShares": "Trending", + "totalShares": "Created shares", + "fileName": "File name", + "shareDate": "Shared at", + "downloadNumber": "Downloads", + "viewNumber": "Views" } } \ No newline at end of file diff --git a/public/locales/zh-CN/application.json b/public/locales/zh-CN/application.json index ab3c34c..4454529 100644 --- a/public/locales/zh-CN/application.json +++ b/public/locales/zh-CN/application.json @@ -409,6 +409,13 @@ "downloading": "下载中", "transferring": "转存中", "indexing": "索引中", - "listing": "插入中" + "listing": "插入中", + "allShares": "全部分享", + "trendingShares": "热门分享", + "totalShares": "分享总数", + "fileName": "文件名", + "shareDate": "分享日期", + "downloadNumber": "下载次数", + "viewNumber": "浏览次数" } } \ No newline at end of file diff --git a/src/component/Setting/Profile.js b/src/component/Setting/Profile.js index 8b980c9..45435f3 100644 --- a/src/component/Setting/Profile.js +++ b/src/component/Setting/Profile.js @@ -20,6 +20,7 @@ import { withRouter } from "react-router"; import Pagination from "@material-ui/lab/Pagination"; import { formatLocalTime } from "../../utils/datetime"; import { toggleSnackbar } from "../../redux/explorer"; +import { withTranslation } from "react-i18next"; const styles = (theme) => ({ layout: { @@ -190,7 +191,7 @@ class ProfileCompoment extends Component { }; render() { - const { classes } = this.props; + const { classes, t } = this.props; return (