Skip to content

Commit

Permalink
fix(useLocale): update locale import to enable tree shaking (#2735)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnOrdinaryPeople authored Nov 22, 2024
1 parent 5a01a81 commit 3bccb67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/composables/useLocale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { computed, inject, ref } from 'vue'
import type { InjectionKey, Ref } from 'vue'
import type { Locale } from '../types/locale'
import { buildLocaleContext } from '../utils/locale'
import { en } from '../locale'
import en from '../locale/en'
import { createSharedComposable } from '@vueuse/core'

export const localeContextInjectionKey: InjectionKey<Ref<Locale | undefined>> = Symbol('nuxt-ui.locale-context')
Expand Down

0 comments on commit 3bccb67

Please sign in to comment.