diff options
author | crupest <crupest@outlook.com> | 2020-11-20 20:33:01 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-11-20 20:33:01 +0800 |
commit | 8482b649e13a9f470801d3c0a87672099da86a4e (patch) | |
tree | aa921e23e9175b8223822d3c295aa9a844e20c78 /FrontEnd/src/app/views/admin/AdminNav.tsx | |
parent | cf06a813e77dae460e6540706bc0c90338ea9ed3 (diff) | |
download | timeline-8482b649e13a9f470801d3c0a87672099da86a4e.tar.gz timeline-8482b649e13a9f470801d3c0a87672099da86a4e.tar.bz2 timeline-8482b649e13a9f470801d3c0a87672099da86a4e.zip |
...
Diffstat (limited to 'FrontEnd/src/app/views/admin/AdminNav.tsx')
-rw-r--r-- | FrontEnd/src/app/views/admin/AdminNav.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/FrontEnd/src/app/views/admin/AdminNav.tsx b/FrontEnd/src/app/views/admin/AdminNav.tsx index 040b479f..f376beda 100644 --- a/FrontEnd/src/app/views/admin/AdminNav.tsx +++ b/FrontEnd/src/app/views/admin/AdminNav.tsx @@ -1,11 +1,14 @@ import React from "react"; import { Nav } from "react-bootstrap"; +import { useTranslation } from "react-i18next"; import { useHistory, useRouteMatch } from "react-router"; const AdminNav: React.FC = () => { const match = useRouteMatch<{ name: string }>(); const history = useHistory(); + const { t } = useTranslation(); + const name = match.params.name; function toggle(newTab: string): void { @@ -21,7 +24,7 @@ const AdminNav: React.FC = () => { toggle("users"); }} > - Users + {t("admin:nav.users")} </Nav.Link> </Nav.Item> <Nav.Item> @@ -31,7 +34,7 @@ const AdminNav: React.FC = () => { toggle("highlighttimelines"); }} > - Highlight Timelines + {t("admin:nav.highlightTimelines")} </Nav.Link> </Nav.Item> </Nav> |