From 3066f5c51ac31444e4b28426ee2b9bf15db65ac3 Mon Sep 17 00:00:00 2001 From: yudete Date: Mon, 8 Mar 2021 13:40:37 +0900 Subject: [PATCH] Update locale ids, Update my grade --- locales/{en-US => en}/common.json | 0 locales/{en-US => en}/index.json | 0 locales/{en-US => en}/profile.json | 2 +- locales/{en-US => en}/status.json | 0 locales/{ja-JP => ja}/common.json | 0 locales/{ja-JP => ja}/index.json | 0 locales/{ja-JP => ja}/profile.json | 2 +- locales/{ja-JP => ja}/status.json | 0 next.config.js | 4 ++-- pages/components/LangSelector.js | 4 ++-- 10 files changed, 6 insertions(+), 6 deletions(-) rename locales/{en-US => en}/common.json (100%) rename locales/{en-US => en}/index.json (100%) rename locales/{en-US => en}/profile.json (95%) rename locales/{en-US => en}/status.json (100%) rename locales/{ja-JP => ja}/common.json (100%) rename locales/{ja-JP => ja}/index.json (100%) rename locales/{ja-JP => ja}/profile.json (96%) rename locales/{ja-JP => ja}/status.json (100%) diff --git a/locales/en-US/common.json b/locales/en/common.json similarity index 100% rename from locales/en-US/common.json rename to locales/en/common.json diff --git a/locales/en-US/index.json b/locales/en/index.json similarity index 100% rename from locales/en-US/index.json rename to locales/en/index.json diff --git a/locales/en-US/profile.json b/locales/en/profile.json similarity index 95% rename from locales/en-US/profile.json rename to locales/en/profile.json index e113de5..4a7e260 100644 --- a/locales/en-US/profile.json +++ b/locales/en/profile.json @@ -14,7 +14,7 @@ "contact": "Get in touch", "belongs": "Organization", "more": "More...", - "grade": "(1st grade)", + "grade": "B2", "icon_1": "Icon: ", "icon_2": "" } \ No newline at end of file diff --git a/locales/en-US/status.json b/locales/en/status.json similarity index 100% rename from locales/en-US/status.json rename to locales/en/status.json diff --git a/locales/ja-JP/common.json b/locales/ja/common.json similarity index 100% rename from locales/ja-JP/common.json rename to locales/ja/common.json diff --git a/locales/ja-JP/index.json b/locales/ja/index.json similarity index 100% rename from locales/ja-JP/index.json rename to locales/ja/index.json diff --git a/locales/ja-JP/profile.json b/locales/ja/profile.json similarity index 96% rename from locales/ja-JP/profile.json rename to locales/ja/profile.json index b38de94..158d302 100644 --- a/locales/ja-JP/profile.json +++ b/locales/ja/profile.json @@ -14,7 +14,7 @@ "contact": "連絡先 / SNS", "belongs": "所属", "more": "さらに見る...", - "grade": "1年", + "grade": "2年", "icon_1": "アイコン: ", "icon_2": "さん" } \ No newline at end of file diff --git a/locales/ja-JP/status.json b/locales/ja/status.json similarity index 100% rename from locales/ja-JP/status.json rename to locales/ja/status.json diff --git a/next.config.js b/next.config.js index 9950dba..a672f1c 100644 --- a/next.config.js +++ b/next.config.js @@ -7,9 +7,9 @@ module.exports = nextTranslate({ i18n: { // These are all the locales you want to support in // your application - locales: ['ja-JP', 'en-US'], + locales: ['ja', 'en'], // This is the default locale you want to be used when visiting // a non-locale prefixed path e.g. `/hello` - defaultLocale: 'ja-JP', + defaultLocale: 'ja', } }) \ No newline at end of file diff --git a/pages/components/LangSelector.js b/pages/components/LangSelector.js index 75edcaa..9b53452 100644 --- a/pages/components/LangSelector.js +++ b/pages/components/LangSelector.js @@ -48,10 +48,10 @@ const Dropdown = ({ color }) => {
- + 日本語 - + English