mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
refactor: vue-i18n ts improvements
This commit is contained in:
@@ -29,10 +29,10 @@ type NestedPartial<T> = {
|
||||
[K in keyof T]?: T[K] extends Array<infer R> ? Array<NestedPartial<R>> : (T[K] extends unknown ? unknown : NestedPartial<T[K]>)
|
||||
};
|
||||
|
||||
type MessageSchema = typeof enUS
|
||||
type AvailableLocales = keyof typeof messages
|
||||
export type MessageSchema = typeof enUS
|
||||
export type AvailableLocale = keyof typeof messages
|
||||
|
||||
const i18n = createI18n<[NestedPartial<MessageSchema>], AvailableLocales>({
|
||||
const i18n = createI18n<[NestedPartial<MessageSchema>], AvailableLocale>({
|
||||
fallbackLocale: 'en-US',
|
||||
legacy: false,
|
||||
messages
|
||||
|
||||
Reference in New Issue
Block a user