fix(useLocale): update locale import to enable tree shaking (#2735)

This commit is contained in:
Dafitra
2024-11-23 05:03:44 +07:00
committed by GitHub
parent 5a01a81577
commit 3bccb6782a

View File

@@ -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')