Correctly assert i18n default messages (#17815)

To prevent the following TS warning:
> Type instantiation is excessively deep and possibly infinite.ts(2589)
This commit is contained in:
Pascal Jufer
2023-03-16 14:33:52 +01:00
committed by GitHub
parent eb65d60236
commit d711aa0c23

View File

@@ -1,5 +1,5 @@
import { RequestError } from '@/api';
import { createI18n } from 'vue-i18n';
import { createI18n, I18nOptions } from 'vue-i18n';
import availableLanguages from './available-languages.yaml';
import datetimeFormats from './date-formats.yaml';
import numberFormats from './number-formats.yaml';
@@ -11,7 +11,7 @@ export const i18n = createI18n({
fallbackLocale: 'en-US',
messages: {
'en-US': enUSBase,
},
} as I18nOptions['messages'],
silentTranslationWarn: true,
datetimeFormats,
numberFormats,