Add Astro i18next
This commit is contained in:
parent
423c8cd1cc
commit
62615ff16c
3 changed files with 27 additions and 0 deletions
5
astro-i18next.config.mjs
Normal file
5
astro-i18next.config.mjs
Normal file
|
@ -0,0 +1,5 @@
|
|||
/** @type {import('astro-i18next').AstroI18nextConfig} */
|
||||
export default {
|
||||
defaultLocale: "en",
|
||||
locales: ["en", "jp"],
|
||||
}
|
11
public/locales/en/translation.json
Normal file
11
public/locales/en/translation.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"Header": {
|
||||
"Flux": "Flux",
|
||||
"Home": "Home",
|
||||
"Products": "Products",
|
||||
"Pricing": "Pricing",
|
||||
"Support": "Support",
|
||||
"Login": "Login",
|
||||
"SignUp": "Sign Up"
|
||||
}
|
||||
}
|
11
public/locales/jp/translation.json
Normal file
11
public/locales/jp/translation.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"Header": {
|
||||
"Flux": "Flux",
|
||||
"Home": "ホーム",
|
||||
"Products": "製品",
|
||||
"Pricing": "価格設定",
|
||||
"Support": "サポート",
|
||||
"Login": "ログイン",
|
||||
"SignUp": "サインアップ"
|
||||
}
|
||||
}
|
Reference in a new issue