Vue I18n does'nt work

I’m trying to use Vue I18n. After doing “vue add i18n”, I’ve an error in I18n.ts.

[vue-cli-service] ERROR in src/i18n.ts:26:3
[vue-cli-service] TS2769: No overload matches this call.
[vue-cli-service] Overload 1 of 2, ‘(options: I18nOptions<{ message: LocaleMessage; datetime: DateTimeFormat; number: NumberFormat; }, string, ComposerOptions<{ …; }, … 9 more …, NumberFormats<…>> | VueI18nOptions<…>>, LegacyVueI18n?: any): I18n<…>’, gave the following error.
[vue-cli-service] Type ‘LocaleMessages<VueMessageType, string, string>’ is not assignable to type ‘{ [x: string]: LocaleMessage; }’.
[vue-cli-service] ‘string’ index signatures are incompatible.
[vue-cli-service] Type ‘VueMessageType’ is not assignable to type ‘LocaleMessage’.
[vue-cli-service] Type ‘string’ is not assignable to type ‘LocaleMessage’.
[vue-cli-service] Overload 2 of 2, ‘(options: I18nOptions<{ message: LocaleMessage; datetime: DateTimeFormat; number: NumberFormat; }, { messages: “en-US”; datetimeFormats: “en-US”; numberFormats: “en-US”; }, ComposerOptions<…> | VueI18nOptions<…>>, LegacyVueI18n?: any): I18n<…>’, gave the following error.
[vue-cli-service] Property ‘“en-US”’ is missing in type ‘LocaleMessages<VueMessageType, string, string>’ but required in type ‘{ “en-US”: LocaleMessage; }’.
[vue-cli-service] 24 | locale: process.env.VUE_APP_I18N_LOCALE || ‘en’,
[vue-cli-service] 25 | fallbackLocale: process.env.VUE_APP_I18N_FALLBACK_LOCALE || ‘en’,
[vue-cli-service] > 26 | messages: loadLocaleMessages()
[vue-cli-service] | ^^^^^^^^
[vue-cli-service] 27 | })

I don’t know how to solve this error, if someone can help me I will be grateful

We need more information other than “it doesn’t work” Can you reproduce this in a small demo and share that through github?