Skip to content

Commit

Permalink
chore: import runtime config from '#imports' (nuxt-modules#3008)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored and BobbieGoede committed Jul 26, 2024
1 parent 7930a27 commit e72a5de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion specs/fixtures/basic_usage/app.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { useI18n } from '#i18n'
import { useRuntimeConfig } from 'nuxt/app'
import { useRuntimeConfig } from '#imports'
const { finalizePendingLocaleChange } = useI18n()
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/routing/extends/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getLocalesRegex } from '../utils'
import { localeCodes } from '#build/i18n.options.mjs'

import type { RouteLocationNormalized, RouteLocationNormalizedLoaded } from 'vue-router'
import { useRuntimeConfig } from 'nuxt/app'
import { useRuntimeConfig } from '#imports'

export function createLocaleFromRouteGetter() {
const { routesNameSeparator, defaultLocaleRouteNameSuffix } = useRuntimeConfig().public.i18n
Expand Down

0 comments on commit e72a5de

Please sign in to comment.