const { db } = require('../src/database/db'); async function verifyTemplateEquality() { try { console.log('Verifying template equality between German and English versions...\n'); const templates = await db('email_templates').select('*'); for (const template of templates) { console.log(`\n=== ${template.template_key.toUpperCase()} ===`); // Check subject length similarity const subjectEnLength = template.subject_en?.length || 0; const subjectDeLength = template.subject_de?.length || 0; console.log(`Subject length - EN: ${subjectEnLength}, DE: ${subjectDeLength}`); // Check HTML content features const htmlEn = template.body_html_en || ''; const htmlDe = template.body_html_de || ''; // Check for key features in both versions const features = [ { name: 'Handlebars conditionals', pattern: /{{#if/g }, { name: 'Styled divs', pattern: /style="/g }, { name: 'Background colors', pattern: /background-color:/g }, { name: 'Buttons/CTAs', pattern: //g }, { name: 'Icons/Emojis', pattern: /[šŸ“§šŸ“žāœ…āš ļø]/g }, { name: 'Lists', pattern: /