From 1f3c4805f0d7e98ea5fb44b59d7fbf0ecf9f551e Mon Sep 17 00:00:00 2001 From: giancarlo Date: Tue, 16 Apr 2024 21:06:28 +0800 Subject: [PATCH] Refactor i18n initialization and make UI adjustments Converted the `initializeI18nClient` function to an asynchronous function for a more straightforward implementation. Simultaneously, made some tweaks to the UI components, such as altering dimensions in `site-footer.tsx` and `site-page-header.tsx`, and refactoring the `FooterSectionHeading` component for easier maintenance and improved readability. --- .../(marketing)/_components/site-footer.tsx | 16 ++-- .../_components/site-page-header.tsx | 2 +- packages/i18n/src/i18n.client.ts | 90 +++++++++---------- 3 files changed, 51 insertions(+), 57 deletions(-) diff --git a/apps/web/app/(marketing)/_components/site-footer.tsx b/apps/web/app/(marketing)/_components/site-footer.tsx index 5d775f23c..8904716bb 100644 --- a/apps/web/app/(marketing)/_components/site-footer.tsx +++ b/apps/web/app/(marketing)/_components/site-footer.tsx @@ -1,5 +1,6 @@ import Link from 'next/link'; +import { Heading } from '@kit/ui/heading'; import { Trans } from '@kit/ui/trans'; import { AppLogo } from '~/components/app-logo'; @@ -10,7 +11,7 @@ const YEAR = new Date().getFullYear(); export function SiteFooter() { return (