mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-30 19:57:55 +01:00
fix(useLocale): update locale import to enable tree shaking (#2735)
This commit is contained in:
@@ -2,7 +2,7 @@ import { computed, inject, ref } from 'vue'
|
|||||||
import type { InjectionKey, Ref } from 'vue'
|
import type { InjectionKey, Ref } from 'vue'
|
||||||
import type { Locale } from '../types/locale'
|
import type { Locale } from '../types/locale'
|
||||||
import { buildLocaleContext } from '../utils/locale'
|
import { buildLocaleContext } from '../utils/locale'
|
||||||
import { en } from '../locale'
|
import en from '../locale/en'
|
||||||
import { createSharedComposable } from '@vueuse/core'
|
import { createSharedComposable } from '@vueuse/core'
|
||||||
|
|
||||||
export const localeContextInjectionKey: InjectionKey<Ref<Locale | undefined>> = Symbol('nuxt-ui.locale-context')
|
export const localeContextInjectionKey: InjectionKey<Ref<Locale | undefined>> = Symbol('nuxt-ui.locale-context')
|
||||||
|
|||||||
Reference in New Issue
Block a user