From 62615ff16c4bd3f87cebbd67783971d3b581db7a Mon Sep 17 00:00:00 2001 From: get Date: Tue, 30 Jan 2024 11:00:33 -0500 Subject: [PATCH] Add Astro i18next --- astro-i18next.config.mjs | 5 +++++ public/locales/en/translation.json | 11 +++++++++++ public/locales/jp/translation.json | 11 +++++++++++ 3 files changed, 27 insertions(+) create mode 100644 astro-i18next.config.mjs create mode 100644 public/locales/en/translation.json create mode 100644 public/locales/jp/translation.json diff --git a/astro-i18next.config.mjs b/astro-i18next.config.mjs new file mode 100644 index 0000000..a89adb5 --- /dev/null +++ b/astro-i18next.config.mjs @@ -0,0 +1,5 @@ +/** @type {import('astro-i18next').AstroI18nextConfig} */ +export default { + defaultLocale: "en", + locales: ["en", "jp"], +} \ No newline at end of file diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json new file mode 100644 index 0000000..aab3fb3 --- /dev/null +++ b/public/locales/en/translation.json @@ -0,0 +1,11 @@ +{ + "Header": { + "Flux": "Flux", + "Home": "Home", + "Products": "Products", + "Pricing": "Pricing", + "Support": "Support", + "Login": "Login", + "SignUp": "Sign Up" + } +} \ No newline at end of file diff --git a/public/locales/jp/translation.json b/public/locales/jp/translation.json new file mode 100644 index 0000000..8e88562 --- /dev/null +++ b/public/locales/jp/translation.json @@ -0,0 +1,11 @@ +{ + "Header": { + "Flux": "Flux", + "Home": "ホーム", + "Products": "製品", + "Pricing": "価格設定", + "Support": "サポート", + "Login": "ログイン", + "SignUp": "サインアップ" + } +} \ No newline at end of file