feat: add internationalization support and update layout

- Added i18n module to nuxt.config.ts with English and Traditional Chinese locales.
- Created locale files for English, Traditional Chinese, and German.
- Updated default layout to use script setup syntax.
- Modified index page structure for future content.
- Implemented API endpoint for object storage file redirection.
- Removed unused CORS middleware.
- Created a new feed route handler.
This commit is contained in:
yuanhau 2025-05-06 10:04:51 +08:00
parent 8955fce368
commit 3ccb186530
11 changed files with 366 additions and 30 deletions

4
i18n/locales/de.json Normal file
View file

@ -0,0 +1,4 @@
{
"dailybriefing": "",
"Welcome": ""
}

7
i18n/locales/en.json Normal file
View file

@ -0,0 +1,7 @@
{
"core": {
"sitename": "BlindSpec"
},
"dailybriefing": "Daily Briefing",
"Welcome": "Welcome"
}

7
i18n/locales/zh-tw.json Normal file
View file

@ -0,0 +1,7 @@
{
"core": {
"sitename": "新聞盲點平台"
},
"dailybriefing": "今日報導",
"Welcome": "歡迎"
}