Missing i18n (#325)

This commit is contained in:
Luke Vella 2022-10-10 13:27:19 +01:00 committed by GitHub
parent 2c6f64bdc3
commit a81584f37d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View file

@ -202,10 +202,18 @@ const UserDropdown: React.VoidFunctionComponent<
/>
) : null}
{!user.isGuest ? (
<DropdownItem href="/profile" icon={User} label="Your profile" />
<DropdownItem
href="/profile"
icon={User}
label={t("app:yourProfile")}
/>
) : null}
{user.isGuest ? (
<DropdownItem icon={Login} label="Login" onClick={openLoginModal} />
<DropdownItem
icon={Login}
label={t("app:login")}
onClick={openLoginModal}
/>
) : null}
<DropdownItem
icon={Logout}