From c58f8c0bf81f7a8f2aab64e29d4f2e3c002ac7c4 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Mon, 9 Feb 2026 17:29:10 +0100 Subject: [PATCH] =?UTF-8?q?Entferne=20Debug-Logs=20f=C3=BCr=20Alters-=20un?= =?UTF-8?q?d=20Geschlechtsbezeichnungen=20in=20FalukantWidget?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/widgets/FalukantWidget.vue | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/frontend/src/components/widgets/FalukantWidget.vue b/frontend/src/components/widgets/FalukantWidget.vue index c468b6f..41a28a6 100644 --- a/frontend/src/components/widgets/FalukantWidget.vue +++ b/frontend/src/components/widgets/FalukantWidget.vue @@ -48,28 +48,9 @@ export default { // Altersabhängige, (auf Wunsch) altertümlichere Bezeichnungen const years = this._ageYearsFromWidgetValue(this.falukantData?.age); const group = years == null ? null : this._getAgeGroupKey(years); - - // Debug: Zeige, ob age->years->group korrekt ist und ob i18n keys aufgelöst werden - try { - const cfg = this.$t('falukant.genderAge.ageGroups'); - // eslint-disable-next-line no-console - console.log('[FalukantWidget] genderAge', { - locale: this?.$i18n?.locale, - rawAge: this.falukantData?.age, - years, - group, - gender: g, - ageGroups: cfg - }); - } catch (_) {} - if (group && (g === 'female' || g === 'male')) { const key = `falukant.genderAge.${g}.${group}`; const t = this.$t(key); - - // eslint-disable-next-line no-console - console.log('[FalukantWidget] gender label lookup', { key, resolved: t }); - if (t !== key) return t; } @@ -83,15 +64,6 @@ export default { if (ageValue == null) return '—'; const years = this._ageYearsFromWidgetValue(ageValue); if (years == null) return '—'; - - // eslint-disable-next-line no-console - console.log('[FalukantWidget] age label', { - locale: this?.$i18n?.locale, - rawAge: ageValue, - years, - yearsLabel: this.$t('falukant.overview.metadata.years') - }); - return `${years} ${this.$t('falukant.overview.metadata.years')}`; } },