Translations (#225)

This commit is contained in:
Luke Vella 2022-07-17 17:11:56 +01:00 committed by GitHub
parent 9c61d34f24
commit bfb14b0e02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 342 additions and 275 deletions

View file

@ -26,7 +26,7 @@ export const Profile: React.VoidFunctionComponent = () => {
return (
<div className="card my-4 p-0">
<Head>
<title>Profile - Login</title>
<title>{t("profileLogin")}</title>
</Head>
<LoginForm />
</div>
@ -36,7 +36,11 @@ export const Profile: React.VoidFunctionComponent = () => {
return (
<div className="mx-auto max-w-3xl py-4 lg:mx-0">
<Head>
<title>Profile - {user.name}</title>
<title>
{t("profileUser", {
username: user.name,
})}
</title>
</Head>
<div className="mb-4 flex items-center px-4">
<div className="mr-4 inline-flex h-14 w-14 items-center justify-center rounded-lg bg-primary-50">
@ -50,7 +54,7 @@ export const Profile: React.VoidFunctionComponent = () => {
{user.shortName}
</div>
<div className="text-slate-500">
{user.isGuest ? "Guest" : "User"}
{user.isGuest ? t("guest") : t("user")}
</div>
</div>
</div>
@ -92,7 +96,7 @@ export const Profile: React.VoidFunctionComponent = () => {
</div>
</div>
) : (
<EmptyState icon={Pencil} text="No polls created" />
<EmptyState icon={Pencil} text={t("pollsEmpty")} />
)}
</div>
) : null}