Skip to content

Commit

Permalink
fix: issue with new console and languages different than english, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Jul 16, 2024
1 parent 8f2daa0 commit 59f7d3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/components/QueryEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down

0 comments on commit 59f7d3c

Please sign in to comment.