-
-
Notifications
You must be signed in to change notification settings - Fork 377
Closed
Labels
Type: ImprovementIncludes backwards-compatible fixesIncludes backwards-compatible fixes
Description
What is the typescript type for createI18n() instance? If I use simple VueI18n, then I've got an error:
Type 'I18n<LocaleMessages, unknown, unknown, true>' is missing the following properties from type 'VueI18n<{}, {}, {}>': id, locale, fallbackLocale, availableLocales, and 32 more.
const messages: LocaleMessages<VueMessageType> = {
eng: eng,
ger: ger,
}
const i18n: VueI18n = createI18n({
locale: 'eng',
fallbackLocale: 'eng',
messages: messages,
})
Metadata
Metadata
Assignees
Labels
Type: ImprovementIncludes backwards-compatible fixesIncludes backwards-compatible fixes