Skip to content

Commit

Permalink
fix(ui/locale): expose useLocale api
Browse files Browse the repository at this point in the history
affects: @varlet/ui
  • Loading branch information
haoziqaq committed Jul 21, 2021
1 parent 42b477a commit 2bf30e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/varlet-ui/src/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@ use('zh-CN')

export { packs, pack, add, use, merge }

export const _LocaleComponent = { packs, pack, add, use, merge }
export const _LocaleComponent = { packs, pack, add, use, merge, useLocale }

export default {
packs,
pack,
add,
use,
merge,
useLocale,
}

0 comments on commit 2bf30e7

Please sign in to comment.