feat(i18n): 添加中文和英文语言文件,集成国际化支持
Some checks failed
/ build-and-deploy-to-vercel (push) Failing after 1m10s
/ playwright (push) Successful in 2m34s
/ depcheck (push) Successful in 1m39s

This commit is contained in:
严浩
2024-11-06 18:28:53 +08:00
parent 40752e555f
commit ec1d932250
8 changed files with 269 additions and 23 deletions

8
src/locales/en.json Normal file
View File

@ -0,0 +1,8 @@
{
"welcome": "Welcome",
"hello": "Hello, {name}!",
"nav": {
"home": "Home",
"about": "About"
}
}