feat(WEB-220): label translations
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
import { profileEdit } from "@/constants/routes/myPages"
|
||||
import { _ } from "@/lib/translation"
|
||||
|
||||
import Button from "@/components/TempDesignSystem/Button"
|
||||
import Link from "@/components/TempDesignSystem/Link"
|
||||
import { getIntl } from "@/i18n"
|
||||
|
||||
import type { LangParams, PageArgs } from "@/types/params"
|
||||
|
||||
export default function ProfileView({ params }: PageArgs<LangParams>) {
|
||||
export default async function ProfileView({ params }: PageArgs<LangParams>) {
|
||||
const { formatMessage } = await getIntl()
|
||||
return (
|
||||
<Button asChild size="small">
|
||||
<Link href={profileEdit[params.lang]}>{_("Edit")}</Link>
|
||||
<Link href={profileEdit[params.lang]}>
|
||||
{formatMessage({ id: "Edit" })}
|
||||
</Link>
|
||||
</Button>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user