Skip to content

Commit

Permalink
fix(ui/locale): 将自定义的语言包名加入语言包内
Browse files Browse the repository at this point in the history
affects: @varlet/ui
  • Loading branch information
haoziqaq committed Apr 7, 2021
1 parent 2ab568e commit 5544b30
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/varlet-ui/src/locale/en-US.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export default {
lang: 'en-US',
// Dialog
dialogTitle: 'Hint',
dialogConfirmButton: 'Confirm',
Expand Down
1 change: 1 addition & 0 deletions packages/varlet-ui/src/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export function useLocale() {
const pack: Ref<Record<string, any>> = ref({})

const add = (lang: string, pack: Record<string, any>) => {
pack.lang = lang
packs[lang] = pack
}

Expand Down
1 change: 0 additions & 1 deletion packages/varlet-ui/src/locale/zh-CN.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export default {
lang: 'zh-CN',
// Dialog
dialogTitle: '提示',
dialogConfirmButtonText: '确认',
Expand Down

0 comments on commit 5544b30

Please sign in to comment.