diff --git a/packages/editor-ui/src/i18n/index.ts b/packages/editor-ui/src/i18n/index.ts index 0e2064150f..5ba7f5634a 100644 --- a/packages/editor-ui/src/i18n/index.ts +++ b/packages/editor-ui/src/i18n/index.ts @@ -6,9 +6,6 @@ import { INodeTranslationHeaders } from '@/Interface'; Vue.use(VueI18n); -// TODO i18n: Remove next line -console.log('About to initialize i18n'); // eslint-disable-line no-console - export const i18n = new VueI18n({ locale: 'en', fallbackLocale: 'en', @@ -27,9 +24,6 @@ function setLanguage(language: string) { } export async function loadLanguage(language?: string) { - // TODO i18n: Remove next line - console.log(`loadLanguage called with ${language}`); // eslint-disable-line no-console - if (!language) return Promise.resolve(); if (i18n.locale === language) { @@ -64,9 +58,6 @@ export function addNodeTranslation( ), }; - // TODO i18n: Remove next line - console.log('newNodesBase', newNodesBase); // eslint-disable-line no-console - i18n.setLocaleMessage( language, Object.assign(i18n.messages[language], newNodesBase), @@ -81,7 +72,4 @@ export function addHeaders( language, Object.assign(i18n.messages[language], { headers }), ); - - // TODO i18n: Remove next line - console.log(i18n.messages[language].headers); // eslint-disable-line no-console } \ No newline at end of file diff --git a/packages/editor-ui/src/views/NodeView.vue b/packages/editor-ui/src/views/NodeView.vue index 46e499e3b3..091fa2d435 100644 --- a/packages/editor-ui/src/views/NodeView.vue +++ b/packages/editor-ui/src/views/NodeView.vue @@ -237,8 +237,6 @@ export default mixins( }, async defaultLocale (newLocale, oldLocale) { - // TODO i18n: Remove next line - console.log(`Switching locale from ${oldLocale} to ${newLocale}`); // eslint-disable-line no-console loadLanguage(newLocale); }, },