kazupon/vue-i18n

@types in vue.i18n

開放

#1,039 建立於 2020年11月2日

 (0 則留言) (0 個反應) (0 位負責人)JavaScript (837 個分叉)batch import
Type: Improvementgood first issuehelp wanted

倉庫指標

星標
 (7,222 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Hello,

I'm using vue-i18n on my nuxt app with typescript.

I have a simple question : Why in

declare module 'vue/types/options' {
	interface ComponentOptions<V extends Vue> {
		i18n?: {
			messages?: VueI18n.LocaleMessages
			dateTimeFormats?: VueI18n.DateTimeFormats
			numberFormats?: VueI18n.NumberFormats
			sharedMessages?: VueI18n.LocaleMessages
		}
	}
}

locale and fallbackLocaledoes not appear in this structure ? I try to use them but typescript obviously pull an error.

Thank you Maxime

貢獻者指南