Merge branch 'feature/202501107-all' into feature/20251001-gil
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* i18n 다국어 로더 플러그인
|
||||
* S3에서 공통 다국어 파일을 로드하여 i18n 메시지에 주입합니다.
|
||||
*/
|
||||
export default defineNuxtPlugin(async (nuxtApp) => {
|
||||
export default defineNuxtPlugin(async nuxtApp => {
|
||||
const $i18n = nuxtApp.$i18n as any
|
||||
|
||||
const runtimeConfig = useRuntimeConfig()
|
||||
@@ -31,7 +31,7 @@ export default defineNuxtPlugin(async (nuxtApp) => {
|
||||
'zh-cn': 'zh-CN',
|
||||
}
|
||||
|
||||
langCodes.forEach((langCode) => {
|
||||
langCodes.forEach(langCode => {
|
||||
// 로케일 코드 변환 (필요한 경우)
|
||||
const normalizedLangCode = localeMap[langCode] || langCode
|
||||
|
||||
@@ -47,6 +47,9 @@ export default defineNuxtPlugin(async (nuxtApp) => {
|
||||
}
|
||||
})
|
||||
} catch (error) {
|
||||
console.error('[Exception] i18n-loader: Failed to load translations:', error)
|
||||
console.error(
|
||||
'[Exception] i18n-loader: Failed to load translations:',
|
||||
error
|
||||
)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user