From 213d0ec01063222bcce14bdd4eee794cc88cc6b5 Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Fri, 16 Jan 2026 22:21:39 +0100 Subject: [PATCH] chore(plugins): remove debug logging from procrastination-buster i18n --- packages/plugin-dev/procrastination-buster/src/plugin.ts | 3 --- .../procrastination-buster/src/utils/useTranslate.ts | 3 --- 2 files changed, 6 deletions(-) diff --git a/packages/plugin-dev/procrastination-buster/src/plugin.ts b/packages/plugin-dev/procrastination-buster/src/plugin.ts index 306bc8dd2..4b7efa865 100644 --- a/packages/plugin-dev/procrastination-buster/src/plugin.ts +++ b/packages/plugin-dev/procrastination-buster/src/plugin.ts @@ -25,12 +25,9 @@ if (plugin.onMessage) { // Listen for language changes and notify iframe plugin.registerHook('languageChange', (language: string) => { - plugin.log.info('[plugin.ts] Language changed to:', language); // Notify the iframe about language change const iframe = document.querySelector('iframe[data-plugin-iframe]'); - plugin.log.info('[plugin.ts] Found iframe:', !!iframe); if (iframe && (iframe as HTMLIFrameElement).contentWindow) { - plugin.log.info('[plugin.ts] Sending languageChanged message to iframe'); (iframe as HTMLIFrameElement).contentWindow!.postMessage( { type: 'languageChanged', language }, '*', diff --git a/packages/plugin-dev/procrastination-buster/src/utils/useTranslate.ts b/packages/plugin-dev/procrastination-buster/src/utils/useTranslate.ts index 101dd823b..8b0cba961 100644 --- a/packages/plugin-dev/procrastination-buster/src/utils/useTranslate.ts +++ b/packages/plugin-dev/procrastination-buster/src/utils/useTranslate.ts @@ -65,7 +65,6 @@ export function useTranslate() { (async () => { try { const lang = await sendMessage('getCurrentLanguage'); - console.log('[useTranslate] Initial language:', lang); setCurrentLanguage(lang); } catch (error) { console.error('[useTranslate] Failed to get current language:', error); @@ -76,9 +75,7 @@ export function useTranslate() { // Listen for language change events createEffect(() => { const handleLanguageChange = (event: MessageEvent) => { - console.log('[useTranslate] Received event:', event.data.type); if (event.data.type === 'languageChanged') { - console.log('[useTranslate] Language changed to:', event.data.language); setCurrentLanguage(event.data.language); } };