mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
🔥 Remove logging
This commit is contained in:
parent
0baace0a5c
commit
6d4effc5fc
|
@ -6,9 +6,6 @@ import { INodeTranslationHeaders } from '@/Interface';
|
||||||
|
|
||||||
Vue.use(VueI18n);
|
Vue.use(VueI18n);
|
||||||
|
|
||||||
// TODO i18n: Remove next line
|
|
||||||
console.log('About to initialize i18n'); // eslint-disable-line no-console
|
|
||||||
|
|
||||||
export const i18n = new VueI18n({
|
export const i18n = new VueI18n({
|
||||||
locale: 'en',
|
locale: 'en',
|
||||||
fallbackLocale: 'en',
|
fallbackLocale: 'en',
|
||||||
|
@ -27,9 +24,6 @@ function setLanguage(language: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function loadLanguage(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 (!language) return Promise.resolve();
|
||||||
|
|
||||||
if (i18n.locale === language) {
|
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(
|
i18n.setLocaleMessage(
|
||||||
language,
|
language,
|
||||||
Object.assign(i18n.messages[language], newNodesBase),
|
Object.assign(i18n.messages[language], newNodesBase),
|
||||||
|
@ -81,7 +72,4 @@ export function addHeaders(
|
||||||
language,
|
language,
|
||||||
Object.assign(i18n.messages[language], { headers }),
|
Object.assign(i18n.messages[language], { headers }),
|
||||||
);
|
);
|
||||||
|
|
||||||
// TODO i18n: Remove next line
|
|
||||||
console.log(i18n.messages[language].headers); // eslint-disable-line no-console
|
|
||||||
}
|
}
|
|
@ -237,8 +237,6 @@ export default mixins(
|
||||||
},
|
},
|
||||||
|
|
||||||
async defaultLocale (newLocale, oldLocale) {
|
async defaultLocale (newLocale, oldLocale) {
|
||||||
// TODO i18n: Remove next line
|
|
||||||
console.log(`Switching locale from ${oldLocale} to ${newLocale}`); // eslint-disable-line no-console
|
|
||||||
loadLanguage(newLocale);
|
loadLanguage(newLocale);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue