From 9355af51aaa53f7c26f3ce5b1d1e3a8224228ade Mon Sep 17 00:00:00 2001 From: icy Date: Sun, 2 Nov 2025 06:22:16 +0800 Subject: [PATCH] feat(i18n): internationalize footer and login modal components MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update FooterSection to use language prop pattern instead of useLanguage hook - Add language prop support to LoginModal component - Ensure consistent internationalization approach across UI components - Maintain proper prop interfaces for language handling 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: tinkle-community --- 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 ( -