Files
breakpilot-core/pitch-deck/lib/email-templates.ts
T
Sharang Parnerkar 17b9006b88
Build pitch-deck / build-push-deploy (push) Successful in 1m55s
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-consent (push) Successful in 36s
CI / test-python-voice (push) Successful in 35s
CI / test-bqas (push) Successful in 35s
feat(pitch-deck): English email templates, investor language preference, link-only invite mode
- Add English email template variants (greeting, message, closing, subject, CTA copy)
- Add `preferred_lang` column to `pitch_investors` — stored per investor, deck opens in that language by default
- Invite form: DE/EN language toggle that switches email defaults and pitch language setting
- Invite form: "Send email" toggle — when off, creates investor + returns magic link without sending email (for cold outreach attachment)
- `app/page.tsx`: initializes pitch language from investor's `preferred_lang` before first render (no flash)
- Migration 007 added to `/api/admin/migrate` route for production rollout

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-06 23:18:40 +02:00

23 lines
2.7 KiB
TypeScript

export const DEFAULT_GREETING = 'Sehr geehrter Herr'
export const DEFAULT_MESSAGE =
'wir freuen uns sehr, Ihnen exklusiven Zugang zum interaktiven Investor Pitch Deck unserer geplanten Unternehmung <strong>BreakPilot</strong> zu ermöglichen.<br><br>BreakPilot adressiert eine zentrale Herausforderung moderner Softwareentwicklung: die kontinuierliche Einhaltung regulatorischer Anforderungen bei gleichzeitig hoher Entwicklungsgeschwindigkeit.<br><br>Unsere geplante Lösung verbindet Code Security, automatisierte Compliance und regulatorische Intelligenz in einer durchgängigen Plattform. Ziel ist es, Unternehmen nicht nur Abweichungen aufzuzeigen, sondern konkret zu steuern, wie Systeme maximal regelkonform und gleichzeitig optimal genutzt werden können — insbesondere im Kontext von KI-Systemen und dem EU AI Act.<br><br>Das Pitch Deck gibt Ihnen einen strukturierten Einblick in Problemraum, Lösungsarchitektur sowie unsere geplante Finanzierungsstrategie.'
export const DEFAULT_CLOSING =
'Gerne stehen wir Ihnen für einen persönlichen Austausch oder eine vertiefende Diskussion jederzeit zur Verfügung.\n\nMit freundlichen Grüßen,\nBenjamin Bönisch & Sharang Parnerkar\nGründer — BreakPilot'
export const DEFAULT_GREETING_EN = 'Dear Sir or Madam'
export const DEFAULT_MESSAGE_EN =
'we are delighted to grant you exclusive access to the interactive investor pitch deck of our planned venture <strong>BreakPilot</strong>.<br><br>BreakPilot addresses a core challenge facing modern software development: maintaining continuous regulatory compliance while sustaining high development velocity.<br><br>Our planned solution combines code security, automated compliance, and regulatory intelligence in an end-to-end platform. The goal is not only to surface deviations, but to actively guide organizations on how to operate their systems in maximum regulatory conformance and optimal performance — particularly in the context of AI systems and the EU AI Act.<br><br>The pitch deck provides a structured overview of the problem space, solution architecture, and our planned financing strategy.'
export const DEFAULT_CLOSING_EN =
'We would be delighted to connect for a personal exchange or a deeper discussion at any time.\n\nBest regards,\nBenjamin Bönisch & Sharang Parnerkar\nFounders — BreakPilot'
export function getDefaultGreeting(name: string | null, lang: 'de' | 'en' = 'de'): string {
if (lang === 'en') return name ? `Dear ${name}` : DEFAULT_GREETING_EN
return name ? `Sehr geehrter Herr ${name}` : DEFAULT_GREETING
}
export function getDefaults(lang: 'de' | 'en') {
return lang === 'en'
? { message: DEFAULT_MESSAGE_EN, closing: DEFAULT_CLOSING_EN }
: { message: DEFAULT_MESSAGE, closing: DEFAULT_CLOSING }
}