From 64c2ef1f3a72d30160349241daef90c38f753d66 Mon Sep 17 00:00:00 2001 From: Nisu Date: Mon, 21 Oct 2024 22:15:15 +0300 Subject: [PATCH 1/2] Add useLocale to export in index.ts --- src/locales/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/locales/index.ts b/src/locales/index.ts index 02a6059ffda..a806568b900 100644 --- a/src/locales/index.ts +++ b/src/locales/index.ts @@ -60,3 +60,4 @@ export type { NLocale } from './common/enUS' export type { NDateLocale } from './date/enUS' export type { NPartialLocale } from './utils/index' export { createLocale } from './utils/index' +export { useLocale } from '../_mixins/index' From 81a445217b0957ac78d49d0643f7c9c09d600f5e Mon Sep 17 00:00:00 2001 From: Nisu Date: Mon, 21 Oct 2024 19:24:09 +0000 Subject: [PATCH 2/2] update changelog files --- CHANGELOG.en-US.md | 1 + CHANGELOG.zh-CN.md | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 7c694ac867b..5e5a9e184db 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -16,6 +16,7 @@ - `n-progress`'s `color` prop supports gradient config. - `n-select` adds `font-weight` theme variable - `n-input` adds `font-weight` theme variable +- Add posibility to import `useLocale` mixin ## 2.40.1 diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 06e42e84b73..5e769bb2b89 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -16,6 +16,7 @@ - `n-progress` 的 `color` 属性支持渐变色配置 - `n-select` 新增 `font-weight` 主题变量 - `n-input` 新增 `font-weight` 主题变量 +- Add posibility to import `useLocale` mixin ## 2.40.1