From b0000ce145f405faa49534ed2834626203fc52e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ann=20=E6=9D=8F=20Kilzer?= Date: Thu, 25 Apr 2024 22:45:32 +0900 Subject: [PATCH 1/6] refactor i18n keys --- src/i18n/en/translation.json | 6 ++++-- src/i18n/ja/translation.json | 6 ++++-- src/routes/Home/Home.tsx | 4 ++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/i18n/en/translation.json b/src/i18n/en/translation.json index ffce5ea..79f809b 100644 --- a/src/i18n/en/translation.json +++ b/src/i18n/en/translation.json @@ -1,5 +1,7 @@ { "codeOfConduct": "Code of Conduct", - "helloWorld": "✨ Hello World ✨", - "joinUs": "✨ Join us on Slack ✨" + "home": { + "helloWorld": "✨ Hello World ✨", + "joinUs": "✨ Join us on Slack ✨" + } } \ No newline at end of file diff --git a/src/i18n/ja/translation.json b/src/i18n/ja/translation.json index 45dca53..e69f7d9 100644 --- a/src/i18n/ja/translation.json +++ b/src/i18n/ja/translation.json @@ -1,5 +1,7 @@ { "codeOfConduct": "行動規範", - "helloWorld": "✨ Hello 世界 ✨", - "joinUs": "✨ スラックに参加する ✨" + "home": { + "helloWorld": "✨ Hello 世界 ✨", + "joinUs": "✨ スラックに参加する ✨" + } } \ No newline at end of file diff --git a/src/routes/Home/Home.tsx b/src/routes/Home/Home.tsx index 2f19cc8..a610fe8 100644 --- a/src/routes/Home/Home.tsx +++ b/src/routes/Home/Home.tsx @@ -10,7 +10,7 @@ const Home: FC = () => { return - {t('helloWorld')} + {t('home.helloWorld')} Many of us were saddened to hear of the sudden closure of Women Who Code. There is a need for an organization to empower diverse women in technology careers in Tokyo and across Japan. @@ -31,7 +31,7 @@ const Home: FC = () => { href='https://join.slack.com/t/womencodersjapan/shared_invite/zt-2h79966bm-dE7SyiGvv2CXBxbz_0JzKw' target='_blank' > - {t('joinUs')} + {t('home.joinUs')} From 48e9af857088c236e25ab33ae2fb67b7b4265fc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ann=20=E6=9D=8F=20Kilzer?= Date: Thu, 25 Apr 2024 22:47:27 +0900 Subject: [PATCH 2/6] make english keys --- src/i18n/en/translation.json | 5 ++++- src/routes/Home/Home.tsx | 10 +++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/i18n/en/translation.json b/src/i18n/en/translation.json index 79f809b..6c3d24e 100644 --- a/src/i18n/en/translation.json +++ b/src/i18n/en/translation.json @@ -2,6 +2,9 @@ "codeOfConduct": "Code of Conduct", "home": { "helloWorld": "✨ Hello World ✨", - "joinUs": "✨ Join us on Slack ✨" + "joinUs": "✨ Join us on Slack ✨", + "paragraph1": "Many of us were saddened to hear of the sudden closure of Women Who Code. There is a need for an organization to empower diverse women in technology careers in Tokyo and across Japan.", + "paragraph2": "We are not giving up on this mission. Please join us in rebuilding community so that we can empower women in Japan in Software Engineering careers.", + "paragraph3": "Our events target professional women in software careers with 2+ years of experience. Beginners to seasoned professionals are welcome to participate. While this organization focuses on women, all genders are welcome at our events. Software-adjacent roles like Data Science, Product, UI/UX, Machine Learning, etc., are welcome, too." } } \ No newline at end of file diff --git a/src/routes/Home/Home.tsx b/src/routes/Home/Home.tsx index a610fe8..65fa958 100644 --- a/src/routes/Home/Home.tsx +++ b/src/routes/Home/Home.tsx @@ -12,18 +12,14 @@ const Home: FC = () => { {t('home.helloWorld')} - Many of us were saddened to hear of the sudden closure of Women Who Code. - There is a need for an organization to empower diverse women in technology careers in Tokyo and across Japan. + {t('home.paragraph1')} - We are not giving up on this mission. - Please join us in rebuilding community so that we can empower women in Japan in Software Engineering careers. + {t('home.paragraph2')} - Our events target professional women in software careers with 2+ years of experience. Beginners to seasoned professionals are welcome to participate. - While this organization focuses on women, all genders are welcome at our events. - Software-adjacent roles like Data Science, Product, UI/UX, Machine Learning, etc., are welcome, too. + {t('home.paragraph3')}