diff --git a/i18n/locales/ko.ts b/i18n/locales/ko.ts index e7f3c28..7074d95 100644 --- a/i18n/locales/ko.ts +++ b/i18n/locales/ko.ts @@ -1,10 +1,11 @@ export default defineI18nLocale(async (locale: string) => { //https://static-pubcomm.gate8.com/dev/test/multilingual/test_common_template.json?20251021185116 - const config = useRuntimeConfig() - const rootPath = config.public.staticUrl - const runType = config.public.runType + // const config = useRuntimeConfig() + // const rootPath = config.public.staticUrl + // const runType = config.public.runType - const translationApi = `${rootPath}/${runType}/test/multilingual/test_common_template.json` + // const translationApi = `${rootPath}/${runType}/test/multilingual/test_common_template.json` + const translationApi = `https://static-pubcomm.gate8.com/dev/test/multilingual/test_common_template.json` try { const { data } = await useFetch(translationApi, { @@ -15,7 +16,7 @@ export default defineI18nLocale(async (locale: string) => { }) // API 데이터에서 locale에 맞는 데이터를 추출 - const apiData = data.value?.[locale] || {} // locale에 맞는 데이터가 없으면 빈 객체 반환 + const apiData = data.value?.['ko'] || {} // locale에 맞는 데이터가 없으면 빈 객체 반환 // API 데이터와 common.json 데이터를 병합 (common.json이 우선순위) const finalResult = { ...apiData } diff --git a/layers/components/layouts/Footer.vue b/layers/components/layouts/Footer.vue index 51c4c30..97cf995 100644 --- a/layers/components/layouts/Footer.vue +++ b/layers/components/layouts/Footer.vue @@ -144,20 +144,31 @@