From ece31258848e05d5939f85219890c12a25a69e1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ann=20=E6=9D=8F=20Kilzer?= Date: Thu, 25 Apr 2024 22:54:41 +0900 Subject: [PATCH] update header --- src/components/Header/DesktopHeader.tsx | 7 +++++-- src/i18n/en/translation.json | 5 ++++- src/i18n/ja/translation.json | 5 ++++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/components/Header/DesktopHeader.tsx b/src/components/Header/DesktopHeader.tsx index a7e61ca..3e18361 100644 --- a/src/components/Header/DesktopHeader.tsx +++ b/src/components/Header/DesktopHeader.tsx @@ -6,6 +6,7 @@ import Typography from '@mui/material/Typography'; import { styled } from '@mui/material/styles'; import SideDrawer from '../SideDrawer/SideDrawer'; import StyledNavLink from '@/components/StyledNavLink/StyledNavLink' +import { useTranslation } from 'react-i18next'; const StyledToolbar = styled(Toolbar)(({ theme }) => ({ @@ -22,16 +23,18 @@ const StyledToolbar = styled(Toolbar)(({ theme }) => ({ const DesktopHeader: FC = () => { + const { t } = useTranslation(); + return WiSE Japan - Women in Software Engineering Japan + {t('header.subtitle')} - Code of Conduct + {t('header.codeOfConduct')} diff --git a/src/i18n/en/translation.json b/src/i18n/en/translation.json index 6c3d24e..be95bb6 100644 --- a/src/i18n/en/translation.json +++ b/src/i18n/en/translation.json @@ -1,5 +1,8 @@ { - "codeOfConduct": "Code of Conduct", + "header": { + "codeOfConduct": "Code of Conduct", + "subtitle": "Women in Software Engineering Japan" + }, "home": { "helloWorld": "✨ Hello World ✨", "joinUs": "✨ Join us on Slack ✨", diff --git a/src/i18n/ja/translation.json b/src/i18n/ja/translation.json index 10c5000..27022fc 100644 --- a/src/i18n/ja/translation.json +++ b/src/i18n/ja/translation.json @@ -1,5 +1,8 @@ { - "codeOfConduct": "行動規範", + "header": { + "codeOfConduct": "行動規範", + "subtitle": "ウーマン・イン・ソフトウェアエンジニアリング" + }, "home": { "helloWorld": "✨ Hello 世界 ✨", "joinUs": "✨ スラックに参加する ✨",