The vertical navigation bar has been internationalized

pull/46/head
YangZhang-GitHub 2021-07-05 15:51:02 +08:00
parent d2afb867bd
commit a375b5d9f6
1 changed files with 4 additions and 3 deletions

View File

@ -12,8 +12,9 @@ import Logo from './Logo';
import NavbarTopDropDownMenus from './NavbarTopDropDownMenus';
import NavbarVerticalMenu from './NavbarVerticalMenu';
import ToggleButton from './ToggleButton';
import { withTranslation } from 'react-i18next';
const NavbarVertical = ({ navbarStyle }) => {
const NavbarVertical = ({ navbarStyle, t }) => {
const navBarRef = useRef(null);
const {
@ -113,7 +114,7 @@ const NavbarVertical = ({ navbarStyle }) => {
block
className="my-3 btn-purchase"
>
Purchase
{t('Purchase')}
</Button>
</div>
</Collapse>
@ -129,4 +130,4 @@ NavbarVertical.defaultProps = {
navbarStyle: 'transparent'
};
export default NavbarVertical;
export default withTranslation()(NavbarVertical);