fix(i18n): prepare for Lokalise

This commit is contained in:
Michael Zetterberg
2025-01-03 14:54:46 +01:00
parent cbc17e2c5b
commit d2ce9c0d7c
120 changed files with 1703 additions and 1042 deletions
+4 -1
View File
@@ -2,6 +2,7 @@
import * as Sentry from "@sentry/nextjs"
import { useEffect } from "react"
import { useIntl } from "react-intl"
import styles from "./global-error.module.css"
@@ -12,6 +13,8 @@ export default function GlobalError({
}) {
console.log({ global_error: error })
const intl = useIntl()
useEffect(() => {
Sentry.captureException(error)
}, [error])
@@ -20,7 +23,7 @@ export default function GlobalError({
<html>
<body>
<div className={styles.layout}>
<h1>Something went really wrong!</h1>
<h1>{intl.formatMessage({ id: "Something went really wrong!" })}</h1>
</div>
</body>
</html>