mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-19 14:31:47 +01:00
feat(useLocale): handle generic messages (#3100)
Co-authored-by: hywax <me@hywax.space> Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -50,9 +50,9 @@ export type Messages = {
|
||||
|
||||
export type Direction = 'ltr' | 'rtl'
|
||||
|
||||
export type Locale = {
|
||||
export type Locale<M> = {
|
||||
name: string
|
||||
code: string
|
||||
dir: Direction
|
||||
messages: Messages
|
||||
messages: M
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user