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

@ -127,5 +127,6 @@
"you": "You", "you": "You",
"yourDetails": "Your details", "yourDetails": "Your details",
"yourName": "Your name…", "yourName": "Your name…",
"yourProfile": "Your profile",
"yourPolls": "Your polls" "yourPolls": "Your polls"
} }

View file

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