mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-24 17:00:36 +01:00
feat(module): support i18n in components (#2553)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -42,3 +42,4 @@ export * from '../components/Toast.vue'
|
||||
export * from '../components/Toaster.vue'
|
||||
export * from '../components/Tooltip.vue'
|
||||
export * from './form'
|
||||
export * from './locale'
|
||||
|
||||
40
src/runtime/types/locale.ts
Normal file
40
src/runtime/types/locale.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
export type LocalePair = {
|
||||
inputMenu: {
|
||||
noMatch: string
|
||||
noData: string
|
||||
}
|
||||
commandPalette: {
|
||||
noMatch: string
|
||||
noData: string
|
||||
close: string
|
||||
}
|
||||
selectMenu: {
|
||||
noMatch: string
|
||||
noData: string
|
||||
}
|
||||
toast: {
|
||||
close: string
|
||||
}
|
||||
carousel: {
|
||||
prev: string
|
||||
next: string
|
||||
goto: string
|
||||
}
|
||||
modal: {
|
||||
close: string
|
||||
}
|
||||
slideover: {
|
||||
close: string
|
||||
}
|
||||
alert: {
|
||||
close: string
|
||||
}
|
||||
table: {
|
||||
noData: string
|
||||
}
|
||||
}
|
||||
|
||||
export type Locale = {
|
||||
name: string
|
||||
ui: LocalePair
|
||||
}
|
||||
Reference in New Issue
Block a user