From 3bccb6782a601e686df5d0ee405d738572f182e1 Mon Sep 17 00:00:00 2001 From: Dafitra <42286100+AnOrdinaryPeople@users.noreply.github.com> Date: Sat, 23 Nov 2024 05:03:44 +0700 Subject: [PATCH] fix(useLocale): update locale import to enable tree shaking (#2735) --- src/runtime/composables/useLocale.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/composables/useLocale.ts b/src/runtime/composables/useLocale.ts index 4800fb0b..61e7b5df 100644 --- a/src/runtime/composables/useLocale.ts +++ b/src/runtime/composables/useLocale.ts @@ -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> = Symbol('nuxt-ui.locale-context')