fix(i18n): prepare for Lokalise
This commit is contained in:
@@ -2,10 +2,13 @@
|
||||
|
||||
import * as Sentry from "@sentry/nextjs"
|
||||
import { useEffect } from "react"
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
import type { ErrorPage } from "@/types/next/error"
|
||||
|
||||
export default function ProfileError({ error }: ErrorPage) {
|
||||
const intl = useIntl()
|
||||
|
||||
useEffect(() => {
|
||||
if (!error) return
|
||||
|
||||
@@ -13,5 +16,5 @@ export default function ProfileError({ error }: ErrorPage) {
|
||||
Sentry.captureException(error)
|
||||
}, [error])
|
||||
|
||||
return <h1>Error happened, Profile</h1>
|
||||
return <h1>{intl.formatMessage({ id: "Error happened, Profile" })}</h1>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user