mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
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:
parent
8955fce368
commit
3ccb186530
11 changed files with 366 additions and 30 deletions
|
@ -1,9 +1,18 @@
|
|||
const { t } = useI18n();
|
||||
export default defineNuxtConfig({
|
||||
compatibilityDate: '2025-05-06',
|
||||
devtools: { enabled: true },
|
||||
modules: [
|
||||
'@nuxt/image',
|
||||
'@nuxtjs/robots',
|
||||
'@nuxtjs/seo'
|
||||
]
|
||||
'@nuxtjs/seo',
|
||||
'@nuxtjs/i18n'
|
||||
],
|
||||
i18n: {
|
||||
defaultLocale: 'en',
|
||||
locales: [
|
||||
{ code: 'en', name: 'English', file: 'en.json' },
|
||||
{ code: 'zh_tw', name: 'Chinese Tradional', file: 'zh-tw.json' },
|
||||
]
|
||||
},
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue