Skip to content

Commit

Permalink
fix: vueI18nConfig property loop
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbieGoede committed Oct 3, 2024
1 parent 5687e38 commit 097abc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/runtime/server/api/merged.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { deepCopy } from '@intlify/shared'
import { defineEventHandler } from '#imports'
import { vueI18nConfigs, localeLoaders } from '#internal/i18n/options.mjs'

import type { I18nOptions, Locale, LocaleMessages } from 'vue-i18n'
import type { Locale, LocaleMessages } from 'vue-i18n'
import { loadLocale, loadVueI18nOptions } from '../../messages'
import { nuxtMock } from '../utils'
import type { DefineLocaleMessage } from '@intlify/h3'
Expand All @@ -16,9 +16,9 @@ export default defineEventHandler(async () => {
const vueI18nConfig = await loadVueI18nOptions(vueI18nConfigs, nuxtMock)
for (const locale in vueI18nConfig.messages) {
deepCopy(vueI18nConfig.messages[locale] || {}, messages)
deepCopy(vueI18nConfig.numberFormats?.[locale] || {}, numberFormats)
deepCopy(vueI18nConfig.datetimeFormats?.[locale] || {}, datetimeFormats)
}
deepCopy(vueI18nConfig.numberFormats || {}, numberFormats)
deepCopy(vueI18nConfig.datetimeFormats || {}, datetimeFormats)

// @ts-ignore
const _defineI18nLocale = globalThis.defineI18nLocale
Expand Down

0 comments on commit 097abc3

Please sign in to comment.