diff --git a/i18n/locales/i18n.config.ts b/i18n/locales/i18n.config.ts new file mode 100644 index 0000000..7d8fbf9 --- /dev/null +++ b/i18n/locales/i18n.config.ts @@ -0,0 +1,4 @@ +export default defineI18nConfig(() => ({ + legacy: false, + locale: 'en', + })) \ No newline at end of file diff --git a/nuxt.config.ts b/nuxt.config.ts index 9cd8ed1..7facdd4 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -9,6 +9,7 @@ export default defineNuxtConfig({ modules: ['@nuxt/image', '@nuxtjs/robots', '@nuxtjs/seo', '@nuxtjs/i18n', "@nuxtjs/tailwindcss"], i18n: { defaultLocale: 'en', + vueI18n: './i18n.config.ts', locales: [ { code: 'en', name: 'English', file: 'en.json' }, { code: 'zh_tw', name: 'Chinese Tradional', file: 'zh-tw.json' }, diff --git a/pages/newsOrgAbout/[slug].vue b/pages/newsOrgAbout/[slug].vue index c5cc655..6e03ac3 100644 --- a/pages/newsOrgAbout/[slug].vue +++ b/pages/newsOrgAbout/[slug].vue @@ -30,22 +30,19 @@ useSeoMeta({ import { GlobeAltIcon } from "@heroicons/vue/24/outline"; \ No newline at end of file diff --git a/server/api/getData/fetchNewsOrgInfo.ts b/server/api/getData/fetchNewsOrgInfo.ts index 1dee5b8..76fbe63 100644 --- a/server/api/getData/fetchNewsOrgInfo.ts +++ b/server/api/getData/fetchNewsOrgInfo.ts @@ -5,8 +5,9 @@ export default defineEventHandler(async(event) => { title: "News Org 1", slug: "taisounds", website: "https://www.taisounds.com.tw", - description: "", + description: "wah wah wah wah wah wah I dont fucking care", facebook: "https://www.facebook.com/taisounds", + logoUrl: "https://cdn.discordapp.com/avatars/918723093646684180/4eecc27ac05ee8a701fa167808610c7a.jpg", } })