mirror of https://github.com/Fabio286/antares.git
fix: issue with new console and languages different than english, fixes #837
This commit is contained in:
parent
8f2daa0f1c
commit
59f7d3c670
|
@ -341,7 +341,7 @@ onMounted(() => {
|
||||||
lastTableFields.value = res.response.map((field: { name: string }) => field.name);
|
lastTableFields.value = res.response.map((field: { name: string }) => field.name);
|
||||||
editor.value.completers = [tableFieldsCompleter.value];
|
editor.value.completers = [tableFieldsCompleter.value];
|
||||||
editor.value.execCommand('startAutocomplete');
|
editor.value.execCommand('startAutocomplete');
|
||||||
}).catch(console.log);
|
}).catch(console.error);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
editor.value.completers = customCompleter.value;
|
editor.value.completers = customCompleter.value;
|
||||||
|
|
|
@ -46,6 +46,8 @@ export type AvailableLocale = keyof typeof messages
|
||||||
|
|
||||||
const i18n = createI18n<[NestedPartial<MessageSchema>], AvailableLocale>({
|
const i18n = createI18n<[NestedPartial<MessageSchema>], AvailableLocale>({
|
||||||
fallbackLocale: 'en-US',
|
fallbackLocale: 'en-US',
|
||||||
|
silentTranslationWarn: true,
|
||||||
|
silentFallbackWarn: true,
|
||||||
allowComposition: true,
|
allowComposition: true,
|
||||||
messages
|
messages
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue