fix: removed unnecessary reactive call
This commit is contained in:
parent
032cfb2bfd
commit
3c1a9db3a5
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import en_US from "../locales/en_US";
|
||||
import vp_VL from "../locales/vp_VL";
|
||||
import { computed, reactive, readonly, ref } from "vue";
|
||||
import { computed, readonly, ref } from "vue";
|
||||
import type { Locale } from "./locale";
|
||||
|
||||
export const LOCALE_IDS = ["en_US", "vp_VL"] as const;
|
||||
|
|
@ -18,7 +18,7 @@ export function useLocale(opt: UseLocaleOptions = {}) {
|
|||
);
|
||||
});
|
||||
|
||||
return readonly(reactive(locale));
|
||||
return readonly(locale);
|
||||
}
|
||||
|
||||
export interface UseLocaleOptions {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue