🔥 Remove logging

This commit is contained in:
Iván Ovejero 2021-12-02 17:57:28 +01:00
parent 0baace0a5c
commit 6d4effc5fc
2 changed files with 0 additions and 14 deletions

View file

@ -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
}

View file

@ -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);
},
},