fix: issue with new console and languages different than english, fixes #837

This commit is contained in:
Fabio Di Stasio 2024-07-16 14:00:02 +02:00
parent 8f2daa0f1c
commit 59f7d3c670
2 changed files with 3 additions and 1 deletions

View File

@ -341,7 +341,7 @@ onMounted(() => {
lastTableFields.value = res.response.map((field: { name: string }) => field.name);
editor.value.completers = [tableFieldsCompleter.value];
editor.value.execCommand('startAutocomplete');
}).catch(console.log);
}).catch(console.error);
}
else
editor.value.completers = customCompleter.value;

View File

@ -46,6 +46,8 @@ export type AvailableLocale = keyof typeof messages
const i18n = createI18n<[NestedPartial<MessageSchema>], AvailableLocale>({
fallbackLocale: 'en-US',
silentTranslationWarn: true,
silentFallbackWarn: true,
allowComposition: true,
messages
});