From 667f9cbb577e51722f583d3ab3d14cd4fc723e4d Mon Sep 17 00:00:00 2001 From: giancarlo Date: Fri, 19 Apr 2024 15:54:24 +0800 Subject: [PATCH] Integrate i18n into AuthCallbackErrorPage Added i18n support to the AuthCallbackErrorPage. This ensures consistent internationalization and localization across all pages, helping deliver proper error messages in different languages. --- apps/web/app/auth/callback/error/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/app/auth/callback/error/page.tsx b/apps/web/app/auth/callback/error/page.tsx index 730feec62..672e7e4fb 100644 --- a/apps/web/app/auth/callback/error/page.tsx +++ b/apps/web/app/auth/callback/error/page.tsx @@ -6,6 +6,7 @@ import { Button } from '@kit/ui/button'; import { Trans } from '@kit/ui/trans'; import pathsConfig from '~/config/paths.config'; +import { withI18n } from '~/lib/i18n/with-i18n'; interface Params { searchParams: { @@ -47,4 +48,4 @@ function AuthCallbackErrorPage({ searchParams }: Params) { ); } -export default AuthCallbackErrorPage; +export default withI18n(AuthCallbackErrorPage);