From ee03928a56082fbaef357c7dcdc5a4b671364d32 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Sun, 24 Nov 2024 21:44:12 +0800 Subject: [PATCH] feat: detail overview i18n --- src/components/Footer.tsx | 4 +- src/components/Header.tsx | 7 ++-- src/components/ServerCard.tsx | 18 ++++++-- src/components/ServerDetailOverview.tsx | 55 +++++++++++++++++-------- src/components/ServerOverview.tsx | 11 +++-- src/locales/en/translation.json | 30 ++++++++++++++ src/locales/zh-CN/translation.json | 30 ++++++++++++++ src/locales/zh-TW/translation.json | 32 +++++++++++++- src/pages/Server.tsx | 6 --- 9 files changed, 157 insertions(+), 36 deletions(-) diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index e2223e5..5202568 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,7 +1,9 @@ // src/components/Footer.tsx import React from "react"; +import { useTranslation } from "react-i18next"; const Footer: React.FC = () => { + const { t } = useTranslation(); return (