Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Localise error page

Blue Mousee9588710003e
diff --git a/web/app/root.tsx b/web/app/root.tsx
index 18ca528a1..4e4b71ee9 100644
--- a/web/app/root.tsx
+++ b/web/app/root.tsx
@@ -116,6 +116,7 @@ function isNetworkError(error: unknown): boolean {
export function ErrorBoundary() {
const error = useRouteError()
+ const { t } = useTranslation('common')
const [crashStackShown, setCrashStackShown] = useState(false)
const networkError =
!isRouteErrorResponse(error) &&
@@ -148,7 +149,7 @@ export function ErrorBoundary() {
<html lang='en' className={getCookie(LS_THEME_SETTING) || 'light'}>
<head>
<meta charSet='utf-8' />
- <title>Connection lost</title>
+ <title>{t('errorBoundary.connectionLost')}</title>
<Links />
</head>
<body>
@@ -166,19 +167,19 @@ export function ErrorBoundary() {
<div className='py-8'>
<div className='text-center'>
<h1 className='text-3xl font-bold text-gray-900 sm:text-4xl dark:text-gray-50'>
- Connection lost
+ {t('errorBoundary.connectionLost')}
</h1>
<p className='mt-3 text-base text-gray-600 dark:text-gray-400'>
- It looks like you lost your internet connection.
+ {t('errorBoundary.connectionLostDesc')}
<br />
- Check your network and try again.
+ {t('errorBoundary.connectionLostHint')}
</p>
<button
type='button'
onClick={() => window.location.reload()}
className='mt-6 inline-flex cursor-pointer items-center rounded-lg bg-slate-900 px-5 py-2.5 text-sm font-medium text-white transition-colors hover:bg-slate-800 dark:bg-slate-100 dark:text-slate-900 dark:hover:bg-slate-200'
>
- Reload page
+ {t('dashboard.reloadPage')}
</button>
</div>
</div>
@@ -195,7 +196,7 @@ export function ErrorBoundary() {
<html lang='en' className={getCookie(LS_THEME_SETTING) || 'light'}>
<head>
<meta charSet='utf-8' />
- <title>The app has crashed..</title>
+ <title>{t('errorBoundary.crashTitle')}</title>
<Links />
</head>
<body>
@@ -211,12 +212,12 @@ export function ErrorBoundary() {
<div className='py-8'>
<div className='text-center'>
<h1 className='text-4xl font-extrabold text-gray-900 sm:text-5xl dark:text-gray-50'>
- Uh-oh..
+ {t('errorBoundary.crashTitle')}
</h1>
<p className='mt-2 text-base font-medium text-gray-800 dark:text-gray-300'>
- The app has crashed. We are sorry about that :(
+ {t('errorBoundary.crashDesc')}
<br />
- Please, tell us about it at {CONTACT_EMAIL}
+ {t('errorBoundary.crashContact', { email: CONTACT_EMAIL })}
</p>
<p className='mt-6 flex flex-col justify-center text-base font-medium text-gray-800 dark:text-gray-300'>
{isRouteErrorResponse(error) ? (
@@ -237,12 +238,12 @@ export function ErrorBoundary() {
>
{crashStackShown ? (
<>
- Hide crash stack
+ {t('errorBoundary.hideCrashStack')}
<CaretUpIcon className='ml-2 h-4 w-4' />
</>
) : (
<>
- Show crash stack
+ {t('errorBoundary.showCrashStack')}
<CaretDownIcon className='ml-2 h-4 w-4' />
</>
)}
@@ -254,7 +255,7 @@ export function ErrorBoundary() {
) : null}
</>
) : (
- <>Unknown error</>
+ <>{t('errorBoundary.unknownError')}</>
)}
</p>
</div>
diff --git a/web/public/locales/de.json b/web/public/locales/de.json
index bf51cfa84..9ddf11b15 100644
--- a/web/public/locales/de.json
+++ b/web/public/locales/de.json
@@ -1329,6 +1329,17 @@
"goHome": "Zurück auf die Homepage",
"support": "Support kontaktieren"
},
+ "errorBoundary": {
+ "connectionLost": "Verbindung unterbrochen",
+ "connectionLostDesc": "Es sieht so aus, als hättest du deine Internetverbindung verloren.",
+ "connectionLostHint": "Überprüfe dein Netzwerk und versuche es erneut.",
+ "crashTitle": "Oh-oh..",
+ "crashDesc": "Die App ist abgestürzt. Das tut uns leid :(",
+ "crashContact": "Bitte teile uns dies unter {{email}} mit",
+ "showCrashStack": "Crash-Stack anzeigen",
+ "hideCrashStack": "Crash-Stack verbergen",
+ "unknownError": "Unbekannter Fehler"
+ },
"project": {
"passwordProtectedHint": "Bitte geben Sie das Passwort ein, um dieses Dashboard anzuzeigen.",
"captchaCompletions": "CAPTCHA-Abschlüsse",
diff --git a/web/public/locales/en.json b/web/public/locales/en.json
index 7a31b3687..171429510 100644
--- a/web/public/locales/en.json
+++ b/web/public/locales/en.json
@@ -1329,6 +1329,17 @@
"goHome": "Go back home",
"support": "Contact support"
},
+ "errorBoundary": {
+ "connectionLost": "Connection lost",
+ "connectionLostDesc": "It looks like you lost your internet connection.",
+ "connectionLostHint": "Check your network and try again.",
+ "crashTitle": "Uh-oh..",
+ "crashDesc": "The app has crashed. We are sorry about that :(",
+ "crashContact": "Please, tell us about it at {{email}}",
+ "showCrashStack": "Show crash stack",
+ "hideCrashStack": "Hide crash stack",
+ "unknownError": "Unknown error"
+ },
"project": {
"passwordProtectedHint": "Please enter the password to view this dashboard.",
"captchaCompletions": "CAPTCHA completions",
diff --git a/web/public/locales/fr.json b/web/public/locales/fr.json
index 5ff850a33..280ca28a5 100644
--- a/web/public/locales/fr.json
+++ b/web/public/locales/fr.json
@@ -1329,6 +1329,17 @@
"goHome": "Retour à l'accueil",
"support": "Contacter le service client"
},
+ "errorBoundary": {
+ "connectionLost": "Connexion perdue",
+ "connectionLostDesc": "Il semble que vous ayez perdu votre connexion Internet.",
+ "connectionLostHint": "Vérifiez votre réseau et réessayez.",
+ "crashTitle": "Oups..",
+ "crashDesc": "L'application a planté. Nous en sommes désolés :(",
+ "crashContact": "Veuillez nous en informer à {{email}}",
+ "showCrashStack": "Afficher la pile de plantage",
+ "hideCrashStack": "Masquer la pile de plantage",
+ "unknownError": "Erreur inconnue"
+ },
"project": {
"passwordProtectedHint": "Veuillez saisir le mot de passe pour afficher ce tableau de bord.",
"captchaCompletions": "Résolutions de CAPTCHA",
diff --git a/web/public/locales/pl.json b/web/public/locales/pl.json
index 055be61f6..8d262116a 100644
--- a/web/public/locales/pl.json
+++ b/web/public/locales/pl.json
@@ -1329,6 +1329,17 @@
"goHome": "Powrót do strony głównej",
"support": "Skontaktuj się z obsługą"
},
+ "errorBoundary": {
+ "connectionLost": "Utracono połączenie",
+ "connectionLostDesc": "Wygląda na to, że utracono połączenie z internetem.",
+ "connectionLostHint": "Sprawdź sieć i spróbuj ponownie.",
+ "crashTitle": "Ups..",
+ "crashDesc": "Aplikacja uległa awarii. Przepraszamy za to :(",
+ "crashContact": "Prosimy, poinformuj nas o tym na {{email}}",
+ "showCrashStack": "Pokaż stos wywołań awarii",
+ "hideCrashStack": "Ukryj stos wywołań awarii",
+ "unknownError": "Nieznany błąd"
+ },
"project": {
"passwordProtectedHint": "Wprowadź hasło, aby wyświetlić ten panel.",
"captchaCompletions": "Ukończenia CAPTCHA",
diff --git a/web/public/locales/uk.json b/web/public/locales/uk.json
index e20c9496a..9aec456e3 100644
--- a/web/public/locales/uk.json
+++ b/web/public/locales/uk.json
@@ -1329,6 +1329,17 @@
"goHome": "На головну",
"support": "Зв'язатися з підтримкою"
},
+ "errorBoundary": {
+ "connectionLost": "З'єднання втрачено",
+ "connectionLostDesc": "Схоже, ви втратили підключення до інтернету.",
+ "connectionLostHint": "Перевірте мережу та спробуйте ще раз.",
+ "crashTitle": "Ой..",
+ "crashDesc": "Стався збій у додатку. Нам дуже шкода :(",
+ "crashContact": "Будь ласка, повідомте нам про це на {{email}}",
+ "showCrashStack": "Показати стек збою",
+ "hideCrashStack": "Сховати стек збою",
+ "unknownError": "Невідома помилка"
+ },
"project": {
"passwordProtectedHint": "Будь ласка, введіть пароль, щоб переглянути цю панель.",
"captchaCompletions": "Завершення CAPTCHA",