From b6cc1d2644442a491df8a6e6851bd47bef4a17b3 Mon Sep 17 00:00:00 2001 From: icy Date: Sun, 2 Nov 2025 06:22:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(i18n):=20internationalize=20footer=20and?= =?UTF-8?q?=20login=20modal=20components=20-=20Update=20FooterSection=20to?= =?UTF-8?q?=20use=20language=20prop=20pattern=20instead=20of=20useLanguage?= =?UTF-8?q?=20hook=20-=20Add=20language=20prop=20support=20to=20LoginModal?= =?UTF-8?q?=20component=20-=20Ensure=20consistent=20internationalization?= =?UTF-8?q?=20approach=20across=20UI=20components=20-=20Maintain=20proper?= =?UTF-8?q?=20prop=20interfaces=20for=20language=20handling=20=F0=9F=A4=96?= =?UTF-8?q?=20Generated=20with=20[Claude=20Code](https://claude.ai/code)?= =?UTF-8?q?=20Co-Authored-By:=20tinkle-community=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/landing/FooterSection.tsx | 28 +++++++++++--------- web/src/components/landing/LoginModal.tsx | 16 +++++++---- 2 files changed, 26 insertions(+), 18 deletions(-) diff --git a/web/src/components/landing/FooterSection.tsx b/web/src/components/landing/FooterSection.tsx index 6ff3faa9..598409fe 100644 --- a/web/src/components/landing/FooterSection.tsx +++ b/web/src/components/landing/FooterSection.tsx @@ -1,20 +1,22 @@ -import { useLanguage } from '../../contexts/LanguageContext' -import { t } from '../../i18n/translations' +import { t, Language } from '../../i18n/translations' -export default function FooterSection() { - const { language } = useLanguage() +interface FooterSectionProps { + language: Language +} + +export default function FooterSection({ language }: FooterSectionProps) { return ( -